can-simple-dom
Version:
A simple JS DOM.
16 lines (11 loc) • 407 B
JavaScript
var Node = require('./node').Node;
function Comment(text, ownerDocument) {
this.nodeConstructor(8, '#comment', text, ownerDocument);
}
Comment.prototype._cloneNode = function() {
return this.ownerDocument.createComment(this.nodeValue);
};
Comment.prototype = Object.create(Node.prototype);
Comment.prototype.constructor = Comment;
Comment.prototype.nodeConstructor = Node;
module.exports = Comment;