Version: 0.0.00.1.00.1.10.1.20.1.30.2.00.2.10.2.20.3.00.3.10.4.00.5.00.5.10.6.00.6.10.6.20.7.00.8.00.8.10.9.00.9.10.9.20.9.30.9.40.10.00.10.10.10.20.10.30.10.40.10.50.11.00.11.10.12.00.12.10.12.20.12.30.13.00.13.10.13.20.14.00.15.00.16.00.16.10.17.00.18.00.19.00.20.00.20.10.20.20.20.30.20.40.21.00.21.10.21.20.22.00.22.10.23.00.23.10.23.20.23.30.23.40.24.01.0.01.0.21.1.01.1.11.1.22.0.02.0.12.0.22.1.02.1.12.1.22.1.32.1.42.1.52.2.02.2.12.2.22.2.32.2.42.2.52.2.62.2.72.2.82.2.92.3.02.3.12.3.22.4.02.4.12.4.22.4.32.4.42.4.52.4.62.4.72.4.82.4.9
const Node = require('./Node');
// interface DocumentType // https://dom.spec.whatwg.org/#documenttype
module.exports = class DocumentType extends Node {
constructor(ownerDocument) {
super(ownerDocument);
this.nodeType = Node.DOCUMENT_TYPE_NODE;
this.name = 'html';
}
toString() {
return '<!DOCTYPE ' + this.name + '>';
};