W3C home > Mailing lists > Public > public-html-commits@w3.org > April 2009

html5/spec Overview.html,1.2190,1.2191

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 29 Apr 2009 22:18:44 +0000
To: public-html-commits@w3.org
Message-Id: <E1LzI72-0005Ut-LF@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv21117

Modified Files:
	Overview.html 
Log Message:
Allow serialisers to not exactly match the DOM when it comes to CDATA nodes. (credit: sp) (whatwg r3030)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2190
retrieving revision 1.2191
diff -u -d -r1.2190 -r1.2191
--- Overview.html	29 Apr 2009 22:14:02 -0000	1.2190
+++ Overview.html	29 Apr 2009 22:18:41 -0000	1.2191
@@ -55733,7 +55733,11 @@
   of that node's child nodes, in <a href="#tree-order">tree order</a>. User agents
   may adjust prefixes and namespace declarations in the serialization
   (and indeed might be forced to do so in some cases to obtain
-  namespace-well-formed XML).</p>
+  namespace-well-formed XML). User agents may use a combination of
+  regular text, character references, and CDATA sections to represent
+  <a href="#text-node" title="text node">text nodes</a> in the DOM (and indeed
+  might be forced to use representations that don't match the DOM's,
+  e.g. if a <code>CDATASection</code> node contains the string "<code title="">]]&gt;</code>").</p>
 
   <p>For <code>Element</code>s, if any of the elements in the
   serialization are in no namespace, the default namespace in scope
@@ -55766,8 +55770,8 @@
    <code>ProcessingInstruction</code> node whose data contains
    characters that are not matched by the XML <code title="">Char</code> production. <a href="#references">[XML]</a></li>
 
-   <li>A <code>CDATASection</code> node whose data contains the string
-   "<code title="">]]&gt;</code>".</li>
+   <!--<li>A <code>CDATASection</code> node whose data contains the
+   string "<code title="">]]&gt;</code>".</li> (these can be split)-->
 
    <li>A <code>Comment</code> node whose data contains two adjacent
    U+002D HYPHEN-MINUS (-) characters or ends with such a
Received on Wednesday, 29 April 2009 22:18:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 29 April 2009 22:18:57 GMT