NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 533 - Reverse r2732 since it broke pages.
Reverse r2732 since it broke pages.
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-27 14:23 CEST by Henri Sivonen
Modified: 2009-05-27 14:32 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-05-27 14:23:41 CEST
Index: source
===================================================================
--- source	(revision 2861)
+++ source	(revision 2862)
@@ -58286,14 +58286,20 @@
   <i>foster parent element</i> instead of the <span>current
   node</span>.)</p>
 
-  <p>The <dfn>foster parent element</dfn> is defined as follows: If
-  there is no <code>table</code> element in the <span>stack of open
-  elements</span> (<span>fragment case</span>), then the <i>foster
-  parent element</i> is the first element in the <span>stack of open
-  elements</span> (the <code>html</code> element). Otherwise, the
-  <i>foster parent element</i> is the element before the last
+  <p>The <dfn>foster parent element</dfn> is the parent element of the
+  last <code>table</code> element in the <span>stack of open
+  elements</span>, if there is a <code>table</code> element and it has
+  such a parent element. If there is no <code>table</code> element in
+  the <span>stack of open elements</span> (<span>fragment
+  case</span>), then the <i>foster parent element</i> is the first
+  element in the <span>stack of open elements</span> (the
+  <code>html</code> element). Otherwise, if there is a
   <code>table</code> element in the <span>stack of open
-  elements</span>.</p>
+  elements</span>, but the last <code>table</code> element in the
+  <span>stack of open elements</span> has no parent, or its parent
+  node is not an element, then the <i>foster parent element</i> is
+  the element before the last <code>table</code> element in the
+  <span>stack of open elements</span>.</p>
 
   <p>If the <i>foster parent element</i> is the parent element of the
   last <code>table</code> element in the <span>stack of open