This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16682 - Don't throw for ]]> with serializeAsCDATA
Summary: Don't throw for ]]> with serializeAsCDATA
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM Parsing and Serialization (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-10 13:16 UTC by Simon Pieters
Modified: 2014-10-04 16:36 UTC (History)
3 users (show)

See Also:


Attachments

Description Simon Pieters 2012-04-10 13:16:16 UTC
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
Comment 1 Simon Pieters 2012-04-10 13:21:29 UTC
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.