Skip to content

Commit

Permalink
[giowct] (3) PARSER: Add a parse error for non-space characters in <t…
Browse files Browse the repository at this point in the history
…able> elements

Affected topics: HTML Syntax and Parsing


git-svn-id: http://svn.whatwg.org/webapps@8665 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 9, 2014
1 parent b97eb3a commit dab72cc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
13 changes: 9 additions & 4 deletions complete.html
Expand Up @@ -290,7 +290,7 @@
</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 8 June 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 9 June 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
Expand Down Expand Up @@ -90770,7 +90770,8 @@ <h5 id=creating-and-inserting-nodes><span class=secno>12.2.5.1 </span>Creating a
from the following list:</p>

<dl class=switch><dt>If <a href=#foster-parent title="foster parent">foster parenting</a> is enabled and <var title="">target</var> 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</dt>
<code><a href=#the-thead-element>thead</a></code>, or <code><a href=#the-tr-element>tr</a></code> element</dt> <!-- same list as handling of characters
in "in table" mode -->

<dd>

Expand Down Expand Up @@ -93225,7 +93226,7 @@ <h6 id=parsing-main-incdata><span class=secno>12.2.5.4.8 </span>The "<dfn title=
<p>When the user agent is to apply the rules for the "<a href=#parsing-main-intable title="insertion mode: in table">in
table</a>" <a href=#insertion-mode>insertion mode</a>, the user agent must handle the token as follows:</p>

<dl class=switch><dt>A character token, if the <a href=#current-node>current node</a> is <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</dt>
<dl class=switch><dt>A character token, if the <a href=#current-node>current node</a> is <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</dt> <!-- same list as foster parenting -->
<dd>

<p>Let the <dfn id=pending-table-character-tokens><var>pending table character tokens</var></dfn> be an empty list of tokens.</p>
Expand Down Expand Up @@ -93422,6 +93423,9 @@ <h6 id=parsing-main-incdata><span class=secno>12.2.5.4.8 </span>The "<dfn title=
<code><a href=#the-template-element>template</a></code>, or <code><a href=#the-html-element>html</a></code> element, pop elements from the <a href=#stack-of-open-elements>stack of open
elements</a>.</p>

<p class=note>This is the same list of elements as used in the <i><a href=#has-an-element-in-table-scope>has an element in table
scope</a></i> steps.</p>

<p class=note>The <a href=#current-node>current node</a> being an <code><a href=#the-html-element>html</a></code> element after this
process is a <a href=#fragment-case>fragment case</a>.</p>

Expand Down Expand Up @@ -93454,8 +93458,9 @@ <h6 id=parsing-main-intabletext><span class=secno>12.2.5.4.10 </span>The "<dfn t

<!-- this can only be called if the current node is one of the table model elements -->

<!--CLEANUP-->
<p>If any of the tokens in the <var><a href=#pending-table-character-tokens>pending table character tokens</a></var> list are character
tokens that are not <a href=#space-character title="space character">space characters</a>, then reprocess the
tokens that are not <a href=#space-character title="space character">space characters</a>, then this is a <a href=#parse-error>parse error</a>: reprocess the
character tokens in the <var><a href=#pending-table-character-tokens>pending table character tokens</a></var> list using the rules given in
the "anything else" entry in the "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>"
insertion mode.</p>
Expand Down
13 changes: 9 additions & 4 deletions index
Expand Up @@ -290,7 +290,7 @@
</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 8 June 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 9 June 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
Expand Down Expand Up @@ -90770,7 +90770,8 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>
from the following list:</p>

<dl class=switch><dt>If <a href=#foster-parent title="foster parent">foster parenting</a> is enabled and <var title="">target</var> 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</dt>
<code><a href=#the-thead-element>thead</a></code>, or <code><a href=#the-tr-element>tr</a></code> element</dt> <!-- same list as handling of characters
in "in table" mode -->

<dd>

Expand Down Expand Up @@ -93225,7 +93226,7 @@ document.body.appendChild(text);
<p>When the user agent is to apply the rules for the "<a href=#parsing-main-intable title="insertion mode: in table">in
table</a>" <a href=#insertion-mode>insertion mode</a>, the user agent must handle the token as follows:</p>

<dl class=switch><dt>A character token, if the <a href=#current-node>current node</a> is <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</dt>
<dl class=switch><dt>A character token, if the <a href=#current-node>current node</a> is <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</dt> <!-- same list as foster parenting -->
<dd>

<p>Let the <dfn id=pending-table-character-tokens><var>pending table character tokens</var></dfn> be an empty list of tokens.</p>
Expand Down Expand Up @@ -93422,6 +93423,9 @@ document.body.appendChild(text);
<code><a href=#the-template-element>template</a></code>, or <code><a href=#the-html-element>html</a></code> element, pop elements from the <a href=#stack-of-open-elements>stack of open
elements</a>.</p>

<p class=note>This is the same list of elements as used in the <i><a href=#has-an-element-in-table-scope>has an element in table
scope</a></i> steps.</p>

<p class=note>The <a href=#current-node>current node</a> being an <code><a href=#the-html-element>html</a></code> element after this
process is a <a href=#fragment-case>fragment case</a>.</p>

Expand Down Expand Up @@ -93454,8 +93458,9 @@ document.body.appendChild(text);

<!-- this can only be called if the current node is one of the table model elements -->

<!--CLEANUP-->
<p>If any of the tokens in the <var><a href=#pending-table-character-tokens>pending table character tokens</a></var> list are character
tokens that are not <a href=#space-character title="space character">space characters</a>, then reprocess the
tokens that are not <a href=#space-character title="space character">space characters</a>, then this is a <a href=#parse-error>parse error</a>: reprocess the
character tokens in the <var><a href=#pending-table-character-tokens>pending table character tokens</a></var> list using the rules given in
the "anything else" entry in the "<a href=#parsing-main-intable title="insertion mode: in table">in table</a>"
insertion mode.</p>
Expand Down
11 changes: 8 additions & 3 deletions source
Expand Up @@ -100119,7 +100119,8 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<dt>If <span data-x="foster parent">foster parenting</span> is enabled and <var
data-x="">target</var> is a <code>table</code>, <code>tbody</code>, <code>tfoot</code>,
<code>thead</code>, or <code>tr</code> element</dt>
<code>thead</code>, or <code>tr</code> element</dt> <!-- same list as handling of characters
in "in table" mode -->

<dd>

Expand Down Expand Up @@ -102860,7 +102861,7 @@ document.body.appendChild(text);

<dl class="switch">

<dt>A character token, if the <span>current node</span> is <code>table</code>, <code>tbody</code>, <code>tfoot</code>, <code>thead</code>, or <code>tr</code> element</dt>
<dt>A character token, if the <span>current node</span> is <code>table</code>, <code>tbody</code>, <code>tfoot</code>, <code>thead</code>, or <code>tr</code> element</dt> <!-- same list as foster parenting -->
<dd>

<p>Let the <dfn><var>pending table character tokens</var></dfn> be an empty list of tokens.</p>
Expand Down Expand Up @@ -103062,6 +103063,9 @@ document.body.appendChild(text);
<code>template</code>, or <code>html</code> element, pop elements from the <span>stack of open
elements</span>.</p>

<p class="note">This is the same list of elements as used in the <i>has an element in table
scope</i> steps.</p>

<p class="note">The <span>current node</span> being an <code>html</code> element after this
process is a <span>fragment case</span>.</p>

Expand Down Expand Up @@ -103096,8 +103100,9 @@ document.body.appendChild(text);

<!-- this can only be called if the current node is one of the table model elements -->

<!--CLEANUP-->
<p>If any of the tokens in the <var>pending table character tokens</var> list are character
tokens that are not <span data-x="space character">space characters</span>, then reprocess the
tokens that are not <span data-x="space character">space characters</span>, then this is a <span>parse error</span>: reprocess the
character tokens in the <var>pending table character tokens</var> list using the rules given in
the "anything else" entry in the "<span data-x="insertion mode: in table">in table</span>"
insertion mode.</p>
Expand Down

0 comments on commit dab72cc

Please sign in to comment.