[html5] r7949 - [e] (0) Clarify 'next token' in the HTML parser. Fixing https://www.w3.org/Bugs/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 7 17:13:57 PDT 2013


Author: ianh
Date: 2013-06-07 17:13:55 -0700 (Fri, 07 Jun 2013)
New Revision: 7949

Modified:
   complete.html
   index
   source
Log:
[e] (0) Clarify 'next token' in the HTML parser.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22026
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2013-06-08 00:07:52 UTC (rev 7948)
+++ complete.html	2013-06-08 00:13:55 UTC (rev 7949)
@@ -87848,8 +87848,9 @@
   <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>
@@ -87867,8 +87868,8 @@
 
    <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>
@@ -89040,7 +89041,7 @@
 
     <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>
@@ -89815,7 +89816,7 @@
     <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>

Modified: index
===================================================================
--- index	2013-06-08 00:07:52 UTC (rev 7948)
+++ index	2013-06-08 00:13:55 UTC (rev 7949)
@@ -87848,8 +87848,9 @@
   <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>
@@ -87867,8 +87868,8 @@
 
    <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>
@@ -89040,7 +89041,7 @@
 
     <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>
@@ -89815,7 +89816,7 @@
     <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>

Modified: source
===================================================================
--- source	2013-06-08 00:07:52 UTC (rev 7948)
+++ source	2013-06-08 00:13:55 UTC (rev 7949)
@@ -98169,8 +98169,9 @@
 
   <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">
 
@@ -98193,8 +98194,8 @@
 
   </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>
@@ -99503,7 +99504,7 @@
 
     <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>
@@ -100346,7 +100347,7 @@
      <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>




More information about the Commit-Watchers mailing list