xmldom
xmldom copied to clipboard
XML Declaration is not a Processing Instruction
xmldom appears to interpret the XML Declaration (<?xml ?>
) as a Processing Instruction and inserts a Node into the DOM with nodeType 7.
This is incorrect and there should be no reference to the XML declaration in the DOM - the XML Declaration is not a Processing Instruction.
Chrome and Firefox, for example, correctly returns the DOM without any reference to the XML Declaration.
I can reproduce this. I'll see if I can come up with a patch.