assetgraph
Version:
An auto discovery dependency graph based optimization framework for web pages and applications
28 lines (20 loc) • 577 B
JavaScript
const HtmlRelation = require('./HtmlRelation');
class HtmlVideoPoster extends HtmlRelation {
get href() {
return this.node.getAttribute('poster');
}
set href(href) {
this.node.setAttribute('poster', href);
}
inlineHtmlRelation() {
throw new Error('HtmlVideoPoster.inline(): Not supported.');
}
attach() {
throw new Error('HtmlVideoPoster.attach(): Not implemented.');
}
detach() {
throw new Error('HtmlVideoPoster.detach(): Not implemented.');
}
}
HtmlVideoPoster.prototype.targetType = 'Image';
module.exports = HtmlVideoPoster;