Blame view

lib/jsdom/living/nodes/HTMLTitleElement-impl.js 369 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 HTMLElementImpl = require("./HTMLElement-impl").implementation;
  const { childTextContent } = require("../helpers/text");
  
  class HTMLTitleElementImpl extends HTMLElementImpl {
    get text() {
      return childTextContent(this);
    }
  
    set text(value) {
      this.textContent = value;
    }
  }
  
  module.exports = {
    implementation: HTMLTitleElementImpl
  };