w3c / DOM-Parsing

DOM Parsing and Serialization
https://w3c.github.io/DOM-Parsing/
Other
27 stars 14 forks source link

Restore serialization of CDATASection nodes #38

Open Zirro opened 6 years ago

Zirro commented 6 years ago

CDATASection nodes returned to the DOM specification in https://github.com/whatwg/dom/pull/295, and browsers still allow them to be serialized. The serialization steps (which are still present in a comment within this specification) should be restored here as well.

cscott commented 3 years ago

The serialization steps were in a comment which was removed, but they can still be found at https://github.com/w3c/DOM-Parsing/blob/ab8d1ac9699ed43ae6de9f4be2b0f3cfc5f3709e/index.html#L1510 (and in the code for w3c-xmlserializer, which github has helpfully linked above).

Do we need to throw an exception if requireWellFormed is set and the node data contains the string ]]> ? That wasn't in the previous commented-out version of the spec, but it seems consistent.