-
Notifications
You must be signed in to change notification settings - Fork 7
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
Consider following https://w3c.github.io/DOM-Parsing/#xml-serialization #8
Comments
Hey, as somewhat hinted at in the README, I'm happy to make this thing more standards compliant. We might only need to retain some specifics, for rasterizeHTML.js to force HTML to XML conversion, but hopefully this will get down to being a After a quick glimpse into the linked document, it looks like e.g. the serialisation for empty nodes needs an overhaul. And most likely there's going to be more. Let me know what you need. Happy to give access to the repo. |
Btw, |
@cburgmer @domenic I'm happy to help out also if I can, as we could need this in https://github.com/paperjs/paper.js |
Indeed xmlserializer seems to behave differently from browsers. In a browser you can do:
while
|
I'm looking for something that follows the spec browsers use so that I can use it in jsdom. Any thoughts on adding a mode that follows that algorithm more exactly?
The text was updated successfully, but these errors were encountered: