Re: [whatwg/dom] DOM Comments don't align with HTML comments (#1023)

It's generally true that you can create node trees that cannot be serialized or that can be serialized and then when parsed result in a different tree. This is not a unique ability of comments. 

https://html.spec.whatwg.org/#serialising-html-fragments points this out in a warning.

https://html.spec.whatwg.org/#serialising-xhtml-fragments on the other hand does attempt to account for it, but I'm not sure how well tested that is.

Did you have a suggestion or do you think DOM should call this out more prominently?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1023#issuecomment-934108578

Received on Tuesday, 5 October 2021 06:33:14 UTC