Open Holzhaus opened 7 years ago
The parser fails when an Entity Declaration contains Markup.
Consider this XML document:
<!DOCTYPE root [ <!ENTITY foo "<a b='c'>bar</a>"> ]> <root/>
The xmldom output makes no sense at all:
xmldom
var doc = (new DOMParser()).parseFromString('<!DOCTYPE root [ <!ENTITY foo "<a b=\'c\'>bar</a>"> ]><root/>', 'text/xml'); console.log(doc+'') // Output: <!DOCTYPE root><a b="c">bar</a>"> ]><root/>
The parser fails when an Entity Declaration contains Markup.
Consider this XML document:
The
xmldom
output makes no sense at all: