assetgraph
Version:
An auto discovery dependency graph based optimization framework for web pages and applications
23 lines (16 loc) • 569 B
JavaScript
const HtmlRelation = require('./HtmlRelation');
class HtmlMsApplicationConfig 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-config');
return super.attach(position, adjacentRelation);
}
}
HtmlMsApplicationConfig.prototype.targetType = 'MsApplicationConfig';
module.exports = HtmlMsApplicationConfig;