Blame view

lib/jsdom/living/nodes/HTMLEmbedElement-impl.js 390 Bytes
858f2bdf5   Boyan Georgiev   fixes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  "use strict";
  const HTMLElementImpl = require("./HTMLElement-impl").implementation;
  const { reflectURLAttribute } = require("../../utils");
  
  class HTMLEmbedElementImpl extends HTMLElementImpl {
    get src() {
      return reflectURLAttribute(this, "src");
    }
  
    set src(value) {
      this.setAttributeNS(null, "src", value);
    }
  }
  
  module.exports = {
    implementation: HTMLEmbedElementImpl
  };