<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16682</bug_id>
          
          <creation_ts>2012-04-10 13:16:16 +0000</creation_ts>
          <short_desc>Don&apos;t throw for ]]&gt; with serializeAsCDATA</short_desc>
          <delta_ts>2014-10-04 16:36:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM Parsing and Serialization</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66562</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-04-10 13:16:16 +0000</bug_when>
    <thetext>http://html5.org/specs/dom-parsing.html#concept-serialize-xml - instead of throwing for ]]&gt; in text node with serializeAsCDATA, i think you should serialize a cdata section up to the first &quot;]]&gt;&quot; not including the &quot;&gt;&quot;, then emit the rest (including the &quot;&gt;&quot;) as text</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66563</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-04-10 13:21:29 +0000</bug_when>
    <thetext>Rationale: throwing when not strictly needed seems not nice. The previous spec text in HTML said to not throw for this case (but didn&apos;t define exactly what to do). The proposed behavior works nice with streaming and isn&apos;t overly complicated.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>