blob: ce9c4b7399adb608cbdacdbf2447b5ab30e109a5 [file] [log] [blame]
"use strict";
var inheritFrom = require("../utils").inheritFrom;
module.exports = function (core) {
core.ProcessingInstruction = function ProcessingInstruction(ownerDocument, target, data) {
core.CharacterData.call(this, ownerDocument, data);
this._target = target;
};
inheritFrom(core.CharacterData, core.ProcessingInstruction, {
nodeType: core.Node.PROCESSING_INSTRUCTION_NODE, // TODO should be on prototype, not here
get target() { return this._target; }
});
};