<?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>12841</bug_id>
          
          <creation_ts>2011-06-01 07:44:57 +0000</creation_ts>
          <short_desc>Add CDATASection</short_desc>
          <delta_ts>2011-09-19 08:07:03 +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</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Ms2ger">Ms2ger</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>ayg</cc>
    
    <cc>daniel.glazman</cc>
    
    <cc>glenn</cc>
    
    <cc>jonas</cc>
    
    <cc>kennyluck</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>48996</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-06-01 07:44:57 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49031</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-01 20:00:13 +0000</bug_when>
    <thetext>Blech, why?  Are implementers not willing to drop support?  This will require a lot of review of specs that depend on DOM Core, including DOM Range and HTML Editing Commands.  Plus it&apos;s yet another DOM feature that only happens in XML, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49035</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-06-01 21:20:20 +0000</bug_when>
    <thetext>Yes, I&apos;d like to see some solid reasons why in order for us to include CDATA sections.

Note that &quot;It was in DOM Level 3&quot; is IMO a completely invalid reason. If the feature can&apos;t stand on it&apos;s own, it&apos;s not worth keeping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49068</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-02 18:06:16 +0000</bug_when>
    <thetext>Well, it&apos;s not just that it&apos;s in DOM 3 Core, it&apos;s also interoperably implemented:

data:application/xhtml+xml,
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;body&gt;&lt;![CDATA[abc]]&gt;
&lt;script&gt;alert(document.body.firstChild);&lt;/script&gt;
&lt;/body&gt;&lt;/html&gt;

That alerts &quot;[object CDATASection]&quot; in Gecko, WebKit, and Presto.  (I assume IE9 too, but didn&apos;t bother testing because it doesn&apos;t support data URLs in the URL bar.)  So the question is whether everyone is willing to drop support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49069</commentid>
    <comment_count>4</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-06-02 18:25:27 +0000</bug_when>
    <thetext>Sure. Let me revise that. IMO &quot;Previous DOM specs support it and so does implementations&quot; is not a valid argument. If a feature isn&apos;t good and useful it should be removed no matter how much it&apos;s implemented.

If it&apos;s widely *used* though, that is a different argument which would carry a lot more.

And yes, I&apos;m absolutely willing to remove it from Gecko.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49200</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Glazman">daniel.glazman</who>
    <bug_when>2011-06-05 16:37:49 +0000</bug_when>
    <thetext>I strongly disagree. |document.createCDATASection| has been available in
the DOM apis since 1996. Removing it just to remove it makes no sense at
all and you just have no idea, no stats, no metrics whatsoever to show
and prove that this is unused not only in web pages but also in all DOM-based
tools or applications, on the web or in batch systems.

For what it&apos;s worth, BlueGriffon uses and needs it.

I am not against making **internally** CDATASection look and feel like
Text nodes (using a boolean flag) **as soon as** parsing, serialization
and APIs related to CDATASections remain unchanged, untouched and
backwards-compatible with all existing use cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49207</commentid>
    <comment_count>6</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-05 19:54:01 +0000</bug_when>
    <thetext>What does BlueGriffon use CDATASection for?  The current spec just implies that nodes in the DOM can&apos;t be CDATASection.  Presumably a CDATA section in XML input would become a Text node when it&apos;s parsed, instead of a CDATASection node.  It would still work pretty much the same in practice, although presumably it would be serialized differently.  What would break in BlueGriffon here?

CDATASection is evil for the web because it only occurs in XML, which means it&apos;s a weird corner case.  We know it&apos;s not used on the web to any appreciable extent because it&apos;s XHTML-only, and XHTML is not used on the web to any appreciable extent.  Non-web users of DOM aren&apos;t obligated to implement the new DOM Core, which is designed primarily to be web-compatible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49788</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-06-17 16:18:11 +0000</bug_when>
    <thetext>To reopen please answer comment 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56975</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-09-19 08:07:03 +0000</bug_when>
    <thetext>*** Bug 14205 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>