UNPKG

funcunit

Version:
16 lines (11 loc) 397 B
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;