Skip to content

Commit

Permalink
[e] (0) Clarify 'next token' in the HTML parser.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22026
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@7949 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 8, 2013
1 parent 3714ef8 commit 5a3d1f0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
13 changes: 7 additions & 6 deletions complete.html
Expand Up @@ -87848,8 +87848,9 @@ <h4 id=tree-construction><span class=secno>12.2.5 </span><dfn>Tree construction<
<code><a href=#document>Document</a></code> so that it is available to the user, or when it has to begin accepting user
input.</p>

<hr><p>As each token is emitted from the tokenizer, the user agent must follow the appropriate steps
from the following list:</p>
<hr><p>As each token is emitted from the tokenizer, and when the specification says that a user agent
is to <dfn id=act-as-if-a-token-had-been-seen>act as if a token had been seen</dfn>, the user agent must follow the appropriate steps
from the following list, known as the <dfn id=tree-construction-dispatcher>tree construction dispatcher</dfn>:</p>

<dl class=switch><dt>If there is no <a href=#adjusted-current-node>adjusted current node</a></dt>
<dt>If the <a href=#adjusted-current-node>adjusted current node</a> is an element in the <a href=#html-namespace-0>HTML namespace</a></dt>
Expand All @@ -87867,8 +87868,8 @@ <h4 id=tree-construction><span class=secno>12.2.5 </span><dfn>Tree construction<

<dd>Process the token according to the rules given in the section for parsing tokens <a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign content</a>.</dd>

</dl><p>When the specification says that a user agent is to <dfn id=act-as-if-a-token-had-been-seen>act as if a token had been seen</dfn>,
it means that the user agent is to follow the appropriate steps from the above list.</p>
</dl><p>The <dfn id=next-token>next token</dfn> is the token that is about to be processed by the <a href=#tree-construction-dispatcher>tree
construction dispatcher</a> (even if the token is subsequently just ignored).</p>

<p>A node is a <dfn id=mathml-text-integration-point>MathML text integration point</dfn> if it is one of the following
elements:</p>
Expand Down Expand Up @@ -89040,7 +89041,7 @@ <h6 id=the-before-head-insertion-mode><span class=secno>12.2.5.4.3 </span>The "<

<p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>

<p>If the next token is a U+000A LINE FEED (LF) character
<p>If the <a href=#next-token>next token</a> is a U+000A LINE FEED (LF) character
token, then ignore that token and move on to the next
one. (Newlines at the start of <code><a href=#the-pre-element>pre</a></code> blocks are
ignored as an authoring convenience.)</p>
Expand Down Expand Up @@ -89815,7 +89816,7 @@ <h6 id=the-before-head-insertion-mode><span class=secno>12.2.5.4.3 </span>The "<
<ol><li><p><a href=#insert-an-html-element>Insert an HTML element</a> for the
token.</li>

<li><p>If the next token is a U+000A LINE FEED (LF) character
<li><p>If the <a href=#next-token>next token</a> is a U+000A LINE FEED (LF) character
token, then ignore that token and move on to the next
one. (Newlines at the start of <code><a href=#the-textarea-element>textarea</a></code> elements are
ignored as an authoring convenience.)</li>
Expand Down
13 changes: 7 additions & 6 deletions index
Expand Up @@ -87848,8 +87848,9 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>
<code><a href=#document>Document</a></code> so that it is available to the user, or when it has to begin accepting user
input.</p>

<hr><p>As each token is emitted from the tokenizer, the user agent must follow the appropriate steps
from the following list:</p>
<hr><p>As each token is emitted from the tokenizer, and when the specification says that a user agent
is to <dfn id=act-as-if-a-token-had-been-seen>act as if a token had been seen</dfn>, the user agent must follow the appropriate steps
from the following list, known as the <dfn id=tree-construction-dispatcher>tree construction dispatcher</dfn>:</p>

<dl class=switch><dt>If there is no <a href=#adjusted-current-node>adjusted current node</a></dt>
<dt>If the <a href=#adjusted-current-node>adjusted current node</a> is an element in the <a href=#html-namespace-0>HTML namespace</a></dt>
Expand All @@ -87867,8 +87868,8 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>

<dd>Process the token according to the rules given in the section for parsing tokens <a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign content</a>.</dd>

</dl><p>When the specification says that a user agent is to <dfn id=act-as-if-a-token-had-been-seen>act as if a token had been seen</dfn>,
it means that the user agent is to follow the appropriate steps from the above list.</p>
</dl><p>The <dfn id=next-token>next token</dfn> is the token that is about to be processed by the <a href=#tree-construction-dispatcher>tree
construction dispatcher</a> (even if the token is subsequently just ignored).</p>

<p>A node is a <dfn id=mathml-text-integration-point>MathML text integration point</dfn> if it is one of the following
elements:</p>
Expand Down Expand Up @@ -89040,7 +89041,7 @@ document.body.appendChild(text);

<p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>

<p>If the next token is a U+000A LINE FEED (LF) character
<p>If the <a href=#next-token>next token</a> is a U+000A LINE FEED (LF) character
token, then ignore that token and move on to the next
one. (Newlines at the start of <code><a href=#the-pre-element>pre</a></code> blocks are
ignored as an authoring convenience.)</p>
Expand Down Expand Up @@ -89815,7 +89816,7 @@ document.body.appendChild(text);
<ol><li><p><a href=#insert-an-html-element>Insert an HTML element</a> for the
token.</li>

<li><p>If the next token is a U+000A LINE FEED (LF) character
<li><p>If the <a href=#next-token>next token</a> is a U+000A LINE FEED (LF) character
token, then ignore that token and move on to the next
one. (Newlines at the start of <code><a href=#the-textarea-element>textarea</a></code> elements are
ignored as an authoring convenience.)</li>
Expand Down
13 changes: 7 additions & 6 deletions source
Expand Up @@ -98169,8 +98169,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<hr>

<p>As each token is emitted from the tokenizer, the user agent must follow the appropriate steps
from the following list:</p>
<p>As each token is emitted from the tokenizer, and when the specification says that a user agent
is to <dfn>act as if a token had been seen</dfn>, the user agent must follow the appropriate steps
from the following list, known as the <dfn>tree construction dispatcher</dfn>:</p>

<dl class="switch">

Expand All @@ -98193,8 +98194,8 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

</dl>

<p>When the specification says that a user agent is to <dfn>act as if a token had been seen</dfn>,
it means that the user agent is to follow the appropriate steps from the above list.</p>
<p>The <dfn>next token</dfn> is the token that is about to be processed by the <span>tree
construction dispatcher</span> (even if the token is subsequently just ignored).</p>

<p>A node is a <dfn>MathML text integration point</dfn> if it is one of the following
elements:</p>
Expand Down Expand Up @@ -99503,7 +99504,7 @@ document.body.appendChild(text);

<p><span>Insert an HTML element</span> for the token.</p>

<p>If the next token is a U+000A LINE FEED (LF) character
<p>If the <span>next token</span> is a U+000A LINE FEED (LF) character
token, then ignore that token and move on to the next
one. (Newlines at the start of <code>pre</code> blocks are
ignored as an authoring convenience.)</p>
Expand Down Expand Up @@ -100346,7 +100347,7 @@ document.body.appendChild(text);
<li><p><span>Insert an HTML element</span> for the
token.</p></li>

<li><p>If the next token is a U+000A LINE FEED (LF) character
<li><p>If the <span>next token</span> is a U+000A LINE FEED (LF) character
token, then ignore that token and move on to the next
one. (Newlines at the start of <code>textarea</code> elements are
ignored as an authoring convenience.)</p></li>
Expand Down

0 comments on commit 5a3d1f0

Please sign in to comment.