xmldom icon indicating copy to clipboard operation
xmldom copied to clipboard

XML Declaration is not a Processing Instruction

Open davemevans opened this issue 7 years ago • 1 comments

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.

davemevans avatar Aug 04 '16 08:08 davemevans

I can reproduce this. I'll see if I can come up with a patch.

Holzhaus avatar Jun 11 '17 14:06 Holzhaus