Skip to content
Permalink
Browse files

[cgiowt] (3) PARSER: Change whether <template><td></template> is a pa…

…rse error

Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@8679 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 13, 2014
1 parent 7ae642f commit b29ecbe1b74218130ba5c82fa79a943a35f3daea
Showing with 38 additions and 5 deletions.
  1. +13 −2 complete.html
  2. +13 −2 index
  3. +12 −1 source
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 12 June 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 13 June 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>

</ol><h5 id=closing-elements-that-have-implied-end-tags><span class=secno>12.2.5.3 </span>Closing elements that have implied end tags</h5>

<!--CLEANUP-->
<p>When the steps below require the UA to <dfn id=generate-implied-end-tags>generate implied end
tags</dfn>, then, while the <a href=#current-node>current node</a> is a
<code><a href=#the-dd-element>dd</a></code> element, a <code><a href=#the-dt-element>dt</a></code> element, an
pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
elements</a>.</p>

<!--CLEANUP-->
<p>If a step requires the UA to generate implied end tags but lists
an element to exclude from the process, then the UA must perform the
above steps as if that element was not in the above list.</p>

<p>When the steps below require the UA to <dfn id=generate-all-implied-end-tags-thoroughly>generate all implied end tags thoroughly</dfn>,
then, while the <a href=#current-node>current node</a> is a <code><a href=#the-caption-element>caption</a></code> element, a
<code><a href=#the-colgroup-element>colgroup</a></code> element, a <code><a href=#the-dd-element>dd</a></code> element, a <code><a href=#the-dt-element>dt</a></code> element, an
<code><a href=#the-li-element>li</a></code> element, an <code><a href=#the-option-element>option</a></code> element, an <code><a href=#the-optgroup-element>optgroup</a></code> element, a
<code><a href=#the-p-element>p</a></code> element, an <code><a href=#the-rp-element>rp</a></code> element, an <code><a href=#the-rt-element>rt</a></code> element, a
<code><a href=#the-tbody-element>tbody</a></code> element, a <code><a href=#the-td-element>td</a></code> element, a <code><a href=#the-tfoot-element>tfoot</a></code> element, a
<code><a href=#the-th-element>th</a></code> element, a <code><a href=#the-thead-element>thead</a></code> element, or a <code><a href=#the-tr-element>tr</a></code> element, the UA must
pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open elements</a>.</p>



<h5 id=parsing-main-inhtml><span class=secno>12.2.5.4 </span>The rules for parsing tokens in HTML content</h5>

<p>Otherwise, run these steps:</p>

<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
<ol><li><p><a href=#generate-all-implied-end-tags-thoroughly>Generate all implied end tags thoroughly</a>.</li>

<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>
15 index
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 12 June 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 13 June 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>

</ol><h5 id=closing-elements-that-have-implied-end-tags><span class=secno>12.2.5.3 </span>Closing elements that have implied end tags</h5>

<!--CLEANUP-->
<p>When the steps below require the UA to <dfn id=generate-implied-end-tags>generate implied end
tags</dfn>, then, while the <a href=#current-node>current node</a> is a
<code><a href=#the-dd-element>dd</a></code> element, a <code><a href=#the-dt-element>dt</a></code> element, an
pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
elements</a>.</p>

<!--CLEANUP-->
<p>If a step requires the UA to generate implied end tags but lists
an element to exclude from the process, then the UA must perform the
above steps as if that element was not in the above list.</p>

<p>When the steps below require the UA to <dfn id=generate-all-implied-end-tags-thoroughly>generate all implied end tags thoroughly</dfn>,
then, while the <a href=#current-node>current node</a> is a <code><a href=#the-caption-element>caption</a></code> element, a
<code><a href=#the-colgroup-element>colgroup</a></code> element, a <code><a href=#the-dd-element>dd</a></code> element, a <code><a href=#the-dt-element>dt</a></code> element, an
<code><a href=#the-li-element>li</a></code> element, an <code><a href=#the-option-element>option</a></code> element, an <code><a href=#the-optgroup-element>optgroup</a></code> element, a
<code><a href=#the-p-element>p</a></code> element, an <code><a href=#the-rp-element>rp</a></code> element, an <code><a href=#the-rt-element>rt</a></code> element, a
<code><a href=#the-tbody-element>tbody</a></code> element, a <code><a href=#the-td-element>td</a></code> element, a <code><a href=#the-tfoot-element>tfoot</a></code> element, a
<code><a href=#the-th-element>th</a></code> element, a <code><a href=#the-thead-element>thead</a></code> element, or a <code><a href=#the-tr-element>tr</a></code> element, the UA must
pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open elements</a>.</p>



<h5 id=parsing-main-inhtml><span class=secno>12.2.5.4 </span>The rules for parsing tokens in HTML content</h5>

<p>Otherwise, run these steps:</p>

<ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
<ol><li><p><a href=#generate-all-implied-end-tags-thoroughly>Generate all implied end tags thoroughly</a>.</li>

<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>
13 source

<h5>Closing elements that have implied end tags</h5>

<!--CLEANUP-->
<p>When the steps below require the UA to <dfn>generate implied end
tags</dfn>, then, while the <span>current node</span> is a
<code>dd</code> element, a <code>dt</code> element, an
pop the <span>current node</span> off the <span>stack of open
elements</span>.</p>

<!--CLEANUP-->
<p>If a step requires the UA to generate implied end tags but lists
an element to exclude from the process, then the UA must perform the
above steps as if that element was not in the above list.</p>

<p>When the steps below require the UA to <dfn>generate all implied end tags thoroughly</dfn>,
then, while the <span>current node</span> is a <code>caption</code> element, a
<code>colgroup</code> element, a <code>dd</code> element, a <code>dt</code> element, an
<code>li</code> element, an <code>option</code> element, an <code>optgroup</code> element, a
<code>p</code> element, an <code>rp</code> element, an <code>rt</code> element, a
<code>tbody</code> element, a <code>td</code> element, a <code>tfoot</code> element, a
<code>th</code> element, a <code>thead</code> element, or a <code>tr</code> element, the UA must
pop the <span>current node</span> off the <span>stack of open elements</span>.</p>



<h5 id="parsing-main-inhtml">The rules for parsing tokens in HTML content</h5>

<ol>

<li><p><span>Generate implied end tags</span>.</p></li>
<li><p><span>Generate all implied end tags thoroughly</span>.</p></li>

<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>

0 comments on commit b29ecbe

Please sign in to comment.