Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse error on valid xml #211

Open
unional opened this issue Apr 24, 2017 · 0 comments
Open

parse error on valid xml #211

unional opened this issue Apr 24, 2017 · 0 comments

Comments

@unional
Copy link

unional commented Apr 24, 2017

Error discovered from jsdom:
Test code excerpt:

 const xml = new window.DOMParser().parseFromString('<script>x<\/script>', 'text/xml')

 const parseError = xml.getElementsByTagName('parsererror')

// it should be an empty array
console.log(parseError) // HTMLCollection { '0': HTMLUnknownElement {} }

Result in chrome:
image

Repro here: https://github.com/unional/issues/tree/jsdom-jquery-xml

git clone https://github.com/unional/issues.git
cd issues
git checkout jsdom-jquery-xml
npm install
npm test

jsdom: 9.12.0

Reference: jsdom/jsdom#1775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant