[html5] r8003 - [cgiow] (3) Make all occurrences of 'same tag name' in the parser explicitly ref [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Jul 1 15:19:31 PDT 2013
Author: ianh
Date: 2013-07-01 15:19:29 -0700 (Mon, 01 Jul 2013)
New Revision: 8003
Modified:
complete.html
index
source
Log:
[cgiow] (3) Make all occurrences of 'same tag name' in the parser explicitly refer to HTML elements.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21308
Affected topics: HTML Syntax and Parsing
Modified: complete.html
===================================================================
--- complete.html 2013-07-01 21:49:22 UTC (rev 8002)
+++ complete.html 2013-07-01 22:19:29 UTC (rev 8003)
@@ -89789,12 +89789,11 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
- the same tag name as that of the token, then this is a
+ <li><p>If the <a href=#current-node>current node</a> is not a <code><a href=#the-template-element>template</a></code> element, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until a <code><a href=#the-template-element>template</a></code> element has been
popped from the stack.</li>
<li><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to the
@@ -90465,6 +90464,7 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-scope title="has an element in scope">have an element in scope</a>
+ that is an <a href=#html-elements title="HTML elements">HTML element</a> and
with the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>; ignore the token.</p>
@@ -90472,12 +90472,12 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</li>
</ol></dd>
@@ -90527,21 +90527,20 @@
<dt>An end tag whose tag name is "li"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-list-item-scope title="has an element in list item scope">have an element in list
- item scope</a> with the same tag name as that of the token,
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-list-item-scope title="has an element in list item scope">have an <code>li</code> element in list
+ item scope</a>,
then this is a <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise, run these steps:</p>
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>, except
- for elements with the same tag name as the token.</li>
+ for <code><a href=#the-li-element>li</a></code> elements.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
- the same tag name as that of the token, then this is a
+ <li><p>If the <a href=#current-node>current node</a> is not an <code><a href=#the-li-element>li</a></code> element, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <code><a href=#the-li-element>li</a></code> element has been
popped from the stack.</li>
</ol></dd>
@@ -90551,20 +90550,21 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-scope title="has an element in scope">have an element in scope</a>
+ that is an <a href=#html-elements title="HTML elements">HTML element</a> and
with the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise, run these steps:</p>
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>, except
- for elements with the same tag name as the token.</li>
+ for <a href=#html-elements>HTML elements</a> with the same tag name as the token.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</li>
</ol></dd>
@@ -90581,12 +90581,12 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element whose tag name is one of "h1", "h2", "h3", "h4",
+ until an <a href=#html-elements title="HTML elements">HTML element</a> whose tag name is one of "h1", "h2", "h3", "h4",
"h5", or "h6" has been popped from the stack.</li>
</ol></dd>
@@ -90703,6 +90703,7 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-scope title="has an element in scope">have an element in scope</a>
+ that is an <a href=#html-elements title="HTML elements">HTML element</a> and
with the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>; ignore the token.</p>
@@ -90710,12 +90711,12 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</li>
<li><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to the
@@ -91143,14 +91144,14 @@
<ol><li><p>Initialize <var title="">node</var> to be the <a href=#current-node>current
node</a> (the bottommost node of the stack).</li>
- <li><p><i>Loop</i>: If <var title="">node</var> has the same tag
+ <li><p><i>Loop</i>: If <var title="">node</var> is an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag
name as the token, then:</p>
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>, except
- for elements with the same tag name as the token.</li>
+ for <a href=#html-elements>HTML elements</a> with the same tag name as the token.</li>
<li><p>If the tag name of the end tag token does not match
- the tag name of the <a href=#current-node>current node</a>, this is a
+ the tag name of the <a href=#current-node>current node</a>, or if it is not an <a href=#html-elements title="HTML elements">HTML element</a>, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop all the nodes from the <a href=#current-node>current node</a> up
@@ -91587,8 +91588,8 @@
<p><a href=#parse-error>Parse error</a>.</p>
<!-- fake </table> -->
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, ignore the token.</p> <!-- fragment case? -->
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>table</code> element in table
+ scope</a>, ignore the token.</p>
<p>Otherwise:</p>
@@ -91605,9 +91606,9 @@
<dt>An end tag whose tag name is "table"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p> <!-- fragment case? -->
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>table</code> element in table
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -91775,9 +91776,9 @@
<dl class=switch><dt>An end tag whose tag name is "caption"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token. (<a href=#fragment-case>fragment
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>caption</code> element in table
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token. (<a href=#fragment-case>fragment
case</a>)</p>
<p>Otherwise:</p>
@@ -91968,8 +91969,8 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as the token, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -91990,7 +91991,7 @@
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a
<code>tbody</code>, <code>thead</code>, or <code>tfoot</code>
element in table scope</a>, this is a <a href=#parse-error>parse
- error</a>. Ignore the token.</p>
+ error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -92053,9 +92054,9 @@
<dt>An end tag whose tag name is "tr"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p> <!-- fragment case? -->
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>tr</code> element in table
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -92078,7 +92079,7 @@
<!-- fake <tr> -->
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>tr</code> element in table
scope</a>, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p> <!-- fragment case? -->
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -92101,12 +92102,12 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as the token, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<!-- fake <tr> -->
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>tr</code> element in table
- scope</a>, ignore the token.</p> <!-- fragment case? -->
+ scope</a>, ignore the token.</p>
<p>Otherwise:</p>
@@ -92155,20 +92156,19 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as that of the token, then
- this is a <a href=#parse-error>parse error</a> and the token must be
- ignored.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as that of the token, then
+ this is a <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
<p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</p>
- <p>Now, if the <a href=#current-node>current node</a> is not an element
+ <p>Now, if the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a>
with the same tag name as the token, then this is a
<a href=#parse-error>parse error</a>.</p>
<p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a> stack
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</p>
<p><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to
@@ -92206,8 +92206,8 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as that of the token, then this is a <a href=#parse-error>parse
- error</a> and the token must be ignored.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as that of the token, then this is a <a href=#parse-error>parse
+ error</a>; ignore the token.</p>
<p>Otherwise, <a href=#close-the-cell>close the cell</a> (see below) and
reprocess the current token.</p>
@@ -92338,9 +92338,9 @@
<dt>An end tag whose tag name is "select"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-select-scope title="has an element in select scope">have an element in select
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token. (<a href=#fragment-case>fragment
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-select-scope title="has an element in select scope">have a <code>select</code> element in select
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token. (<a href=#fragment-case>fragment
case</a>)</p>
<p>Otherwise:</p>
@@ -92448,7 +92448,7 @@
<p><a href=#parse-error>Parse error</a>.</p>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an
- element in table scope</a> with the same tag name as that
+ element in table scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as that
of the token, then ignore the token.</p>
<p>Otherwise:</p>
Modified: index
===================================================================
--- index 2013-07-01 21:49:22 UTC (rev 8002)
+++ index 2013-07-01 22:19:29 UTC (rev 8003)
@@ -89789,12 +89789,11 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
- the same tag name as that of the token, then this is a
+ <li><p>If the <a href=#current-node>current node</a> is not a <code><a href=#the-template-element>template</a></code> element, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until a <code><a href=#the-template-element>template</a></code> element has been
popped from the stack.</li>
<li><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to the
@@ -90465,6 +90464,7 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-scope title="has an element in scope">have an element in scope</a>
+ that is an <a href=#html-elements title="HTML elements">HTML element</a> and
with the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>; ignore the token.</p>
@@ -90472,12 +90472,12 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</li>
</ol></dd>
@@ -90527,21 +90527,20 @@
<dt>An end tag whose tag name is "li"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-list-item-scope title="has an element in list item scope">have an element in list
- item scope</a> with the same tag name as that of the token,
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-list-item-scope title="has an element in list item scope">have an <code>li</code> element in list
+ item scope</a>,
then this is a <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise, run these steps:</p>
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>, except
- for elements with the same tag name as the token.</li>
+ for <code><a href=#the-li-element>li</a></code> elements.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
- the same tag name as that of the token, then this is a
+ <li><p>If the <a href=#current-node>current node</a> is not an <code><a href=#the-li-element>li</a></code> element, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <code><a href=#the-li-element>li</a></code> element has been
popped from the stack.</li>
</ol></dd>
@@ -90551,20 +90550,21 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-scope title="has an element in scope">have an element in scope</a>
+ that is an <a href=#html-elements title="HTML elements">HTML element</a> and
with the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise, run these steps:</p>
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>, except
- for elements with the same tag name as the token.</li>
+ for <a href=#html-elements>HTML elements</a> with the same tag name as the token.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</li>
</ol></dd>
@@ -90581,12 +90581,12 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element whose tag name is one of "h1", "h2", "h3", "h4",
+ until an <a href=#html-elements title="HTML elements">HTML element</a> whose tag name is one of "h1", "h2", "h3", "h4",
"h5", or "h6" has been popped from the stack.</li>
</ol></dd>
@@ -90703,6 +90703,7 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-scope title="has an element in scope">have an element in scope</a>
+ that is an <a href=#html-elements title="HTML elements">HTML element</a> and
with the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>; ignore the token.</p>
@@ -90710,12 +90711,12 @@
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
- <li><p>If the <a href=#current-node>current node</a> is not an element with
+ <li><p>If the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a> with
the same tag name as that of the token, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</li>
<li><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to the
@@ -91143,14 +91144,14 @@
<ol><li><p>Initialize <var title="">node</var> to be the <a href=#current-node>current
node</a> (the bottommost node of the stack).</li>
- <li><p><i>Loop</i>: If <var title="">node</var> has the same tag
+ <li><p><i>Loop</i>: If <var title="">node</var> is an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag
name as the token, then:</p>
<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>, except
- for elements with the same tag name as the token.</li>
+ for <a href=#html-elements>HTML elements</a> with the same tag name as the token.</li>
<li><p>If the tag name of the end tag token does not match
- the tag name of the <a href=#current-node>current node</a>, this is a
+ the tag name of the <a href=#current-node>current node</a>, or if it is not an <a href=#html-elements title="HTML elements">HTML element</a>, then this is a
<a href=#parse-error>parse error</a>.</li>
<li><p>Pop all the nodes from the <a href=#current-node>current node</a> up
@@ -91587,8 +91588,8 @@
<p><a href=#parse-error>Parse error</a>.</p>
<!-- fake </table> -->
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, ignore the token.</p> <!-- fragment case? -->
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>table</code> element in table
+ scope</a>, ignore the token.</p>
<p>Otherwise:</p>
@@ -91605,9 +91606,9 @@
<dt>An end tag whose tag name is "table"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p> <!-- fragment case? -->
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>table</code> element in table
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -91775,9 +91776,9 @@
<dl class=switch><dt>An end tag whose tag name is "caption"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token. (<a href=#fragment-case>fragment
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>caption</code> element in table
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token. (<a href=#fragment-case>fragment
case</a>)</p>
<p>Otherwise:</p>
@@ -91968,8 +91969,8 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as the token, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -91990,7 +91991,7 @@
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a
<code>tbody</code>, <code>thead</code>, or <code>tfoot</code>
element in table scope</a>, this is a <a href=#parse-error>parse
- error</a>. Ignore the token.</p>
+ error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -92053,9 +92054,9 @@
<dt>An end tag whose tag name is "tr"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p> <!-- fragment case? -->
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>tr</code> element in table
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -92078,7 +92079,7 @@
<!-- fake <tr> -->
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>tr</code> element in table
scope</a>, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p> <!-- fragment case? -->
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
@@ -92101,12 +92102,12 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as the token, this is a
+ <a href=#parse-error>parse error</a>; ignore the token.</p>
<!-- fake <tr> -->
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have a <code>tr</code> element in table
- scope</a>, ignore the token.</p> <!-- fragment case? -->
+ scope</a>, ignore the token.</p>
<p>Otherwise:</p>
@@ -92155,20 +92156,19 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as that of the token, then
- this is a <a href=#parse-error>parse error</a> and the token must be
- ignored.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as that of the token, then
+ this is a <a href=#parse-error>parse error</a>; ignore the token.</p>
<p>Otherwise:</p>
<p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</p>
- <p>Now, if the <a href=#current-node>current node</a> is not an element
+ <p>Now, if the <a href=#current-node>current node</a> is not an <a href=#html-elements title="HTML elements">HTML element</a>
with the same tag name as the token, then this is a
<a href=#parse-error>parse error</a>.</p>
<p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a> stack
- until an element with the same tag name as the token has been
+ until an <a href=#html-elements title="HTML elements">HTML element</a> with the same tag name as the token has been
popped from the stack.</p>
<p><a href=#clear-the-list-of-active-formatting-elements-up-to-the-last-marker>Clear the list of active formatting elements up to
@@ -92206,8 +92206,8 @@
<dd>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an element in table
- scope</a> with the same tag name as that of the token, then this is a <a href=#parse-error>parse
- error</a> and the token must be ignored.</p>
+ scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as that of the token, then this is a <a href=#parse-error>parse
+ error</a>; ignore the token.</p>
<p>Otherwise, <a href=#close-the-cell>close the cell</a> (see below) and
reprocess the current token.</p>
@@ -92338,9 +92338,9 @@
<dt>An end tag whose tag name is "select"</dt>
<dd>
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-select-scope title="has an element in select scope">have an element in select
- scope</a> with the same tag name as the token, this is a
- <a href=#parse-error>parse error</a>. Ignore the token. (<a href=#fragment-case>fragment
+ <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-select-scope title="has an element in select scope">have a <code>select</code> element in select
+ scope</a>, this is a
+ <a href=#parse-error>parse error</a>; ignore the token. (<a href=#fragment-case>fragment
case</a>)</p>
<p>Otherwise:</p>
@@ -92448,7 +92448,7 @@
<p><a href=#parse-error>Parse error</a>.</p>
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-table-scope title="has an element in table scope">have an
- element in table scope</a> with the same tag name as that
+ element in table scope</a> that is an <a href=#html-elements title="HTML elements">HTML element</a> and with the same tag name as that
of the token, then ignore the token.</p>
<p>Otherwise:</p>
Modified: source
===================================================================
--- source 2013-07-01 21:49:22 UTC (rev 8002)
+++ source 2013-07-01 22:19:29 UTC (rev 8003)
@@ -100339,12 +100339,11 @@
<li><p><span>Generate implied end tags</span>.</p></li>
- <li><p>If the <span>current node</span> is not an element with
- the same tag name as that of the token, then this is a
+ <li><p>If the <span>current node</span> is not a <code>template</code> element, then this is a
<span>parse error</span>.</p></li>
<li><p>Pop elements from the <span>stack of open elements</span>
- until an element with the same tag name as the token has been
+ until a <code>template</code> element has been
popped from the stack.</p></li>
<li><span>Clear the list of active formatting elements up to the
@@ -101086,6 +101085,7 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in scope">have an element in scope</span>
+ that is an <span title="HTML elements">HTML element</span> and
with the same tag name as that of the token, then this is a
<span>parse error</span>; ignore the token.</p>
@@ -101095,12 +101095,12 @@
<li><p><span>Generate implied end tags</span>.</p></li>
- <li><p>If the <span>current node</span> is not an element with
+ <li><p>If the <span>current node</span> is not an <span title="HTML elements">HTML element</span> with
the same tag name as that of the token, then this is a
<span>parse error</span>.</p></li>
<li><p>Pop elements from the <span>stack of open elements</span>
- until an element with the same tag name as the token has been
+ until an <span title="HTML elements">HTML element</span> with the same tag name as the token has been
popped from the stack.</p></li>
</ol>
@@ -101158,8 +101158,8 @@
<dd>
<p>If the <span>stack of open elements</span> does not <span
- title="has an element in list item scope">have an element in list
- item scope</span> with the same tag name as that of the token,
+ title="has an element in list item scope">have an <code>li</code> element in list
+ item scope</span>,
then this is a <span>parse error</span>; ignore the token.</p>
<p>Otherwise, run these steps:</p>
@@ -101167,14 +101167,13 @@
<ol>
<li><p><span>Generate implied end tags</span>, except
- for elements with the same tag name as the token.</p></li>
+ for <code>li</code> elements.</p></li>
- <li><p>If the <span>current node</span> is not an element with
- the same tag name as that of the token, then this is a
+ <li><p>If the <span>current node</span> is not an <code>li</code> element, then this is a
<span>parse error</span>.</p></li>
<li><p>Pop elements from the <span>stack of open elements</span>
- until an element with the same tag name as the token has been
+ until an <code>li</code> element has been
popped from the stack.</p></li>
</ol>
@@ -101187,6 +101186,7 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in scope">have an element in scope</span>
+ that is an <span title="HTML elements">HTML element</span> and
with the same tag name as that of the token, then this is a
<span>parse error</span>; ignore the token.</p>
@@ -101195,14 +101195,14 @@
<ol>
<li><p><span>Generate implied end tags</span>, except
- for elements with the same tag name as the token.</p></li>
+ for <span>HTML elements</span> with the same tag name as the token.</p></li>
- <li><p>If the <span>current node</span> is not an element with
+ <li><p>If the <span>current node</span> is not an <span title="HTML elements">HTML element</span> with
the same tag name as that of the token, then this is a
<span>parse error</span>.</p></li>
<li><p>Pop elements from the <span>stack of open elements</span>
- until an element with the same tag name as the token has been
+ until an <span title="HTML elements">HTML element</span> with the same tag name as the token has been
popped from the stack.</p></li>
</ol>
@@ -101224,12 +101224,12 @@
<li><p><span>Generate implied end tags</span>.</p></li>
- <li><p>If the <span>current node</span> is not an element with
+ <li><p>If the <span>current node</span> is not an <span title="HTML elements">HTML element</span> with
the same tag name as that of the token, then this is a
<span>parse error</span>.</p></li>
<li><p>Pop elements from the <span>stack of open elements</span>
- until an element whose tag name is one of "h1", "h2", "h3", "h4",
+ until an <span title="HTML elements">HTML element</span> whose tag name is one of "h1", "h2", "h3", "h4",
"h5", or "h6" has been popped from the stack.</p></li>
</ol>
@@ -101349,6 +101349,7 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in scope">have an element in scope</span>
+ that is an <span title="HTML elements">HTML element</span> and
with the same tag name as that of the token, then this is a
<span>parse error</span>; ignore the token.</p>
@@ -101358,12 +101359,12 @@
<li><p><span>Generate implied end tags</span>.</p></li>
- <li><p>If the <span>current node</span> is not an element with
+ <li><p>If the <span>current node</span> is not an <span title="HTML elements">HTML element</span> with
the same tag name as that of the token, then this is a
<span>parse error</span>.</p></li>
<li><p>Pop elements from the <span>stack of open elements</span>
- until an element with the same tag name as the token has been
+ until an <span title="HTML elements">HTML element</span> with the same tag name as the token has been
popped from the stack.</p></li>
<li><span>Clear the list of active formatting elements up to the
@@ -101810,16 +101811,16 @@
<li><p>Initialize <var title="">node</var> to be the <span>current
node</span> (the bottommost node of the stack).</p></li>
- <li><p><i>Loop</i>: If <var title="">node</var> has the same tag
+ <li><p><i>Loop</i>: If <var title="">node</var> is an <span title="HTML elements">HTML element</span> with the same tag
name as the token, then:</p>
<ol>
<li><p><span>Generate implied end tags</span>, except
- for elements with the same tag name as the token.</p></li>
+ for <span>HTML elements</span> with the same tag name as the token.</p></li>
<li><p>If the tag name of the end tag token does not match
- the tag name of the <span>current node</span>, this is a
+ the tag name of the <span>current node</span>, or if it is not an <span title="HTML elements">HTML element</span>, then this is a
<span>parse error</span>.</p></li>
<li><p>Pop all the nodes from the <span>current node</span> up
@@ -102316,8 +102317,8 @@
<!-- fake </table> -->
<p>If the <span>stack of open elements</span> does not <span
- title="has an element in table scope">have an element in table
- scope</span> with the same tag name as the token, ignore the token.</p> <!-- fragment case? -->
+ title="has an element in table scope">have a <code>table</code> element in table
+ scope</span>, ignore the token.</p>
<p>Otherwise:</p>
@@ -102335,9 +102336,9 @@
<dd>
<p>If the <span>stack of open elements</span> does not <span
- title="has an element in table scope">have an element in table
- scope</span> with the same tag name as the token, this is a
- <span>parse error</span>. Ignore the token.</p> <!-- fragment case? -->
+ title="has an element in table scope">have a <code>table</code> element in table
+ scope</span>, this is a
+ <span>parse error</span>; ignore the token.</p>
<p>Otherwise:</p>
@@ -102520,9 +102521,9 @@
<dd>
<p>If the <span>stack of open elements</span> does not <span
- title="has an element in table scope">have an element in table
- scope</span> with the same tag name as the token, this is a
- <span>parse error</span>. Ignore the token. (<span>fragment
+ title="has an element in table scope">have a <code>caption</code> element in table
+ scope</span>, this is a
+ <span>parse error</span>; ignore the token. (<span>fragment
case</span>)</p>
<p>Otherwise:</p>
@@ -102731,8 +102732,8 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in table scope">have an element in table
- scope</span> with the same tag name as the token, this is a
- <span>parse error</span>. Ignore the token.</p>
+ scope</span> that is an <span title="HTML elements">HTML element</span> and with the same tag name as the token, this is a
+ <span>parse error</span>; ignore the token.</p>
<p>Otherwise:</p>
@@ -102754,7 +102755,7 @@
title="has an element in table scope">have a
<code>tbody</code>, <code>thead</code>, or <code>tfoot</code>
element in table scope</span>, this is a <span>parse
- error</span>. Ignore the token.</p>
+ error</span>; ignore the token.</p>
<p>Otherwise:</p>
@@ -102823,9 +102824,9 @@
<dd>
<p>If the <span>stack of open elements</span> does not <span
- title="has an element in table scope">have an element in table
- scope</span> with the same tag name as the token, this is a
- <span>parse error</span>. Ignore the token.</p> <!-- fragment case? -->
+ title="has an element in table scope">have a <code>tr</code> element in table
+ scope</span>, this is a
+ <span>parse error</span>; ignore the token.</p>
<p>Otherwise:</p>
@@ -102849,7 +102850,7 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in table scope">have a <code>tr</code> element in table
scope</span>, this is a
- <span>parse error</span>. Ignore the token.</p> <!-- fragment case? -->
+ <span>parse error</span>; ignore the token.</p>
<p>Otherwise:</p>
@@ -102873,13 +102874,13 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in table scope">have an element in table
- scope</span> with the same tag name as the token, this is a
- <span>parse error</span>. Ignore the token.</p>
+ scope</span> that is an <span title="HTML elements">HTML element</span> and with the same tag name as the token, this is a
+ <span>parse error</span>; ignore the token.</p>
<!-- fake <tr> -->
<p>If the <span>stack of open elements</span> does not <span
title="has an element in table scope">have a <code>tr</code> element in table
- scope</span>, ignore the token.</p> <!-- fragment case? -->
+ scope</span>, ignore the token.</p>
<p>Otherwise:</p>
@@ -102934,20 +102935,19 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in table scope">have an element in table
- scope</span> with the same tag name as that of the token, then
- this is a <span>parse error</span> and the token must be
- ignored.</p>
+ scope</span> that is an <span title="HTML elements">HTML element</span> and with the same tag name as that of the token, then
+ this is a <span>parse error</span>; ignore the token.</p>
<p>Otherwise:</p>
<p><span>Generate implied end tags</span>.</p>
- <p>Now, if the <span>current node</span> is not an element
+ <p>Now, if the <span>current node</span> is not an <span title="HTML elements">HTML element</span>
with the same tag name as the token, then this is a
<span>parse error</span>.</p>
<p>Pop elements from the <span>stack of open elements</span> stack
- until an element with the same tag name as the token has been
+ until an <span title="HTML elements">HTML element</span> with the same tag name as the token has been
popped from the stack.</p>
<p><span>Clear the list of active formatting elements up to
@@ -102987,8 +102987,8 @@
<p>If the <span>stack of open elements</span> does not <span
title="has an element in table scope">have an element in table
- scope</span> with the same tag name as that of the token, then this is a <span>parse
- error</span> and the token must be ignored.</p>
+ scope</span> that is an <span title="HTML elements">HTML element</span> and with the same tag name as that of the token, then this is a <span>parse
+ error</span>; ignore the token.</p>
<p>Otherwise, <span>close the cell</span> (see below) and
reprocess the current token.</p>
@@ -103132,9 +103132,9 @@
<dd>
<p>If the <span>stack of open elements</span> does not <span
- title="has an element in select scope">have an element in select
- scope</span> with the same tag name as the token, this is a
- <span>parse error</span>. Ignore the token. (<span>fragment
+ title="has an element in select scope">have a <code>select</code> element in select
+ scope</span>, this is a
+ <span>parse error</span>; ignore the token. (<span>fragment
case</span>)</p>
<p>Otherwise:</p>
@@ -103251,7 +103251,7 @@
<p><span>Parse error</span>.</p>
<p>If the <span>stack of open elements</span> does not <span title="has an element in table scope">have an
- element in table scope</span> with the same tag name as that
+ element in table scope</span> that is an <span title="HTML elements">HTML element</span> and with the same tag name as that
of the token, then ignore the token.</p>
<p>Otherwise:</p>
More information about the Commit-Watchers
mailing list