Open Zirro opened 6 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.
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.