assetgraph
Version:
An auto discovery dependency graph based optimization framework for web pages and applications
22 lines (16 loc) • 578 B
JavaScript
const HtmlRelation = require('./HtmlRelation');
class HtmlMsApplicationTileImageMeta extends HtmlRelation {
get href() {
return this.node.getAttribute('content');
}
set href(href) {
this.node.setAttribute('content', href);
}
attach(position, adjacentRelation) {
this.node = this.from.parseTree.createElement('meta');
this.node.setAttribute('name', 'msapplication-TileImage');
return super.attach(position, adjacentRelation);
}
}
HtmlMsApplicationTileImageMeta.prototype.targetType = 'Image';
module.exports = HtmlMsApplicationTileImageMeta;