funcunit
Version:
<!-- @hide title
16 lines (11 loc) • 397 B
JavaScript
import Node from './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;
export default Comment;