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

the hidden attribute parsing is not valid in xml #258

Closed
nyanrus opened this issue Jan 22, 2024 · 3 comments
Closed

the hidden attribute parsing is not valid in xml #258

nyanrus opened this issue Jan 22, 2024 · 3 comments

Comments

@nyanrus
Copy link

nyanrus commented Jan 22, 2024

Thank you for good project!

import {DOMParser} from "linkedom"

console.log((new DOMParser).parseFromString(`<test hidden=""></test>`,"text/xml").toString());
console.log((new DOMParser).parseFromString(`<test hidden=""></test>`,"text/html").toString());
/* outputs
<?xml version="1.0" encoding="utf-8"?><test hidden />
<test hidden></test>
*/

the hidden is not hidden="", hidden and it's error on xml
node v20.11.0
linkedom v0.16.6

@nyanrus nyanrus changed the title the hidden attribute parsing is not valid in xhtml the hidden attribute parsing is not valid in xml Jan 22, 2024
@WebReflection
Copy link
Owner

nope ... I see, pretty weird ... on it

@WebReflection
Copy link
Owner

I have no idea what happened to the previous commit but it was broken anyway so glad I've re-fixed this now.

@nyanrus
Copy link
Author

nyanrus commented Jan 22, 2024

Thanks!!

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

2 participants