browser-x
Version:
A partial implementation of the W3C DOM API on top of an HTML5 parser and serializer.
13 lines (9 loc) • 347 B
JavaScript
;
var CharacterData = require('./character-data');
var Node = require('./node');
function Comment(ownerDocument, data) {
CharacterData.call(this, ownerDocument, '#comment', data, Node.COMMENT_NODE);
}
Comment.prototype = Object.create(CharacterData.prototype);
Comment.prototype.constructor = Comment;
module.exports = Comment;