[html5] r2303 - [e] (0) The term 'insertion mode' lost its definition at some point...

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 8 00:56:12 PDT 2008


Author: ianh
Date: 2008-10-08 00:56:11 -0700 (Wed, 08 Oct 2008)
New Revision: 2303

Modified:
   index
   source
Log:
[e] (0) The term 'insertion mode' lost its definition at some point...

Modified: index
===================================================================
--- index	2008-10-08 07:51:40 UTC (rev 2302)
+++ index	2008-10-08 07:56:11 UTC (rev 2303)
@@ -44557,7 +44557,10 @@
 
   <h5 id=the-insertion-mode><span class=secno>8.2.3.1 </span>The insertion mode</h5>
 
-  <p>Initially the <span>insertion mode</span> is "<a href=#the-initial-insertion-mode title="insertion mode: initial">initial</a>". It can change to
+  <p>The <dfn id=insertion-mode>insertion mode</dfn> is a flag that controls the primary
+  operation of the tree construction stage.</p>
+
+  <p>Initially the <a href=#insertion-mode>insertion mode</a> is "<a href=#the-initial-insertion-mode title="insertion mode: initial">initial</a>". It can change to
   "<a href=#the-before-html-insertion-mode title="insertion mode: before html">before html</a>",
   "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>",
   "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>", "<a href=#parsing-main-inheadnoscript title="insertion mode: in head noscript">in head noscript</a>",
@@ -44588,8 +44591,8 @@
   "<dfn id=using-the-rules-for>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 the <var title="">m</var>
-  <span>insertion mode</span>'s section, but must leave the
-  <span>insertion mode</span> unchanged unless the rules in <var title="">m</var> themselves switch the <span>insertion mode</span>
+  <a href=#insertion-mode>insertion mode</a>'s section, but must leave the
+  <a href=#insertion-mode>insertion mode</a> unchanged unless the rules in <var title="">m</var> themselves switch the <a href=#insertion-mode>insertion mode</a>
   to a new value.</p>
 
   <p>When the insertion mode is switched to "<a href=#parsing-main-incdata title="insertion
@@ -44620,44 +44623,44 @@
    element. (<a href=#fragment-case>fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-select-element>select</a></code> element,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-inselect title="insertion mode: in select">in select</a>" and abort these
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inselect title="insertion mode: in select">in select</a>" and abort these
    steps. (<a href=#fragment-case>fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-td-element>td</a></code> or
    <code><a href=#the-th-element>th</a></code> element and <var title="">last</var> is false, then
-   switch the <span>insertion mode</span> to "<a href=#parsing-main-intd title="insertion
+   switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intd title="insertion
    mode: in cell">in cell</a>" and abort these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-tr-element>tr</a></code> element, then
-   switch the <span>insertion mode</span> to "<a href=#parsing-main-intr title="insertion
+   switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intr title="insertion
    mode: in row">in row</a>" and abort these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-tbody-element>tbody</a></code>,
    <code><a href=#the-thead-element>thead</a></code>, or <code><a href=#the-tfoot-element>tfoot</a></code> element, then switch the
-   <span>insertion mode</span> to "<a href=#parsing-main-intbody title="insertion mode: in
+   <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intbody title="insertion mode: in
    table body">in table body</a>" and abort these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-caption-element>caption</a></code> element,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-incaption title="insertion mode: in caption">in caption</a>" and abort
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-incaption title="insertion mode: in caption">in caption</a>" and abort
    these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-colgroup-element>colgroup</a></code> element,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-incolgroup title="insertion mode: in column group">in column group</a>" and
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-incolgroup title="insertion mode: in column group">in column group</a>" and
    abort these steps. (<a href=#fragment-case>fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-table-element>table</a></code> element,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>" and abort these
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>" and abort these
    steps.</li>
 
    <li>If <var title="">node</var> is an element from the <a href=#mathml-namespace>MathML
    namespace</a><!--XXXSVG or the <span>SVG namespace</span>-->,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign
    content</a>", let the <a href=#secondary-insertion-mode>secondary insertion mode</a> be
    "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>", and abort
    these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-head-element>head</a></code> element,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" ("<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>"! <em> not "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>"</em>!) and abort
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" ("<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>"! <em> not "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>"</em>!) and abort
    these steps. (<a href=#fragment-case>fragment case</a>)</li> <!-- This is only
    here for now in case people think that the spec accidentally
    omitted it and try to "fix" it. Note that noscript-in-head is also
@@ -44673,24 +44676,24 @@
    set?) -->
 
    <li>If <var title="">node</var> is a <code><a href=#the-body-element>body</a></code> element,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" and abort these
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" and abort these
    steps.</li>
 
    <li>If <var title="">node</var> is a <code>frameset</code> element,
-   then switch the <span>insertion mode</span> to "<a href=#parsing-main-inframeset title="insertion mode: in frameset">in frameset</a>" and abort
+   then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inframeset title="insertion mode: in frameset">in frameset</a>" and abort
    these steps. (<a href=#fragment-case>fragment case</a>)</li>
 
    <li>If <var title="">node</var> is an <code><a href=#the-html-element>html</a></code> element,
    then: if the <a href=#head-element-pointer><code title="">head</code> element
-   pointer</a> is null, switch the <span>insertion mode</span> to
+   pointer</a> is null, switch the <a href=#insertion-mode>insertion mode</a> to
    "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>",
-   otherwise, switch the <span>insertion mode</span> to "<a href=#the-after-head-insertion-mode title="insertion mode: after head">after head</a>". In either
+   otherwise, switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-after-head-insertion-mode title="insertion mode: after head">after head</a>". In either
    case, abort these steps. (<a href=#fragment-case>fragment case</a>)</li> <!-- XXX
    can the head element pointer ever be non-null when we're going
    through these steps? -->
 
    <li>If <var title="">last</var> is true, then switch the
-   <span>insertion mode</span> to "<a href=#parsing-main-inbody title="insertion mode: in
+   <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inbody title="insertion mode: in
    body">in body</a>" and abort these steps. (<a href=#fragment-case>fragment
    case</a>)</li>
 
@@ -44708,7 +44711,7 @@
   stack is manipulated in a random access fashion as part of <a href=#adoptionAgency>the handling for misnested tags</a>).</p>
 
   <p>The "<a href=#the-before-html-insertion-mode title="insertion mode: before html">before
-  html</a>" <span>insertion mode</span> creates the
+  html</a>" <a href=#insertion-mode>insertion mode</a> creates the
   <code><a href=#the-html-element>html</a></code> root element node, which is then added to the
   stack.</p>
 
@@ -44717,7 +44720,7 @@
   element that is created as part of <a href=#html-fragment-parsing-algorithm title="html fragment
   parsing algorithm">that algorithm</a>. (The <a href=#fragment-case>fragment
   case</a> skips the "<a href=#the-before-html-insertion-mode title="insertion mode: before
-  html">before html</a>" <span>insertion mode</span>.)</p>
+  html">before html</a>" <a href=#insertion-mode>insertion mode</a>.)</p>
 
   <p>The <code><a href=#the-html-element>html</a></code> node, however it is created, is the topmost
   node of the stack. It never gets popped off the stack.</p>
@@ -44976,7 +44979,7 @@
   state. In the RCDATA and CDATA states, a further <dfn id=escape-flag>escape
   flag</dfn> is used to control the behavior of the tokeniser. It is
   either true or false, and initially must be set to the false
-  state. The <span>insertion mode</span> and the <a href=#stack-of-open-elements>stack of open
+  state. The <a href=#insertion-mode>insertion mode</a> and the <a href=#stack-of-open-elements>stack of open
   elements</a> also affects tokenization.</p>
 
   <p>The output of the tokenization step is a series of zero or more
@@ -45604,7 +45607,7 @@
   case-insensitive</a> match for the word "DOCTYPE", then consume
   those characters and switch to the <a href=#doctype-state>DOCTYPE state</a>.</p>
 
-  <p>Otherwise, if the <span>insertion mode</span> is "<a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign
+  <p>Otherwise, if the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign
   content</a>" and the <a href=#current-node>current node</a> is not an element
   in the <a href=#html-namespace-0>HTML namespace</a> and the next seven characters are
   an <span>ASCII case-sensitive</span> match for the string "[CDATA["
@@ -46283,7 +46286,7 @@
 
   <p>As each token is emitted from the tokeniser, the user agent must
   process the token according to the rules given in the section
-  corresponding to the current <span>insertion mode</span>.</p>
+  corresponding to the current <a href=#insertion-mode>insertion mode</a>.</p>
 
   <p>When the steps below require the UA to <dfn id=insert-a-character>insert a
   character</dfn> into a node, if that node has a child immediately
@@ -46482,9 +46485,9 @@
    flag</a> to the RCDATA state.</li>
 
    <li><p>Let the <a href=#original-insertion-mode>original insertion mode</a> be the current
-   <span>insertion mode</span>.</p>
+   <a href=#insertion-mode>insertion mode</a>.</p>
 
-   <li><p>Then, switch the <span>insertion mode</span> to "<a href=#parsing-main-incdata title="insertion mode: in CDATA/RCDATA">in
+   <li><p>Then, switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-incdata title="insertion mode: in CDATA/RCDATA">in
    CDATA/RCDATA</a>".</li>
 
   </ol><h5 id=closing-elements-that-have-implied-end-tags><span class=secno>8.2.5.2 </span>Closing elements that have implied end tags</h5>
@@ -46543,7 +46546,7 @@
 
   <h5 id=the-initial-insertion-mode><span class=secno>8.2.5.4 </span>The "<dfn title="insertion mode: initial">initial</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#the-initial-insertion-mode title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#the-initial-insertion-mode title="insertion
   mode: initial">initial</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
@@ -46682,7 +46685,7 @@
     whose value is the empty string is not considered missing for the
     purposes of the conditions above.</p>
 
-    <p>Then, switch the <span>insertion mode</span> to "<a href=#the-before-html-insertion-mode title="insertion mode: before html">before html</a>".</p>
+    <p>Then, switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-before-html-insertion-mode title="insertion mode: before html">before html</a>".</p>
 
    </dd>
 
@@ -46693,14 +46696,14 @@
 
     <p>Set the document to <a href=#quirks-mode>quirks mode</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#the-before-html-insertion-mode title="insertion mode: before html">before html</a>", then
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-before-html-insertion-mode title="insertion mode: before html">before html</a>", then
     reprocess the current token.</p>
 
    </dd>
 
   </dl><h5 id=the-before-html-insertion-mode><span class=secno>8.2.5.5 </span>The "<dfn title="insertion mode: before html">before html</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#the-before-html-insertion-mode title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#the-before-html-insertion-mode title="insertion
   mode: before html">before html</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A DOCTYPE token</dt>
@@ -46739,7 +46742,7 @@
     it fails, run the <a href=#concept-appcache-init-no-attribute title=concept-appcache-init-no-attribute>application cache
     selection algorithm</a> with no manifest.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>".</p>
 
    </dd>
 
@@ -46754,7 +46757,7 @@
     <p>Run the <a href=#concept-appcache-init-no-attribute title=concept-appcache-init-no-attribute>application cache
     selection algorithm</a> with no manifest.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>", then
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>", then
     reprocess the current token.</p>
 
     <p class=XXX>Should probably make end tags be ignored, so
@@ -46771,7 +46774,7 @@
 
   <h5 id=the-before-head-insertion-mode><span class=secno>8.2.5.6 </span>The "<dfn title="insertion mode: before head">before head</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#the-before-head-insertion-mode title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#the-before-head-insertion-mode title="insertion
   mode: before head">before head</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
@@ -46795,8 +46798,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "head"</dt>
@@ -46807,7 +46810,7 @@
     <p>Set the <a href=#head-element-pointer><code title="">head</code> element pointer</a>
     to the newly created <code><a href=#the-head-element>head</a></code> element.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>".</p>
 
    </dd>
 
@@ -46836,13 +46839,13 @@
     <p class=note>This will result in an empty <code><a href=#the-head-element>head</a></code>
     element being generated, with the current token being
     reprocessed in the "<a href=#the-after-head-insertion-mode title="insertion mode: after
-    head">after head</a>" <span>insertion mode</span>.</p>
+    head">after head</a>" <a href=#insertion-mode>insertion mode</a>.</p>
 
    </dd>
 
   </dl><h5 id=parsing-main-inhead><span class=secno>8.2.5.7 </span>The "<dfn title="insertion mode: in head">in head</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-inhead title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inhead title="insertion
   mode: in head">in head</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
@@ -46867,8 +46870,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A start tag whose tag name is one of: "base", "command",
@@ -46925,7 +46928,7 @@
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-inheadnoscript title="insertion mode: in head noscript">in head
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inheadnoscript title="insertion mode: in head noscript">in head
     noscript</a>".</p>
 
    </dd>
@@ -46960,9 +46963,9 @@
      the CDATA state.</li>
 
      <li><p>Let the <a href=#original-insertion-mode>original insertion mode</a> be the current
-     <span>insertion mode</span>.</p>
+     <a href=#insertion-mode>insertion mode</a>.</p>
 
-     <li><p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-incdata title="insertion mode: in CDATA/RCDATA">in
+     <li><p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-incdata title="insertion mode: in CDATA/RCDATA">in
      CDATA/RCDATA</a>".</li>
 
     </ol></dd>
@@ -46974,7 +46977,7 @@
     <code><a href=#the-head-element>head</a></code> element) off the <a href=#stack-of-open-elements>stack of open
     elements</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#the-after-head-insertion-mode title="insertion mode: after head">after head</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-after-head-insertion-mode title="insertion mode: after head">after head</a>".</p>
 
    </dd>
 
@@ -47006,7 +47009,7 @@
 
   </dl><h5 id=parsing-main-inheadnoscript><span class=secno>8.2.5.8 </span>The "<dfn title="insertion mode: in head noscript">in head noscript</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-inheadnoscript title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inheadnoscript title="insertion
   mode: in head noscript">in head noscript</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A DOCTYPE token</dt>
@@ -47016,8 +47019,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end tag whose tag name is "noscript"</dt>
@@ -47028,7 +47031,7 @@
     elements</a>; the new <a href=#current-node>current node</a> will be a
     <code><a href=#the-head-element>head</a></code> element.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>".</p>
 
    </dd>
 
@@ -47038,8 +47041,8 @@
    <dt>A comment token</dt>
    <dt>A start tag whose tag name is one of: "link", "meta", "noframes", "style"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end tag whose tag name is one of: "br"</dt>
@@ -47066,7 +47069,7 @@
 
   </dl><h5 id=the-after-head-insertion-mode><span class=secno>8.2.5.9 </span>The "<dfn title="insertion mode: after head">after head</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#the-after-head-insertion-mode title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#the-after-head-insertion-mode title="insertion
   mode: after head">after head</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
@@ -47091,8 +47094,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "body"</dt>
@@ -47100,7 +47103,7 @@
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>".</p>
 
    </dd>
 
@@ -47109,7 +47112,7 @@
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-inframeset title="insertion mode: in frameset">in frameset</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inframeset title="insertion mode: in frameset">in frameset</a>".</p>
 
    </dd>
 
@@ -47122,8 +47125,8 @@
     <p>Push the node pointed to by the <a href=#head-element-pointer><code title="">head</code> element pointer</a> onto the
     <a href=#stack-of-open-elements>stack of open elements</a>.</p>
 
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
 
     <p>Pop the <a href=#current-node>current node</a> (which will be the node
     pointed to by the <a href=#head-element-pointer><code title="">head</code> element
@@ -47147,7 +47150,7 @@
 
   </dl><h5 id=parsing-main-inbody><span class=secno>8.2.5.10 </span>The "<dfn title="insertion mode: in body">in body</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-inbody title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inbody title="insertion
   mode: in body">in body</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token</dt>
@@ -47185,8 +47188,8 @@
    "eventsource", "link", "meta", "noframes", "script", "style",
    "title"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "body"</dt>
@@ -47243,7 +47246,7 @@
 
     <!-- the insertion mode here is forcibly "in body". -->
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-afterbody title="insertion mode: after body">after body</a>". Otherwise,
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-afterbody title="insertion mode: after body">after body</a>". Otherwise,
     ignore the token.</p>
 
    </dd>
@@ -47912,7 +47915,7 @@
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>".</p>
 
    </dd>
 
@@ -48113,9 +48116,9 @@
      the RCDATA state.</li>
 
      <li><p>Let the <a href=#original-insertion-mode>original insertion mode</a> be the
-     current <span>insertion mode</span>.</p>
+     current <a href=#insertion-mode>insertion mode</a>.</p>
 
-     <li><p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-incdata title="insertion mode: in CDATA/RCDATA">in
+     <li><p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-incdata title="insertion mode: in CDATA/RCDATA">in
      CDATA/RCDATA</a>".</li>
 
     </ol></dd>
@@ -48140,13 +48143,13 @@
     pointed to by the <a href=#form-element-pointer><code title="">form</code> element
     pointer</a>.</p>
 
-    <p>If the <span>insertion mode</span> is one of <a href=#parsing-main-intable title="insertion mode: in table">in table</a>", "<a href=#parsing-main-incaption title="insertion mode: in caption">in caption</a>", "<a href=#parsing-main-incolgroup title="insertion mode: in column group">in column group</a>",
+    <p>If the <a href=#insertion-mode>insertion mode</a> is one of <a href=#parsing-main-intable title="insertion mode: in table">in table</a>", "<a href=#parsing-main-incaption title="insertion mode: in caption">in caption</a>", "<a href=#parsing-main-incolgroup title="insertion mode: in column group">in column group</a>",
     "<a href=#parsing-main-intbody title="insertion mode: in table body">in table
     body</a>", "<a href=#parsing-main-intr title="insertion mode: in row">in
     row</a>", or "<a href=#parsing-main-intd title="insertion mode: in cell">in
-    cell</a>", then switch the <span>insertion mode</span> to
+    cell</a>", then switch the <a href=#insertion-mode>insertion mode</a> to
     "<a href=#parsing-main-inselectintable title="insertion mode: in select in table">in select in
-    table</a>". Otherwise, switch the <span>insertion mode</span>
+    table</a>". Otherwise, switch the <a href=#insertion-mode>insertion mode</a>
     to "<a href=#parsing-main-inselect title="insertion mode: in select">in select</a>".</p>
 
    </dd>
@@ -48228,8 +48231,8 @@
     flag">acknowledge the token's <i>self-closing flag</i></a>.</p>
 
     <p>Otherwise, let the <a href=#secondary-insertion-mode>secondary insertion mode</a> be the
-    current <span>insertion mode</span>, and then switch the
-    <span>insertion mode</span> to "<a href=#parsing-main-inforeign title="insertion mode: in
+    current <a href=#insertion-mode>insertion mode</a>, and then switch the
+    <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inforeign title="insertion mode: in
     foreign content">in foreign content</a>".</p>
 
    </dd>
@@ -48332,7 +48335,7 @@
 
   </dl><h5 id=parsing-main-incdata><span class=secno>8.2.5.11 </span>The "<dfn title="insertion mode: in CDATA/RCDATA">in CDATA/RCDATA</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-incdata title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-incdata title="insertion
   mode: in CDATA/RCDATA">in CDATA/RCDATA</a>", tokens must be
   handled as follows:</p>
 
@@ -48357,7 +48360,7 @@
     <p>Pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
     elements</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to the <a href=#original-insertion-mode>original
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to the <a href=#original-insertion-mode>original
     insertion mode</a> and reprocess the current token.</p>
 
    </dd>
@@ -48371,7 +48374,7 @@
     <p>Pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
     elements</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to the <a href=#original-insertion-mode>original
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to the <a href=#original-insertion-mode>original
     insertion mode</a>.</p>
 
     <p>Let the <var title="">old insertion point</var> have the
@@ -48437,14 +48440,14 @@
     <p>Pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
     elements</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to the <a href=#original-insertion-mode>original
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to the <a href=#original-insertion-mode>original
     insertion mode</a>.</p>
 
    </dd>
 
   </dl><h5 id=parsing-main-intable><span class=secno>8.2.5.12 </span>The "<dfn title="insertion mode: in table">in table</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-intable title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-intable title="insertion
   mode: in table">in table</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
@@ -48482,7 +48485,7 @@
     formatting elements</a>.</p>
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token, then
-    switch the <span>insertion mode</span> to "<a href=#parsing-main-incaption title="insertion mode: in caption">in caption</a>".</p>
+    switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-incaption title="insertion mode: in caption">in caption</a>".</p>
 
    </dd>
 
@@ -48493,7 +48496,7 @@
     below.)</p>
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token, then
-    switch the <span>insertion mode</span> to "<a href=#parsing-main-incolgroup title="insertion mode: in column group">in column
+    switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-incolgroup title="insertion mode: in column group">in column
     group</a>".</p>
 
    </dd>
@@ -48511,7 +48514,7 @@
     below.)</p>
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token, then
-    switch the <span>insertion mode</span> to "<a href=#parsing-main-intbody title="insertion mode: in table body">in table
+    switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intbody title="insertion mode: in table body">in table
     body</a>".</p>
 
    </dd>
@@ -48566,7 +48569,7 @@
 
     <p>Otherwise, process the token <a href=#using-the-rules-for>using the rules for</a>
     the "<a href=#parsing-main-inhead title="insertion mode: in head">in
-    head</a>" <span>insertion mode</span>.</p>
+    head</a>" <a href=#insertion-mode>insertion mode</a>.</p>
 
    </dd>
 
@@ -48614,7 +48617,7 @@
 
     <p><a href=#parse-error>Parse error</a>. Process the token <a href=#using-the-rules-for>using the
     rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in
-    body</a>" <span>insertion mode</span>, except that if the
+    body</a>" <a href=#insertion-mode>insertion mode</a>, except that if the
     <a href=#current-node>current node</a> is a <code><a href=#the-table-element>table</a></code>,
     <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-tfoot-element>tfoot</a></code>, <code><a href=#the-thead-element>thead</a></code>, or
     <code><a href=#the-tr-element>tr</a></code> element, then, whenever a node would be inserted
@@ -48635,7 +48638,7 @@
 
   <h5 id=parsing-main-incaption><span class=secno>8.2.5.13 </span>The "<dfn title="insertion mode: in caption">in caption</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-incaption title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-incaption title="insertion
   mode: in caption">in caption</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>An end tag whose tag name is "caption"</dt>
@@ -48660,7 +48663,7 @@
     <p><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to
     the last marker</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>".</p>
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>".</p>
 
    </dd>
 
@@ -48687,13 +48690,13 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
   </dl><h5 id=parsing-main-incolgroup><span class=secno>8.2.5.14 </span>The "<dfn title="insertion mode: in column group">in column group</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-incolgroup title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-incolgroup title="insertion
   mode: in column group">in column group</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
@@ -48718,8 +48721,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "col"</dt>
@@ -48744,7 +48747,7 @@
 
     <p>Otherwise, pop the <a href=#current-node>current node</a> (which will be
     a <code><a href=#the-colgroup-element>colgroup</a></code> element) from the <a href=#stack-of-open-elements>stack of open
-    elements</a>. Switch the <span>insertion mode</span> to
+    elements</a>. Switch the <a href=#insertion-mode>insertion mode</a> to
     "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>".</p>
 
    </dd>
@@ -48780,7 +48783,7 @@
 
   </dl><h5 id=parsing-main-intbody><span class=secno>8.2.5.15 </span>The "<dfn title="insertion mode: in table body">in table body</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-intbody title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-intbody title="insertion
   mode: in table body">in table body</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A start tag whose tag name is "tr"</dt>
@@ -48790,7 +48793,7 @@
     context</a>. (See below.)</p>
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token, then switch
-    the <span>insertion mode</span> to "<a href=#parsing-main-intr title="insertion mode:
+    the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intr title="insertion mode:
     in row">in row</a>".</p>
 
    </dd>
@@ -48816,7 +48819,7 @@
     context</a>. (See below.)</p>
 
     <p>Pop the <a href=#current-node>current node</a> from the <a href=#stack-of-open-elements>stack of
-    open elements</a>. Switch the <span>insertion mode</span>
+    open elements</a>. Switch the <a href=#insertion-mode>insertion mode</a>
     to "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>".</p>
 
    </dd>
@@ -48851,8 +48854,8 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
   </dl><p>When the steps above require the UA to <dfn id=clear-the-stack-back-to-a-table-body-context>clear the stack
@@ -48869,7 +48872,7 @@
 
   <h5 id=parsing-main-intr><span class=secno>8.2.5.16 </span>The "<dfn title="insertion mode: in row">in row</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-intr title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-intr title="insertion
   mode: in row">in row</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A start tag whose tag name is one of: "th", "td"</dt>
@@ -48879,7 +48882,7 @@
     context</a>. (See below.)</p>
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token, then switch
-    the <span>insertion mode</span> to "<a href=#parsing-main-intd title="insertion mode:
+    the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intd title="insertion mode:
     in cell">in cell</a>".</p>
 
     <p>Insert a marker at the end of the <a href=#list-of-active-formatting-elements>list of active
@@ -48902,7 +48905,7 @@
 
     <p>Pop the <a href=#current-node>current node</a> (which will be a
     <code><a href=#the-tr-element>tr</a></code> element) from the <a href=#stack-of-open-elements>stack of open
-    elements</a>. Switch the <span>insertion mode</span> to
+    elements</a>. Switch the <a href=#insertion-mode>insertion mode</a> to
     "<a href=#parsing-main-intbody title="insertion mode: in table body">in table
     body</a>".</p>
 
@@ -48943,8 +48946,8 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
   </dl><p>When the steps above require the UA to <dfn id=clear-the-stack-back-to-a-table-row-context>clear the stack
@@ -48960,7 +48963,7 @@
 
   <h5 id=parsing-main-intd><span class=secno>8.2.5.17 </span>The "<dfn title="insertion mode: in cell">in cell</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-intd title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-intd title="insertion
   mode: in cell">in cell</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>An end tag whose tag name is one of: "td", "th"</dt>
@@ -48985,7 +48988,7 @@
     <p><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to
     the last marker</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-intr title="insertion mode: in row">in row</a>". (The
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-intr title="insertion mode: in row">in row</a>". (The
     <a href=#current-node>current node</a> will be a <code><a href=#the-tr-element>tr</a></code> element at
     this point.)</p>
 
@@ -49029,8 +49032,8 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
   </dl><p>Where the steps above say to <dfn id=close-the-cell>close the cell</dfn>, they
@@ -49047,14 +49050,14 @@
 
   </ol><p class=note>The <a href=#stack-of-open-elements>stack of open elements</a> cannot
   have both a <code><a href=#the-td-element>td</a></code> and a <code><a href=#the-th-element>th</a></code> element <a href=#has-an-element-in-table-scope title="has an element in table scope">in table scope</a> at
-  the same time, nor can it have neither when the <span>insertion
-  mode</span> is "<a href=#parsing-main-intd title="insertion mode: in cell">in
+  the same time, nor can it have neither when the <a href=#insertion-mode>insertion
+  mode</a> is "<a href=#parsing-main-intd title="insertion mode: in cell">in
   cell</a>".</p>
 
 
   <h5 id=parsing-main-inselect><span class=secno>8.2.5.18 </span>The "<dfn title="insertion mode: in select">in select</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-inselect title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inselect title="insertion
   mode: in select">in select</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token</dt>
@@ -49077,8 +49080,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "option"</dt>
@@ -49186,7 +49189,7 @@
 
   </dl><h5 id=parsing-main-inselectintable><span class=secno>8.2.5.19 </span>The "<dfn title="insertion mode: in select in table">in select in table</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-inselectintable title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inselectintable title="insertion
   mode: in select in table">in select in table</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A start tag whose tag name is one of: "caption", "table",
@@ -49212,13 +49215,13 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inselect title="insertion mode: in select">in select</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inselect title="insertion mode: in select">in select</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
   </dl><h5 id=parsing-main-inforeign><span class=secno>8.2.5.20 </span>The "<dfn title="insertion mode: in foreign content">in foreign content</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-inforeign title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inforeign title="insertion
   mode: in foreign content">in foreign content</a>", tokens must be
   handled as follows:</p>
 
@@ -49258,13 +49261,13 @@
     <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the
     <a href=#secondary-insertion-mode>secondary insertion mode</a>.</p>
 
-    <p>If, after doing so, the <span>insertion mode</span> is still
+    <p>If, after doing so, the <a href=#insertion-mode>insertion mode</a> is still
     "<a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign
     content</a>", but there is no element in scope that has a
     namespace other than the <a href=#html-namespace-0>HTML namespace</a><!-- XXX this
     isn't well-defined; it means check to see if the bottom-most HTML
-    element on the stack is in scope -->, switch the <span>insertion
-    mode</span> to the <a href=#secondary-insertion-mode>secondary insertion mode</a>.</p>
+    element on the stack is in scope -->, switch the <a href=#insertion-mode>insertion
+    mode</a> to the <a href=#secondary-insertion-mode>secondary insertion mode</a>.</p>
 
    </dd>
 
@@ -49292,7 +49295,7 @@
     the <a href=#current-node>current node</a> is in the <a href=#html-namespace-0>HTML
     namespace</a>.</p>
 
-    <p>Switch the <span>insertion mode</span> to the <a href=#secondary-insertion-mode>secondary
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to the <a href=#secondary-insertion-mode>secondary
     insertion mode</a>, and reprocess the token.</p>
 
    </dd>
@@ -49377,15 +49380,15 @@
 
   </dl><h5 id=parsing-main-afterbody><span class=secno>8.2.5.21 </span>The "<dfn title="insertion mode: after body">after body</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-afterbody title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-afterbody title="insertion
   mode: after body">after body</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
    TABULATION, U+000A LINE FEED (LF), U+000C FORM FEED (FF),
    <!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A comment token</dt>
@@ -49403,8 +49406,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end tag whose tag name is "html"</dt>
@@ -49414,7 +49417,7 @@
     fragment parsing algorithm</a>, this is a <a href=#parse-error>parse
     error</a>; ignore the token.  (<a href=#fragment-case>fragment case</a>)</p>
 
-    <p>Otherwise, switch the <span>insertion mode</span> to "<a href=#the-after-after-body-insertion-mode title="insertion mode: after after body">after after
+    <p>Otherwise, switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-after-after-body-insertion-mode title="insertion mode: after after body">after after
     body</a>".</p>
 
    </dd>
@@ -49427,15 +49430,15 @@
    <dt>Anything else</dt>
    <dd>
 
-    <p><a href=#parse-error>Parse error</a>. Switch the <span>insertion
-    mode</span> to "<a href=#parsing-main-inbody title="insertion mode: in body">in
+    <p><a href=#parse-error>Parse error</a>. Switch the <a href=#insertion-mode>insertion
+    mode</a> to "<a href=#parsing-main-inbody title="insertion mode: in body">in
     body</a>" and reprocess the token.</p>
 
    </dd>
 
   </dl><h5 id=parsing-main-inframeset><span class=secno>8.2.5.22 </span>The "<dfn title="insertion mode: in frameset">in frameset</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-inframeset title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-inframeset title="insertion
   mode: in frameset">in frameset</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A character token that is one of one of U+0009 CHARACTER
@@ -49460,8 +49463,8 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "frameset"</dt>
@@ -49484,7 +49487,7 @@
     of the <a href=#html-fragment-parsing-algorithm>HTML fragment parsing algorithm</a>
     (<a href=#fragment-case>fragment case</a>), and the <a href=#current-node>current
     node</a> is no longer a <code>frameset</code> element, then
-    switch the <span>insertion mode</span> to "<a href=#parsing-main-afterframeset title="insertion mode: after frameset">after
+    switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-afterframeset title="insertion mode: after frameset">after
     frameset</a>".</p>
 
    </dd>
@@ -49503,8 +49506,8 @@
 
    <dt>A start tag whose tag name is "noframes"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end-of-file token</dt>
@@ -49528,7 +49531,7 @@
 
   </dl><h5 id=parsing-main-afterframeset><span class=secno>8.2.5.23 </span>The "<dfn title="insertion mode: after frameset">after frameset</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#parsing-main-afterframeset title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#parsing-main-afterframeset title="insertion
   mode: after frameset">after frameset</a>", tokens must be handled as follows:</p>
 
   <!-- due to rules in the "in frameset" mode, this can't be entered in the fragment case -->
@@ -49554,20 +49557,20 @@
 
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end tag whose tag name is "html"</dt>
    <dd>
-    <p>Switch the <span>insertion mode</span> to "<a href=#the-after-after-frameset-insertion-mode title="insertion mode: after after frameset">after after
+    <p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-after-after-frameset-insertion-mode title="insertion mode: after after frameset">after after
     frameset</a>".</p>
    </dd>
 
    <dt>A start tag whose tag name is "noframes"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end-of-file token</dt>
@@ -49588,7 +49591,7 @@
 
   <h5 id=the-after-after-body-insertion-mode><span class=secno>8.2.5.24 </span>The "<dfn title="insertion mode: after after body">after after body</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#the-after-after-body-insertion-mode title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#the-after-after-body-insertion-mode title="insertion
   mode: after after body">after after body</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A comment token</dt>
@@ -49604,8 +49607,8 @@
    <!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE</dt>
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end-of-file token</dt>
@@ -49615,14 +49618,14 @@
 
    <dt>Anything else</dt>
    <dd>
-    <p><a href=#parse-error>Parse error</a>. Switch the <span>insertion mode</span>
+    <p><a href=#parse-error>Parse error</a>. Switch the <a href=#insertion-mode>insertion mode</a>
     to "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" and
     reprocess the token.</p>
    </dd>
 
   </dl><h5 id=the-after-after-frameset-insertion-mode><span class=secno>8.2.5.25 </span>The "<dfn title="insertion mode: after after frameset">after after frameset</dfn>" insertion mode</h5>
 
-  <p>When the <span>insertion mode</span> is "<a href=#the-after-after-frameset-insertion-mode title="insertion
+  <p>When the <a href=#insertion-mode>insertion mode</a> is "<a href=#the-after-after-frameset-insertion-mode title="insertion
   mode: after after frameset">after after frameset</a>", tokens must be handled as follows:</p>
 
   <dl class=switch><dt>A comment token</dt>
@@ -49638,8 +49641,8 @@
    <!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE</dt>
    <dt>A start tag whose tag name is "html"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inbody title="insertion mode: in body">in body</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>An end-of-file token</dt>
@@ -49649,8 +49652,8 @@
 
    <dt>A start tag whose tag name is "noframes"</dt>
    <dd>
-    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <span>insertion
-    mode</span>.</p>
+    <p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <a href=#insertion-mode>insertion
+    mode</a>.</p>
    </dd>
 
    <dt>Anything else</dt>

Modified: source
===================================================================
--- source	2008-10-08 07:51:40 UTC (rev 2302)
+++ source	2008-10-08 07:56:11 UTC (rev 2303)
@@ -50773,6 +50773,9 @@
 
   <h5>The insertion mode</h5>
 
+  <p>The <dfn>insertion mode</dfn> is a flag that controls the primary
+  operation of the tree construction stage.</p>
+
   <p>Initially the <span>insertion mode</span> is "<span
   title="insertion mode: initial">initial</span>". It can change to
   "<span title="insertion mode: before html">before html</span>",




More information about the Commit-Watchers mailing list