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