NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 207 - Make innerHTML on <td> and <th> work.
Make innerHTML on <td> and <th> work.
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-25 21:04 CEST by Henri Sivonen
Modified: 2009-11-23 17:16 CET (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 2008-05-25 21:04:32 CEST
Index: source
===================================================================
--- source	(revision 1689)
+++ source	(revision 1690)
@@ -39983,17 +39983,9 @@
    <span>stack of open elements</span>.</li>
 
    <li>If <var title="">node</var> is the first node in the stack of
-   open elements, then set <var title="">last</var> to true; if, in
-   addition, the <var title="">context</var> element of the <span>HTML
-   fragment parsing algorithm</span> is neither a <code>td</code>
-   element nor a <code>th</code> element, then set <var
-   title="">node</var> to the <var title="">context</var>
-   element. (<span>fragment case</span>)</li> <!-- XXX this fails to
-   actually set "node" to something useful in the <td> case, which we
-   want (either body (or nothing, to hit the last clause in this list)
-   or td/th; in the former case, remove the redundant 'fragment case'
-   bits in the 'in cell' section, in the latter case, check that
-   td.innerHTML = "<caption>" works as expected by browsers) -->
+   open elements, then set <var title="">last</var> to true and set
+   <var title="">node</var> to the <var title="">context</var>
+   element. (<span>fragment case</span>)</li>
 
    <li>If <var title="">node</var> is a <code>select</code> element,
    then switch the <span>insertion mode</span> to "<span
@@ -40001,9 +39993,9 @@
    steps. (<span>fragment case</span>)</li>
 
    <li>If <var title="">node</var> is a <code>td</code> or
-   <code>th</code> element, then switch the <span>insertion
-   mode</span> to "<span title="insertion mode: in cell">in
-   cell</span>" and abort these steps.</li>
+   <code>th</code> element and <var title="">last</var> is false, then
+   switch the <span>insertion mode</span> to "<span title="insertion
+   mode: in cell">in cell</span>" and abort these steps.</li>
 
    <li>If <var title="">node</var> is a <code>tr</code> element, then
    switch the <span>insertion mode</span> to "<span title="insertion