Skip to content

Commit

Permalink
reconstructing the inlines when there are none would lead to problems.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@462 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 23, 2006
1 parent 7f61851 commit 7332306
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 21 deletions.
16 changes: 12 additions & 4 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<h1 id=web-applications>Web Applications 1.0</h1>

<h2 class="no-num no-toc" id=working>Working Draft &mdash; 22 December
<h2 class="no-num no-toc" id=working>Working Draft &mdash; 23 December
2006</h2>

<p>You can take part in this work. <a
Expand Down Expand Up @@ -28092,6 +28092,10 @@ http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.
steps:

<ol>
<li>If there are no entries in the <a href="#list-of2">list of active
formatting elements</a>, then there is nothing to reconstruct; stop this
algorithm.

<li>If the last (most recently added) entry in the <a
href="#list-of2">list of active formatting elements</a> is a marker, or
if it is an element that is in the <a href="#stack">stack of open
Expand All @@ -28101,12 +28105,16 @@ http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.
element in the <a href="#list-of2">list of active formatting
elements</a>.

<li>If there are no entries before <var title="">entry</var> in the <a
href="#list-of2">list of active formatting elements</a>, then jump to
step 8.

<li>Let <var title="">entry</var> be the entry one earlier than <var
title="">entry</var> in the <a href="#list-of2">list of active formatting
elements</a>.

<li>If <var title="">entry</var> is neither a marker nor an element that
is also in the <a href="#stack">stack of open elements</a>, go to step 3.
is also in the <a href="#stack">stack of open elements</a>, go to step 4.

<li>Let <var title="">entry</var> be the element one later than <var
title="">entry</var> in the <a href="#list-of2">list of active formatting
Expand Down Expand Up @@ -28134,8 +28142,8 @@ http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.
<p class=note>The way this specification is written, the <a
href="#list-of2">list of active formatting elements</a> always consists of
elements in chronological order with the least recently added element
first and the most recently added element last (except for while steps 5
to 9 of the above algorithm are being executed, of course).
first and the most recently added element last (except for while steps 8
to 11 of the above algorithm are being executed, of course).

<p>When the steps below require the UA to <dfn id=clear0>clear the list of
active formatting elements up to the last marker</dfn>, the UA must
Expand Down
46 changes: 29 additions & 17 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -25999,20 +25999,30 @@ http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.

<ol>

<li>If there are no entries in the <span>list of active formatting
elements</span>, then there is nothing to reconstruct; stop this
algorithm.</li>

<li>If the last (most recently added) entry in the <span>list of
active formatting elements</span> is a marker, or if it is an
element that is in the <span>stack of open elements</span>, then
there is nothing to reconstruct; stop this algorithm.</li>

<li>Let <var title="">entry</var> be the last (most recently added) element
in the <span>list of active formatting elements</span>.</li>
<li>Let <var title="">entry</var> be the last (most recently added)
element in the <span>list of active formatting
elements</span>.</li>

<li>If there are no entries before <var title="">entry</var> in the
<span>list of active formatting elements</span>, then jump to step
8.</li>

<li>Let <var title="">entry</var> be the entry one earlier than
<var title="">entry</var> in the <span>list of active formatting
elements</span>.</li>

<li>If <var title="">entry</var> is neither a marker nor an element that is
also in the <span>stack of open elements</span>, go to step 3.</li>
<li>If <var title="">entry</var> is neither a marker nor an element
that is also in the <span>stack of open elements</span>, go to step
4.</li>

<li>Let <var title="">entry</var> be the element one later than
<var title="">entry</var> in the <span>list of active formatting
Expand All @@ -26022,16 +26032,17 @@ http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.
obtain <var title="">clone</var>. <a
href="#refsDOM3CORE">[DOM3CORE]</a></li>

<li>Append <var title="">clone</var> to the <span>current node</span> and
push it onto the <span>stack of open elements</span> so that it is
the new <span>current node</span>.</li>
<li>Append <var title="">clone</var> to the <span>current
node</span> and push it onto the <span>stack of open
elements</span> so that it is the new <span>current
node</span>.</li>

<li>Replace the entry for <var title="">entry</var> in the list with an
entry for <var title="">clone</var>.</li>
<li>Replace the entry for <var title="">entry</var> in the list
with an entry for <var title="">clone</var>.</li>

<li>If the entry for <var title="">clone</var> in the <span>list of active
formatting elements</span> is not the last entry in the list,
return to step 5.</li>
<li>If the entry for <var title="">clone</var> in the <span>list of
active formatting elements</span> is not the last entry in the
list, return to step 5.</li>

</ol>

Expand All @@ -26043,7 +26054,7 @@ http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.
<span>list of active formatting elements</span> always consists of
elements in chronological order with the least recently added
element first and the most recently added element last (except for
while steps 5 to 9 of the above algorithm are being executed, of
while steps 8 to 11 of the above algorithm are being executed, of
course).</p>

<p>When the steps below require the UA to <dfn>clear the list of
Expand All @@ -26052,14 +26063,15 @@ http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.

<ol>

<li>Let <var title="">entry</var> be the last (most recently added) entry in
the <span>list of active formatting elements</span>.</li>
<li>Let <var title="">entry</var> be the last (most recently added)
entry in the <span>list of active formatting elements</span>.</li>

<li>Remove <var title="">entry</var> from the <span>list of active
formatting elements</span>.</li>

<li>If <var title="">entry</var> was a marker, then stop the algorithm at
this point. The list has been cleared up to the last marker.</li>
<li>If <var title="">entry</var> was a marker, then stop the
algorithm at this point. The list has been cleared up to the last
marker.</li>

<li>Go to step 1.</li>

Expand Down

0 comments on commit 7332306

Please sign in to comment.