[html5] r3030 - [] (0) Allow serialisers to not exactly match the DOM when it comes to CDATA nod [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Apr 29 15:18:38 PDT 2009
Author: ianh
Date: 2009-04-29 15:18:37 -0700 (Wed, 29 Apr 2009)
New Revision: 3030
Modified:
index
source
Log:
[] (0) Allow serialisers to not exactly match the DOM when it comes to CDATA nodes. (credit: sp)
Modified: index
===================================================================
--- index 2009-04-29 22:13:58 UTC (rev 3029)
+++ index 2009-04-29 22:18:37 UTC (rev 3030)
@@ -61481,7 +61481,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="">]]></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
@@ -61514,8 +61518,8 @@
<code>ProcessingInstruction</code> node whose data contains
characters that are not matched by the XML <code title="">Char</code> production. <a href=#refsXML>[XML]</a></li>
- <li>A <code>CDATASection</code> node whose data contains the string
- "<code title="">]]></code>".</li>
+ <!--<li>A <code>CDATASection</code> node whose data contains the
+ string "<code title="">]]></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
Modified: source
===================================================================
--- source 2009-04-29 22:13:58 UTC (rev 3029)
+++ source 2009-04-29 22:18:37 UTC (rev 3030)
@@ -72268,7 +72268,12 @@
of that node's child nodes, in <span>tree order</span>. 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
+ <span title="text node">text nodes</span> 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="">]]></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
@@ -72306,8 +72311,8 @@
characters that are not matched by the XML <code
title="">Char</code> production. <a href="#refsXML">[XML]</a></li>
- <li>A <code>CDATASection</code> node whose data contains the string
- "<code title="">]]></code>".</li>
+ <!--<li>A <code>CDATASection</code> node whose data contains the
+ string "<code title="">]]></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
More information about the Commit-Watchers
mailing list