Skip to content

Commit

Permalink
Fix a bug that would make the stack and the list get out of sync...
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@70 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 22, 2006
1 parent 44b2e63 commit 558c5de
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
22 changes: 17 additions & 5 deletions index
Expand Up @@ -20548,11 +20548,23 @@ function receiver(e) {

<p>If there is no <var title="">formatting element</var>, but there
is an element in the <span><a href="#list-of2">list of active
formatting elements</a></span>, between the end of the list and
the last scope marker in the list, if any, or the start of the
list otherwise, which has the same tag name as the token, then,
remove the last such element from the list. In any case, if there
is no <var title="">formatting element</var>, abort these steps.</p>
formatting elements</a></span> that:</p>

<ul>
<li>is between the end of the list and the last scope marker in
the list, if any, or the start of the list otherwise,

<li>has the same tag name as the token, and

<li>is not in the <span><a href="#stack">stack of open
elements</a></span> (it might be, despite that having been
checked above, because it might be in the stack but out of
scope),
</ul>

<p>...then remove the last such element from the list. In any case,
if there is no <var title="">formatting element</var>, abort these
steps.</p>

<p>Otherwise, there is a <var title="">formatting element</var>;
proceed with the algorithm as written in the following steps.</p>
Expand Down
21 changes: 17 additions & 4 deletions source
Expand Up @@ -18636,10 +18636,23 @@ function receiver(e) {

<p>If there is no <var title="">formatting element</var>,
but there is an element in the <span>list of active
formatting elements</span>, between the end of the list and
the last scope marker in the list, if any, or the start of
the list otherwise, which has the same tag name as the
token, then, remove the last such element from the list. In
formatting elements</span> that:</p>

<ul>

<li>is between the end of the list and the last scope
marker in the list, if any, or the start of the list
otherwise,</li>

<li>has the same tag name as the token, and</li>

<li>is not in the <span>stack of open elements</span> (it
might be, despite that having been checked above, because
it might be in the stack but out of scope),</li>

</ul>

<p>...then remove the last such element from the list. In
any case, if there is no <var title="">formatting
element</var>, abort these steps.</p>

Expand Down

0 comments on commit 558c5de

Please sign in to comment.