mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 03:02:49 +00:00
15 lines
462 B
JavaScript
15 lines
462 B
JavaScript
"use strict";
|
|
const inheritFrom = require("../utils").inheritFrom;
|
|
const NODE_TYPE = require("../living/node-type");
|
|
|
|
module.exports = function (core) {
|
|
// TODO: constructor should not take ownerDocument
|
|
core.Comment = function Comment(ownerDocument, data) {
|
|
core.CharacterData.call(this, ownerDocument, data);
|
|
};
|
|
|
|
inheritFrom(core.CharacterData, core.Comment, {
|
|
nodeType: NODE_TYPE.COMMENT_NODE // TODO should be on prototype, not here
|
|
});
|
|
};
|