8000 Markup in Entities breaks parsing · Issue #210 · jindw/xmldom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Markup in Entities breaks parsing #210
Open
@Holzhaus

Description

@Holzhaus

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0