Open
Description
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:
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/>
Metadata
Metadata
Assignees
Labels
No labels