hixie: Some parser clarifications. (whatwg r5161)

hixie: Some parser clarifications. (whatwg r5161)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4116&r2=1.4117&f=h
http://html5.org/tools/web-apps-tracker?from=5160&to=5161

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4116
retrieving revision 1.4117
diff -u -d -r1.4116 -r1.4117
--- Overview.html 14 Jul 2010 18:27:50 -0000 1.4116
+++ Overview.html 14 Jul 2010 19:04:55 -0000 1.4117
@@ -55607,24 +55607,29 @@
   <p>The <dfn id="foster-parent-element">foster parent element</dfn> is the parent element of the
   last <code><a href="#the-table-element">table</a></code> element in the <a href="#stack-of-open-elements">stack of open
   elements</a>, if there is a <code><a href="#the-table-element">table</a></code> element and it has
-  such a parent element. If there is no <code><a href="#the-table-element">table</a></code> element in
-  the <a href="#stack-of-open-elements">stack of open elements</a> (<a href="#fragment-case">fragment
-  case</a>), then the <i><a href="#foster-parent-element">foster parent element</a></i> is the first
-  element in the <a href="#stack-of-open-elements">stack of open elements</a> (the
-  <code><a href="#the-html-element-0">html</a></code> element). Otherwise, if there is a
-  <code><a href="#the-table-element">table</a></code> element in the <a href="#stack-of-open-elements">stack of open
+  such a parent element.</p>
+
+  <p class="note">It might have no parent or some other kind parent if
+  a script manipulated the DOM after the element was inserted by the
+  parser.</p>
+
+  <p>If there is no <code><a href="#the-table-element">table</a></code> element in the <a href="#stack-of-open-elements">stack of
+  open elements</a> (<a href="#fragment-case">fragment case</a>), then the
+  <i><a href="#foster-parent-element">foster parent element</a></i> is the first element in the <a href="#stack-of-open-elements">stack
+  of open elements</a> (the <code><a href="#the-html-element-0">html</a></code> element). Otherwise,
+  if there is a <code><a href="#the-table-element">table</a></code> element in the <a href="#stack-of-open-elements">stack of open
   elements</a>, but the last <code><a href="#the-table-element">table</a></code> element in the
   <a href="#stack-of-open-elements">stack of open elements</a> has no parent, or its parent
-  node is not an element, then the <i><a href="#foster-parent-element">foster parent element</a></i> is
-  the element before the last <code><a href="#the-table-element">table</a></code> element in the
+  node is not an element, then the <i><a href="#foster-parent-element">foster parent element</a></i> is the
+  element before the last <code><a href="#the-table-element">table</a></code> element in the
   <a href="#stack-of-open-elements">stack of open elements</a>.</p>
 
   <p>If the <i><a href="#foster-parent-element">foster parent element</a></i> is the parent element of the
   last <code><a href="#the-table-element">table</a></code> element in the <a href="#stack-of-open-elements">stack of open
-  elements</a>, then <var title="">node</var> must be inserted
-  immediately <em>before</em> the last <code><a href="#the-table-element">table</a></code> element in
-  the <a href="#stack-of-open-elements">stack of open elements</a> in the <i><a href="#foster-parent-element">foster parent
-  element</a></i>; otherwise, <var title="">node</var> must be
+  elements</a>, then <var title="">node</var> must be inserted into
+  the <i><a href="#foster-parent-element">foster parent element</a></i>, immediately <em>before</em> the
+  last <code><a href="#the-table-element">table</a></code> element in the <a href="#stack-of-open-elements">stack of open
+  elements</a>; otherwise, <var title="">node</var> must be
   <em>appended</em> to the <i><a href="#foster-parent-element">foster parent element</a></i>.</p>

Received on Wednesday, 14 July 2010 19:05:42 UTC