Describe the bug
The bug is reproduced in a the test suite in the xpath library.
goto100/xpath#116 (comment)
Currently ProcessingInstruction is failing this check:
isNodeLike = function (value) {
return value
&& typeof value.nodeType === "number"
&& Number.isInteger(value.nodeType)
&& value.nodeType >= 1
&& value.nodeType <= 11
&& typeof value.nodeName === "string";
};
To Reproduce
The linked comment has a reproduction on this.
Expected behavior
Since ProcessingInstruction is a type of Node, I expect all the properties that Node has to be available on ProcessingInstruction.
Runtime & Version:
xmldom version: 0.8.8
runtime version: Node 14
Describe the bug
The bug is reproduced in a the test suite in the
xpathlibrary.goto100/xpath#116 (comment)
Currently
ProcessingInstructionis failing this check:To Reproduce
The linked comment has a reproduction on this.
Expected behavior
Since
ProcessingInstructionis a type ofNode, I expect all the properties thatNodehas to be available onProcessingInstruction.Runtime & Version:
xmldom version: 0.8.8
runtime version: Node 14