You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
625 B
25 lines
625 B
|
3 years ago
|
"use strict";
|
||
|
|
const { mixin } = require("../../utils");
|
||
|
|
const NodeImpl = require("./Node-impl").implementation;
|
||
|
|
const ChildNodeImpl = require("./ChildNode-impl").implementation;
|
||
|
|
|
||
|
|
const NODE_TYPE = require("../node-type");
|
||
|
|
|
||
|
|
class DocumentTypeImpl extends NodeImpl {
|
||
|
|
constructor(args, privateData) {
|
||
|
|
super(args, privateData);
|
||
|
|
|
||
|
|
this.nodeType = NODE_TYPE.DOCUMENT_TYPE_NODE;
|
||
|
|
|
||
|
|
this.name = privateData.name;
|
||
|
|
this.publicId = privateData.publicId;
|
||
|
|
this.systemId = privateData.systemId;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
mixin(DocumentTypeImpl.prototype, ChildNodeImpl.prototype);
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
implementation: DocumentTypeImpl
|
||
|
|
};
|