[html5] r6968 - [ac] (0) Hoist requirements on what text can consist of from the text/html synta [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Feb 6 15:41:52 PST 2012


Author: ianh
Date: 2012-02-06 15:41:50 -0800 (Mon, 06 Feb 2012)
New Revision: 6968

Modified:
   complete.html
   index
   source
Log:
[ac] (0) Hoist requirements on what text can consist of from the text/html syntax to the DOM, so it also applies to XML and script-provided data.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=15557
Affected topics: HTML, HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2012-02-06 23:16:05 UTC (rev 6967)
+++ complete.html	2012-02-06 23:41:50 UTC (rev 6968)
@@ -12261,15 +12261,29 @@
   nodes are empty or contain just <a href=#space-character title="space character">space
   characters</a>).</p>
 
-  <!--<p><code>Text</code> nodes and attribute values may begin with
-  an <i>isolated combining character</i>. <a
-  href="#refsUNICODE">[UNICODE]</a></p>--> <!-- commented out since
+  <p><code><a href=#text>Text</a></code> nodes and attribute values must consist of
+  <a href=#unicode-character title="Unicode character">Unicode characters</a>, must not
+  contain U+0000 characters, must not contain permanently undefined
+  Unicode characters (noncharacters), and must not contain control
+  characters other than <a href=#space-character title="space character">space
+  characters</a>.
+
+  <!--<code>Text</code> nodes and attribute values may begin with an
+  <i>isolated combining character</i>.--> <!-- commented out since
   nothing disallows it currently, so it's implicit; however, if we
   ever make charmod a normative reference, this will be needed to
   override it -->
 
+  This specification includes extra constraints on the exact value of
+  <code><a href=#text>Text</a></code> nodes and attribute values depending on their
+  precise context.
 
+  <!-- <a href="#refsUNICODE">[UNICODE]</a>-->
 
+  </p>
+
+
+
   <h6 id=embedded-content-0><span class=secno>3.2.5.1.6 </span>Embedded content</h6>
 
   <p><dfn id=embedded-content>Embedded content</dfn> is content that imports another
@@ -80737,13 +80751,9 @@
   <h4 id=text-1><span class=secno>12.1.3 </span>Text</h4>
 
   <p><dfn id=syntax-text title=syntax-text>Text</dfn> is allowed inside elements,
-  attribute values, and comments. Text must consist of <a href=#unicode-character title="Unicode character">Unicode characters</a>. Text must not
-  contain U+0000 characters. Text must not contain permanently
-  undefined Unicode characters (noncharacters). Text must not contain
-  control characters other than <a href=#space-character title="space character">space
-  characters</a>. Extra constraints are placed on what is and what
-  is not allowed in text based on where the text is to be put, as
-  described in the other sections.</p>
+  attribute values, and comments. Extra constraints are placed on what
+  is and what is not allowed in text based on where the text is to be
+  put, as described in the other sections.</p>
 
 
   <h5 id=newlines><span class=secno>12.1.3.1 </span>Newlines</h5>

Modified: index
===================================================================
--- index	2012-02-06 23:16:05 UTC (rev 6967)
+++ index	2012-02-06 23:41:50 UTC (rev 6968)
@@ -12261,15 +12261,29 @@
   nodes are empty or contain just <a href=#space-character title="space character">space
   characters</a>).</p>
 
-  <!--<p><code>Text</code> nodes and attribute values may begin with
-  an <i>isolated combining character</i>. <a
-  href="#refsUNICODE">[UNICODE]</a></p>--> <!-- commented out since
+  <p><code><a href=#text>Text</a></code> nodes and attribute values must consist of
+  <a href=#unicode-character title="Unicode character">Unicode characters</a>, must not
+  contain U+0000 characters, must not contain permanently undefined
+  Unicode characters (noncharacters), and must not contain control
+  characters other than <a href=#space-character title="space character">space
+  characters</a>.
+
+  <!--<code>Text</code> nodes and attribute values may begin with an
+  <i>isolated combining character</i>.--> <!-- commented out since
   nothing disallows it currently, so it's implicit; however, if we
   ever make charmod a normative reference, this will be needed to
   override it -->
 
+  This specification includes extra constraints on the exact value of
+  <code><a href=#text>Text</a></code> nodes and attribute values depending on their
+  precise context.
 
+  <!-- <a href="#refsUNICODE">[UNICODE]</a>-->
 
+  </p>
+
+
+
   <h6 id=embedded-content-0><span class=secno>3.2.5.1.6 </span>Embedded content</h6>
 
   <p><dfn id=embedded-content>Embedded content</dfn> is content that imports another
@@ -80737,13 +80751,9 @@
   <h4 id=text-1><span class=secno>12.1.3 </span>Text</h4>
 
   <p><dfn id=syntax-text title=syntax-text>Text</dfn> is allowed inside elements,
-  attribute values, and comments. Text must consist of <a href=#unicode-character title="Unicode character">Unicode characters</a>. Text must not
-  contain U+0000 characters. Text must not contain permanently
-  undefined Unicode characters (noncharacters). Text must not contain
-  control characters other than <a href=#space-character title="space character">space
-  characters</a>. Extra constraints are placed on what is and what
-  is not allowed in text based on where the text is to be put, as
-  described in the other sections.</p>
+  attribute values, and comments. Extra constraints are placed on what
+  is and what is not allowed in text based on where the text is to be
+  put, as described in the other sections.</p>
 
 
   <h5 id=newlines><span class=secno>12.1.3.1 </span>Newlines</h5>

Modified: source
===================================================================
--- source	2012-02-06 23:16:05 UTC (rev 6967)
+++ source	2012-02-06 23:41:50 UTC (rev 6968)
@@ -12801,15 +12801,29 @@
   nodes are empty or contain just <span title="space character">space
   characters</span>).</p>
 
-  <!--<p><code>Text</code> nodes and attribute values may begin with
-  an <i>isolated combining character</i>. <a
-  href="#refsUNICODE">[UNICODE]</a></p>--> <!-- commented out since
+  <p><code>Text</code> nodes and attribute values must consist of
+  <span title="Unicode character">Unicode characters</span>, must not
+  contain U+0000 characters, must not contain permanently undefined
+  Unicode characters (noncharacters), and must not contain control
+  characters other than <span title="space character">space
+  characters</span>.
+
+  <!--<code>Text</code> nodes and attribute values may begin with an
+  <i>isolated combining character</i>.--> <!-- commented out since
   nothing disallows it currently, so it's implicit; however, if we
   ever make charmod a normative reference, this will be needed to
   override it -->
 
+  This specification includes extra constraints on the exact value of
+  <code>Text</code> nodes and attribute values depending on their
+  precise context.
 
+  <!-- <a href="#refsUNICODE">[UNICODE]</a>-->
 
+  </p>
+
+
+
   <h6>Embedded content</h6>
 
   <p><dfn>Embedded content</dfn> is content that imports another
@@ -93648,14 +93662,9 @@
   <h4>Text</h4>
 
   <p><dfn title="syntax-text">Text</dfn> is allowed inside elements,
-  attribute values, and comments. Text must consist of <span
-  title="Unicode character">Unicode characters</span>. Text must not
-  contain U+0000 characters. Text must not contain permanently
-  undefined Unicode characters (noncharacters). Text must not contain
-  control characters other than <span title="space character">space
-  characters</span>. Extra constraints are placed on what is and what
-  is not allowed in text based on where the text is to be put, as
-  described in the other sections.</p>
+  attribute values, and comments. Extra constraints are placed on what
+  is and what is not allowed in text based on where the text is to be
+  put, as described in the other sections.</p>
 
 
   <h5>Newlines</h5>




More information about the Commit-Watchers mailing list