Skip to content

Commit

Permalink
[ct] (0) Make innerHTML on <td> and <th> work.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1690 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 24, 2008
1 parent 4de3224 commit 4b4bfb0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 29 deletions.
21 changes: 6 additions & 15 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -42384,28 +42384,19 @@ function receiver(e) {
href="#stack">stack of open elements</a>.

<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 <a href="#html-fragment0">HTML
fragment parsing algorithm</a> is neither a <code><a
href="#td">td</a></code> element nor a <code><a href="#th">th</a></code>
element, then set <var title="">node</var> to the <var
title="">context</var> element. (<a href="#fragment">fragment case</a>)</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) -->
elements, then set <var title="">last</var> to true and set <var
title="">node</var> to the <var title="">context</var> element. (<a
href="#fragment">fragment case</a>)

<li>If <var title="">node</var> is a <code>select</code> element, then
switch the <span>insertion mode</span> to "<a href="#in-select"
title="insertion mode: in select">in select</a>" and abort these steps.
(<a href="#fragment">fragment case</a>)

<li>If <var title="">node</var> is a <code><a href="#td">td</a></code> or
<code><a href="#th">th</a></code> element, then switch the
<span>insertion mode</span> to "<a href="#in-cell" title="insertion mode:
in cell">in cell</a>" and abort these steps.
<code><a href="#th">th</a></code> element and <var title="">last</var> is
false, then switch the <span>insertion mode</span> to "<a href="#in-cell"
title="insertion mode: in cell">in cell</a>" and abort these steps.

<li>If <var title="">node</var> is a <code><a href="#tr">tr</a></code>
element, then switch the <span>insertion mode</span> to "<a
Expand Down
20 changes: 6 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -39983,27 +39983,19 @@ function receiver(e) {
<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
title="insertion mode: in select">in select</span>" and abort these
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
Expand Down

0 comments on commit 4b4bfb0

Please sign in to comment.