Bugzilla – Bug 207
Make innerHTML on <td> and <th> work.
Last modified: 2009-11-23 17:16:53 CET
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