Bugzilla – Bug 107
Ban '=' characters from unquoted attribute values.
Last modified: 2008-03-13 16:22:05 CET
Index: source =================================================================== --- source (revision 1298) +++ source (revision 1299) @@ -35011,10 +35011,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> or U+003E GREATER-THAN SIGN (<code>></code>) - characters, and must not, furthermore, start with either a literal - U+0022 QUOTATION MARK (<code>"</code>) character or a literal - U+0027 APOSTROPHE (<code>'</code>) character.</p> + characters</span>, U+003D EQUALS SIGN (=) characters, or U+003E + GREATER-THAN SIGN (<code>></code>) characters, and must not, + furthermore, start with either a literal U+0022 QUOTATION MARK + (<code>"</code>) character or a literal U+0027 APOSTROPHE + (<code>'</code>) character.</p> <div class="example"> @@ -36671,6 +36672,11 @@ <dd>Emit the current tag token. Switch to the <span>data state</span>.</dd> + <dt>U+003D EQUALS SIGN (=)</dt> + <dd><span>Parse error</span>. Append the current input character + to the current attribute's value. Switch to the <span>attribute + value (unquoted) state</span>.</dd> + <dt>EOF</dt> <dd><span>Parse error</span>. Emit the current tag token. Reconsume the character in the <span>data @@ -36769,6 +36775,11 @@ <dd>Emit the current tag token. Switch to the <span>data state</span>.</dd> + <dt>U+003D EQUALS SIGN (=)</dt> + <dd><span>Parse error</span>. Append the current input character + to the current attribute's value. Stay in the <span>attribute + value (unquoted) state</span>.</dd> + <dt>EOF</dt> <dd><span>Parse error</span>. Emit the current tag token. Reconsume the character in the <span>data