jsdom
Version:
A JavaScript implementation of many web standards
19 lines (14 loc) • 369 B
JavaScript
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
};
;