Blame view

lib/jsdom/living/nodes/HTMLModElement-impl.js 409 Bytes
858f2bdf5   Boyan Georgiev   fixes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  "use strict";
  
  const conversions = require("webidl-conversions");
  const HTMLElementImpl = require("./HTMLElement-impl").implementation;
  
  class HTMLModElementImpl extends HTMLElementImpl {
    get cite() {
      return conversions.USVString(this.getAttributeNS(null, "cite"));
    }
  
    set cite(value) {
      this.setAttributeNS(null, "cite", value);
    }
  }
  
  module.exports = {
    implementation: HTMLModElementImpl
  };