[html5] r1296 - /
whatwg at whatwg.org
whatwg at whatwg.org
Sun Mar 2 03:00:34 PST 2008
Author: ianh
Date: 2008-03-02 03:00:30 -0800 (Sun, 02 Mar 2008)
New Revision: 1296
Modified:
index
source
Log:
[act] (2) Fix the definition of ambiguous ampersand, and allow quoted attributes to end in ampersands.
Modified: index
===================================================================
--- index 2008-03-02 10:14:44 UTC (rev 1295)
+++ index 2008-03-02 11:00:30 UTC (rev 1296)
@@ -37885,10 +37885,9 @@
<p>An <dfn id=ambiguous title=syntax-ambiguous-ampersand>ambiguous
ampersand</dfn> is a U+0026 AMPERSAND (<code>&</code>) character that
- is not the last character in the file, that is not followed by a <a
- href="#space">space character</a>, that is not followed by a start tag
- that has not been omitted, and that is not followed by another U+0026
- AMPERSAND (<code>&</code>) character.
+ is followed by some <a href="#text1" title=syntax-text>text</a> other than
+ a <a href="#space">space character</a>, a U+003C LESS-THAN SIGN character
+ ('<'), or another U+0026 AMPERSAND (<code>&</code>) character.
<h4 id=comments><span class=secno>8.1.5 </span>Comments</h4>
@@ -38722,7 +38721,8 @@
<p><em>(This cannot happen if the <a href="#content2">content model
flag</a> is set to the CDATA state.)</em></p>
- <p>Attempt to <a href="#consume">consume an entity</a>.</p>
+ <p>Attempt to <a href="#consume">consume an entity</a>, with no <a
+ href="#additional">additional allowed character</a>.</p>
<p>If nothing is returned, emit a U+0026 AMPERSAND character token.</p>
@@ -39154,7 +39154,8 @@
<dt>U+0026 AMPERSAND (&)
<dd>Switch to the <a href="#entity0">entity in attribute value
- state</a>.
+ state</a>, with the <a href="#additional">additional allowed
+ character</a> being U+0022 QUOTATION MARK (").
<dt>EOF
@@ -39181,7 +39182,8 @@
<dt>U+0026 AMPERSAND (&)
<dd>Switch to the <a href="#entity0">entity in attribute value
- state</a>.
+ state</a>, with the <a href="#additional">additional allowed
+ character</a> being U+0027 APOSTROPHE (').
<dt>EOF
@@ -39217,7 +39219,8 @@
<dt>U+0026 AMPERSAND (&)
<dd>Switch to the <a href="#entity0">entity in attribute value
- state</a>.
+ state</a>, with no <a href="#additional">additional allowed
+ character</a>.
<dt>U+003E GREATER-THAN SIGN (>)
@@ -39942,6 +39945,9 @@
<dt>EOF
+ <dt>The <dfn id=additional>additional allowed character</dfn>, if there is
+ one
+
<dd>Not an entity. No characters are consumed, and nothing is returned.
(This is not an error, either.)
Modified: source
===================================================================
--- source 2008-03-02 10:14:44 UTC (rev 1295)
+++ source 2008-03-02 11:00:30 UTC (rev 1296)
@@ -35397,10 +35397,10 @@
<p>An <dfn title="syntax-ambiguous-ampersand">ambiguous
ampersand</dfn> is a U+0026 AMPERSAND (<code>&</code>) character
- that is not the last character in the file, that is not followed by
- a <span>space character</span>, that is not followed by a start tag
- that has not been omitted, and that is not followed by another
- U+0026 AMPERSAND (<code>&</code>) character.</p>
+ that is followed by some <span title="syntax-text">text</span> other
+ than a <span>space character</span>, a U+003C LESS-THAN SIGN
+ character ('<'), or another U+0026 AMPERSAND (<code>&</code>)
+ character.</p>
<h4>Comments</h4>
@@ -36286,7 +36286,8 @@
<p><em>(This cannot happen if the <span>content model flag</span>
is set to the CDATA state.)</em></p>
- <p>Attempt to <span>consume an entity</span>.</p>
+ <p>Attempt to <span>consume an entity</span>, with no
+ <span>additional allowed character</span>.</p>
<p>If nothing is returned, emit a U+0026 AMPERSAND character
token.</p>
@@ -36691,7 +36692,9 @@
<dd>Switch to the <span>before attribute name state</span>.</dd>
<dt>U+0026 AMPERSAND (&)</dt>
- <dd>Switch to the <span>entity in attribute value state</span>.</dd>
+ <dd>Switch to the <span>entity in attribute value state</span>,
+ with the <span>additional allowed character</span> being U+0022
+ QUOTATION MARK (").</dd>
<dt>EOF</dt>
<dd><span>Parse error</span>. Emit the current tag
@@ -36719,7 +36722,9 @@
<dd>Switch to the <span>before attribute name state</span>.</dd>
<dt>U+0026 AMPERSAND (&)</dt>
- <dd>Switch to the <span>entity in attribute value state</span>.</dd>
+ <dd>Switch to the <span>entity in attribute value state</span>,
+ with the <span>additional allowed character</span> being U+0027
+ APOSTROPHE (').</dd>
<dt>EOF</dt>
<dd><span>Parse error</span>. Emit the current tag
@@ -36752,7 +36757,8 @@
<dd>Switch to the <span>before attribute name state</span>.</dd>
<dt>U+0026 AMPERSAND (&)</dt>
- <dd>Switch to the <span>entity in attribute value state</span>.</dd>
+ <dd>Switch to the <span>entity in attribute value state</span>,
+ with no <span>additional allowed character</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (>)</dt>
<dd>Emit the current tag token. Switch to the <span>data
@@ -37453,6 +37459,7 @@
<dt>U+003C LESS-THAN SIGN</dt>
<dt>U+0026 AMPERSAND</dt>
<dt>EOF</dt>
+ <dt>The <dfn>additional allowed character</dfn>, if there is one</dt>
<dd>Not an entity. No characters are consumed, and nothing is
returned. (This is not an error, either.)</dd>
More information about the Commit-Watchers
mailing list