[html5] r1326 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Mar 3 17:58:40 PST 2008


Author: ianh
Date: 2008-03-03 17:58:39 -0800 (Mon, 03 Mar 2008)
New Revision: 1326

Modified:
   index
   source
Log:
[act] (2) Make spaces take part in the <table> foster parenting after anything else has taken part in it. This is a high-risk change, let me know if anything breaks or if I missed anything.

Modified: index
===================================================================
--- index	2008-03-04 00:02:44 UTC (rev 1325)
+++ index	2008-03-04 01:58:39 UTC (rev 1326)
@@ -24,7 +24,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 3 March 2008</h2>
+   <h2 class="no-num no-toc" id=working>Working Draft — 4 March 2008</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -40529,6 +40529,15 @@
   <p>The <dfn id=current4>current node</dfn> is the bottommost node in this
    stack.
 
+  <p>The <dfn id=current5>current table</dfn> is the last <code><a
+   href="#table">table</a></code> element in the <a href="#stack">stack of
+   open elements</a>, if there is one. If there is no <code><a
+   href="#table">table</a></code> element in the <a href="#stack">stack of
+   open elements</a> (<a href="#fragment">fragment case</a>), then the <a
+   href="#current5">current table</a> is the first element in the <a
+   href="#stack">stack of open elements</a> (the <code><a
+   href="#html">html</a></code> element).
+
   <p>Elements in the stack fall into the following categories:
 
   <dl>
@@ -42914,9 +42923,13 @@
     <!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE
 
    <dd>
-    <p><a href="#append" title="append a character">Append the character</a>
-     to the <a href="#current4">current node</a>.</p>
+    <p>If the <a href="#current5">current table</a> is <a
+     href="#tainted">tainted</a>, then treat the token as per the "anything
+     else" entry below.</p>
 
+    <p>Otherwise, <a href="#append" title="append a character">append the
+     character</a> to the <a href="#current4">current node</a>.</p>
+
    <dt>A comment token
 
    <dd>
@@ -43029,7 +43042,12 @@
      href="#thead0">thead</a></code>, or <code><a href="#tr">tr</a></code>
      element, then, whenever a node would be inserted into the <a
      href="#current4">current node</a>, it must instead be inserted into the
-     <em><a href="#foster">foster parent element</a></em>.</p>
+     <i><a href="#foster">foster parent element</a></i>, and the <a
+     href="#current5">current table</a> must be marked as <dfn
+     id=tainted>tainted</dfn>. (Once the <a href="#current5">current
+     table</a> has been <a href="#tainted">tainted</a>, whitespace characters
+     are inserted into the <i><a href="#foster">foster parent element</a></i>
+     instead of the <a href="#current4">current node</a>.)</p>
 
     <p>The <dfn id=foster>foster parent element</dfn> is the parent element
      of the last <code><a href="#table">table</a></code> element in the <a

Modified: source
===================================================================
--- source	2008-03-04 00:02:44 UTC (rev 1325)
+++ source	2008-03-04 01:58:39 UTC (rev 1326)
@@ -37813,6 +37813,13 @@
   <p>The <dfn>current node</dfn> is the bottommost node in this
   stack.</p>
 
+  <p>The <dfn>current table</dfn> is the last <code>table</code>
+  element in the <span>stack of open elements</span>, if there is
+  one. If there is no <code>table</code> element in the <span>stack of
+  open elements</span> (<span>fragment case</span>), then the
+  <span>current table</span> is the first element in the <span>stack
+  of open elements</span> (the <code>html</code> element).</p>
+
   <p>Elements in the stack fall into the following categories:</p>
 
   <dl>
@@ -40129,8 +40136,13 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p><span title="append a character">Append the character</span> to
-    the <span>current node</span>.</p>
+
+    <p>If the <span>current table</span> is <span>tainted</span>, then
+    treat the token as per the "anything else" entry below.</p>
+
+    <p>Otherwise, <span title="append a character">append the
+    character</span> to the <span>current node</span>.</p>
+
    </dd>
 
    <dt>A comment token</dt>
@@ -40251,9 +40263,13 @@
 
     <p>If the <span>current node</span> is a <code>table</code>,
     <code>tbody</code>, <code>tfoot</code>, <code>thead</code>, or
-    <code>tr</code> element, then, whenever a node would be
-    inserted into the <span>current node</span>, it must instead
-    be inserted into the <em>foster parent element</em>.</p>
+    <code>tr</code> element, then, whenever a node would be inserted
+    into the <span>current node</span>, it must instead be inserted
+    into the <i>foster parent element</i>, and the <span>current
+    table</span> must be marked as <dfn>tainted</dfn>. (Once the
+    <span>current table</span> has been <span>tainted</span>,
+    whitespace characters are inserted into the <i>foster parent
+    element</i> instead of the <span>current node</span>.)</p>
 
     <p>The <dfn>foster parent element</dfn> is the parent element
     of the last <code>table</code> element in the <span>stack of




More information about the Commit-Watchers mailing list