[html5] r1345 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Mar 4 21:40:22 PST 2008


Author: ianh
Date: 2008-03-04 21:40:21 -0800 (Tue, 04 Mar 2008)
New Revision: 1345

Modified:
   index
   source
Log:
[e] (0) Clarify what it means to 'process the token as if' into another insertion mode

Modified: index
===================================================================
--- index	2008-03-05 05:19:10 UTC (rev 1344)
+++ index	2008-03-05 05:40:21 UTC (rev 1345)
@@ -40513,6 +40513,19 @@
    after after frameset">after after frameset</a>" during the course of the
    parsing, as described below. It affects how certain tokens are processed.
 
+  <p>Four of these modes, namely "<a href="#in-head" title="insertion mode:
+   in head">in head</a>", "<a href="#in-body" title="insertion mode: in
+   body">in body</a>", "<a href="#in-table" title="insertion mode: in
+   table">in table</a>", and "<a href="#in-select" title="insertion mode: in
+   select">in select</a>", are special, in that the other modes defer to them
+   at various times. When the algorithm below says that the user agent is to
+   do something "<dfn id=using8>using the rules for</dfn> the <var
+   title="">m</var> insertion mode", where <var title="">m</var> is one of
+   these modes, the user agent must use the rules described under that <a
+   href="#insertion0">insertion mode</a>'s section, but must leave the <a
+   href="#insertion0">insertion mode</a> unchanged (unless the rules in that
+   section themselves change the <a href="#insertion0">insertion mode</a>).
+
   <p>In addition to the <a href="#insertion0">insertion mode</a>, the tree
    construction stage has several pieces of state: a <a href="#stack">stack
    of open elements</a>, a <a href="#list-of4">list of active formatting
@@ -40531,16 +40544,17 @@
    href="#adoptionAgency">the handling for misnested tags</a>).
 
   <p>The "<a href="#before4" title="insertion mode: before html">before
-   html</a>" insertion mode creates the <code><a href="#html">html</a></code>
-   root element node, which is then added to the stack.
+   html</a>" <a href="#insertion0">insertion mode</a> creates the <code><a
+   href="#html">html</a></code> root element node, which is then added to the
+   stack.
 
   <p>In the <a href="#fragment">fragment case</a>, the <a href="#stack">stack
    of open elements</a> is initialised to contain an <code><a
    href="#html">html</a></code> element that is created as part of <a
    href="#html-fragment0" title="html fragment parsing algorithm">that
    algorithm</a>. (The <a href="#fragment">fragment case</a> skips the "<a
-   href="#before4" title="insertion mode: before html">before html</a>"
-   insertion mode.)
+   href="#before4" title="insertion mode: before html">before html</a>" <a
+   href="#insertion0">insertion mode</a>.)
 
   <p>The <code><a href="#html">html</a></code> node, however it is created,
    is the topmost node of the stack. It never gets popped off the stack.
@@ -41488,9 +41502,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is "head"
 
@@ -41571,9 +41585,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is one of: "base", "link"
 
@@ -41805,9 +41819,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>An end tag whose tag name is "noscript"
 
@@ -41830,9 +41844,9 @@
    <dt>A start tag whose tag name is one of: "link", "meta", "style"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-head" title="insertion mode: in head">in
-     head</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-head" title="insertion mode: in head">in head</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>An end tag whose tag name is one of: "p", "br"
 
@@ -41889,9 +41903,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is "body"
 
@@ -41920,9 +41934,9 @@
      title="">head</code> element pointer</a> onto the <a href="#stack">stack
      of open elements</a>.</p>
 
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-head" title="insertion mode: in head">in
-     head</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-head" title="insertion mode: in head">in head</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
     <p>Pop the <a href="#current4">current node</a> (which will be the node
      pointed to by the <a href="#head-element"><code title="">head</code>
@@ -41982,9 +41996,9 @@
     "script", "style", "title"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-head" title="insertion mode: in head">in
-     head</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-head" title="insertion mode: in head">in head</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is "body"
 
@@ -43056,9 +43070,9 @@
      href="#tainted">tainted</a> then act as described in the "anything else"
      entry below.</p>
 
-    <p>Otherwise, process the token as if the <a href="#insertion0">insertion
-     mode</a> was "<a href="#in-head" title="insertion mode: in head">in
-     head</a>".</p>
+    <p>Otherwise, process the token <a href="#using8">using the rules for</a>
+     the "<a href="#in-head" title="insertion mode: in head">in head</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is "input"
 
@@ -43088,10 +43102,10 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse0">Parse error</a>. Process the token as if the <a
-     href="#insertion0">insertion mode</a> was "<a href="#in-body"
-     title="insertion mode: in body">in body</a>", with the following
-     exception:</p>
+    <p><a href="#parse0">Parse error</a>. Process the token <a
+     href="#using8">using the rules for</a> the "<a href="#in-body"
+     title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>, with the following exception:</p>
 
     <p>If the <a href="#current4">current node</a> is a <code><a
      href="#table">table</a></code>, <code><a href="#tbody">tbody</a></code>,
@@ -43202,8 +43216,9 @@
    <dt>Anything else
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     was "<a href="#in-body" title="insertion mode: in body">in body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
   </dl>
 
   <h5 id=parsing-main-incolgroup><span class=secno>8.2.4.16. </span>The "<dfn
@@ -43243,9 +43258,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is "col"
 
@@ -43356,8 +43371,9 @@
    <dt>Anything else
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     was "<a href="#in-table" title="insertion mode: in table">in table</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-table" title="insertion mode: in table">in table</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
   </dl>
 
   <p>When the steps above require the UA to <dfn id=clear2>clear the stack
@@ -43445,8 +43461,9 @@
    <dt>Anything else
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     was "<a href="#in-table" title="insertion mode: in table">in table</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-table" title="insertion mode: in table">in table</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
   </dl>
 
   <p>When the steps above require the UA to <dfn id=clear3>clear the stack
@@ -43532,8 +43549,9 @@
    <dt>Anything else
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     was "<a href="#in-body" title="insertion mode: in body">in body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
   </dl>
 
   <p>Where the steps above say to <dfn id=close2>close the cell</dfn>, they
@@ -43595,9 +43613,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is "option"
 
@@ -43706,9 +43724,9 @@
    <dt>Anything else
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-select" title="insertion mode: in select">in
-     select</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-select" title="insertion mode: in select">in select</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
   </dl>
 
   <h5 id=parsing-main-afterbody><span class=secno>8.2.4.22. </span>The "<dfn
@@ -43730,9 +43748,9 @@
     <!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE
 
    <dd>
-    <p>Process the token as it would be processed if the <a
-     href="#insertion0">insertion mode</a> was "<a href="#in-body"
-     title="insertion mode: in body">in body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A comment token
 
@@ -43751,9 +43769,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>An end tag whose tag name is "html"
 
@@ -43812,9 +43830,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>A start tag whose tag name is "frameset"
 
@@ -43849,9 +43867,9 @@
    <dt>A start tag whose tag name is "noframes"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>Anything else
 
@@ -43899,9 +43917,9 @@
    <dt>A start tag whose tag name is "noframes"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>An end tag whose tag name is "html"
 
@@ -43950,9 +43968,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>Anything else
 
@@ -43992,9 +44010,9 @@
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p>Process the token as if the <a href="#insertion0">insertion mode</a>
-     had been "<a href="#in-body" title="insertion mode: in body">in
-     body</a>".</p>
+    <p>Process the token <a href="#using8">using the rules for</a> the "<a
+     href="#in-body" title="insertion mode: in body">in body</a>" <a
+     href="#insertion0">insertion mode</a>.</p>
 
    <dt>Anything else
 
@@ -44029,11 +44047,6 @@
      this is a <a href="#parse0">parse error</a>. (<a
      href="#fragment">fragment case</a>)</p>
 
-    <p class=big-issue>This fails because it doesn't imply HEAD and BODY
-     tags. We should probably expand out the insertion modes and merge them
-     with phases and then put the three things here into each insertion mode
-     instead of trying to factor them out so carefully.</p>
-
    <li>
     <p><a href="#stops0">Stop parsing</a> (see the next section).
   </ol>

Modified: source
===================================================================
--- source	2008-03-05 05:19:10 UTC (rev 1344)
+++ source	2008-03-05 05:40:21 UTC (rev 1345)
@@ -37800,6 +37800,19 @@
   frameset</span>" during the course of the parsing, as described
   below. It affects how certain tokens are processed.</p>
 
+  <p>Four of these modes, namely "<span title="insertion mode: in
+  head">in head</span>", "<span title="insertion mode: in body">in
+  body</span>", "<span title="insertion mode: in table">in
+  table</span>", and "<span title="insertion mode: in select">in
+  select</span>", are special, in that the other modes defer to them
+  at various times. When the algorithm below says that the user agent
+  is to do something "<dfn>using the rules for</dfn> the <var
+  title="">m</var> insertion mode", where <var title="">m</var> is one
+  of these modes, the user agent must use the rules described under
+  that <span>insertion mode</span>'s section, but must leave the
+  <span>insertion mode</span> unchanged (unless the rules in that
+  section themselves change the <span>insertion mode</span>).</p>
+
   <p>In addition to the <span>insertion mode</span>, the tree
   construction stage has several pieces of state: a <span>stack of
   open elements</span>, a <span>list of active formatting
@@ -37817,16 +37830,17 @@
   stack is manipulated in a random access fashion as part of <a
   href="#adoptionAgency">the handling for misnested tags</a>).</p>
 
-  <p>The "<span title="insertion mode: before html">before html</span>"
-  insertion mode creates the <code>html</code> root element node,
-  which is then added to the stack.</p>
+  <p>The "<span title="insertion mode: before html">before
+  html</span>" <span>insertion mode</span> creates the
+  <code>html</code> root element node, which is then added to the
+  stack.</p>
 
   <p>In the <span>fragment case</span>, the <span>stack of open
   elements</span> is initialised to contain an <code>html</code>
   element that is created as part of <span title="html fragment
   parsing algorithm">that algorithm</span>. (The <span>fragment
   case</span> skips the "<span title="insertion mode: before
-  html">before html</span>" insertion mode.)</p>
+  html">before html</span>" <span>insertion mode</span>.)</p>
 
   <p>The <code>html</code> node, however it is created, is the topmost
   node of the stack. It never gets popped off the stack.</p>
@@ -38588,9 +38602,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "head"</dt>
@@ -38682,9 +38696,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is one of: "base", "link"</dt>
@@ -38926,9 +38940,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>An end tag whose tag name is "noscript"</dt>
@@ -38951,9 +38965,9 @@
    <dt>A comment token</dt>
    <dt>A start tag whose tag name is one of: "link", "meta", "style"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in head">in
-    head</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in head">in head</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>An end tag whose tag name is one of: "p", "br"</dt>
@@ -39012,9 +39026,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "body"</dt>
@@ -39047,9 +39061,9 @@
     title="">head</code> element pointer</span> onto the
     <span>stack of open elements</span>.</p>
 
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in head">in
-    head</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in head">in head</span>" <span>insertion
+    mode</span>.</p>
 
     <p>Pop the <span>current node</span> (which will be the node
     pointed to by the <span><code title="">head</code> element
@@ -39114,8 +39128,9 @@
    <dt>A start tag token whose tag name is one of: "base", "link",
    "meta", "script", "style", "title"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in head">in head</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in head">in head</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "body"</dt>
@@ -40273,9 +40288,9 @@
     <p>If the <span>current table</span> is <span>tainted</span> then
     act as described in the "anything else" entry below.</p>
 
-    <p>Otherwise, process the token as if the <span>insertion
-    mode</span> was "<span title="insertion mode: in head">in
-    head</span>".</p>
+    <p>Otherwise, process the token <span>using the rules for</span>
+    the "<span title="insertion mode: in head">in
+    head</span>" <span>insertion mode</span>.</p>
 
    </dd>
 
@@ -40308,9 +40323,10 @@
    <dt>Anything else</dt>
    <dd>
 
-    <p><span>Parse error</span>. Process the token as if the
-    <span>insertion mode</span> was "<span title="insertion mode:
-    in body">in body</span>", with the following exception:</p>
+    <p><span>Parse error</span>. Process the token <span>using the
+    rules for</span> the "<span title="insertion mode: in body">in
+    body</span>" <span>insertion mode</span>, with the following
+    exception:</p>
 
     <p>If the <span>current node</span> is a <code>table</code>,
     <code>tbody</code>, <code>tfoot</code>, <code>thead</code>, or
@@ -40419,8 +40435,9 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> was
-    "<span title="insertion mode: in body">in body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
   </dl>
@@ -40461,9 +40478,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "col"</dt>
@@ -40585,8 +40602,9 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> was
-    "<span title="insertion mode: in table">in table</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in table">in table</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
   </dl>
@@ -40683,8 +40701,9 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> was
-    "<span title="insertion mode: in table">in table</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in table">in table</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
   </dl>
@@ -40776,8 +40795,9 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> was
-    "<span title="insertion mode: in body">in body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
   </dl>
@@ -40839,9 +40859,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "option"</dt>
@@ -40967,9 +40987,9 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in select">in
-    select</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in select">in select</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
   </dl>
@@ -40992,9 +41012,9 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p>Process the token as it would be processed if the
-    <span>insertion mode</span> was "<span title="insertion mode:
-    in body">in body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A comment token</dt>
@@ -41012,9 +41032,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>An end tag whose tag name is "html"</dt>
@@ -41078,9 +41098,9 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "frameset"</dt>
@@ -41118,8 +41138,9 @@
 
    <dt>A start tag whose tag name is "noframes"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>Anything else</dt>
@@ -41167,9 +41188,9 @@
    <dt>A start tag whose tag name is "html"</dt>
    <dt>A start tag whose tag name is "noframes"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in
-    body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>An end tag whose tag name is "html"</dt>
@@ -41218,8 +41239,9 @@
    SPACE</dt>
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>Anything else</dt>
@@ -41258,8 +41280,9 @@
    SPACE</dt>
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token as if the <span>insertion mode</span> had
-    been "<span title="insertion mode: in body">in body</span>".</p>
+    <p>Process the token <span>using the rules for</span> the "<span
+    title="insertion mode: in body">in body</span>" <span>insertion
+    mode</span>.</p>
    </dd>
 
    <dt>Anything else</dt>
@@ -41298,12 +41321,6 @@
     a <code>body</code> node, then this is a <span>parse
     error</span>. (<span>fragment case</span>)</p>
 
-    <p class="big-issue">This fails because it doesn't imply HEAD and
-    BODY tags. We should probably expand out the insertion modes and
-    merge them with phases and then put the three things here into
-    each insertion mode instead of trying to factor them out so
-    carefully.</p>
-
    </li>
 
    <li><p><span>Stop parsing</span> (see the next section).</p></li>




More information about the Commit-Watchers mailing list