Bugzilla – Bug 304
Make empty unquoted attribute values not allowed (and some editorial fixes). (credit: sp)
Last modified: 2016-03-22 16:59:56 CET
Index: source =================================================================== --- source (revision 2121) +++ source (revision 2122) @@ -5845,7 +5845,7 @@ <h5>The <dfn title="attr-lang"><code>lang</code></dfn> and <dfn - title="attr-xml-lang"><code>xml:lang</code></dfn> (XML only) + title="attr-xml-lang"><code>xml:lang</code></dfn> attributes</h5> <p>The <code title="attr-lang">lang</code> attribute specifies the @@ -43031,10 +43031,11 @@ title="syntax-attribute-value">attribute value</span>, which, in addition to the requirements given above for attribute values, must not contain any literal <span title="space character">space - characters</span>, a U+0022 QUOTATION MARK (<code>"</code>) + characters</span>, any U+0022 QUOTATION MARK (<code>"</code>) characters, U+0027 APOSTROPHE (<code>'</code>) characters, U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E - GREATER-THAN SIGN (<code>></code>) characters.</p> + GREATER-THAN SIGN (<code>></code>) characters, and must not be + the empty string.</p> <div class="example"> @@ -45225,8 +45226,8 @@ <dd>Switch to the <span>attribute value (single-quoted) state</span>.</dd> <dt>U+003E GREATER-THAN SIGN (>)</dt> - <dd>Emit the current tag token. Switch to the <span>data - state</span>.</dd> + <dd><span>Parse error</span>. Emit the current tag token. Switch to + the <span>data state</span>.</dd> <dt>U+003D EQUALS SIGN (=)</dt> <dd><span>Parse error</span>. Treat it as per the "anything else"
<p class=> gives an error now.