This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://html5.org/specs/dom-parsing.html#concept-serialize-xml - instead of throwing for ]]> in text node with serializeAsCDATA, i think you should serialize a cdata section up to the first "]]>" not including the ">", then emit the rest (including the ">") as text
Rationale: throwing when not strictly needed seems not nice. The previous spec text in HTML said to not throw for this case (but didn't define exactly what to do). The proposed behavior works nice with streaming and isn't overly complicated.