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

Improve X(HT)ML support #885

Closed
domenic opened this issue Sep 19, 2014 · 4 comments
Closed

Improve X(HT)ML support #885

domenic opened this issue Sep 19, 2014 · 4 comments
Labels

Comments

@domenic
Copy link
Member

domenic commented Sep 19, 2014

Our goal is to be as good as browsers, but no better. In particular, we are not an arbitrary XML DOM. But, we do need to switch parsing modes, produce XmlDocuments, etc. Lots of work to do. @Sebmaster has been leading the charge on this.

@pkra
Copy link

pkra commented Sep 20, 2014

👍 thanks for keeping xHTML in mind!

@felixfbecker
Copy link

This would be very nice. Currently the only option for parsing XML in Node is xml2js, which is a pain to work with. I would much rather work with true Nodes like defined in the DOM standard.

Is that possible with the current version of JSDOM?

@Sebmaster
Copy link
Member

@felixfbecker We don't have proper XHTML support, but if you only need to get XML into a DOM-like structure to be able to query it, you can set parsingMode: "xml", which should work - there might be XML features we don't (yet) support though.

@domenic
Copy link
Member Author

domenic commented Jul 2, 2016

With the addition of strict XHTML parsing, I am going to consider this closed. Other bugs in the x(h)tml tag track specific issues; there definitely are some left.

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

No branches or pull requests

4 participants