Blame view

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