Bugzilla – Bug 602
Make '<' in unquoted attribute values non-conforming.
Last modified: 2009-11-23 17:17:31 CET
Index: source =================================================================== --- source (revision 3205) +++ source (revision 3206) @@ -72268,9 +72268,10 @@ must not contain any literal <span title="space character">space 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, and must not be - the empty string.</p> + U+003D EQUALS SIGN (<code>=</code>) characters, U+003C LESS-THAN + SIGN (<code><</code>) characters, or U+003E GREATER-THAN SIGN + (<code>></code>) characters, and must not be the empty + string.</p> <div class="example"> @@ -74453,6 +74454,7 @@ <dd><span>Parse error</span>. Emit the current tag token. Switch to the <span>data state</span>.</dd> + <dt>U+003C LESS-THAN SIGN (<)</dt> <dt>U+003D EQUALS SIGN (=)</dt> <dd><span>Parse error</span>. Treat it as per the "anything else" entry below.</dd> @@ -74462,8 +74464,8 @@ <span>data state</span>.</dd> <dt>Anything else</dt> - <dd>Append the <span>current input character</span> to the current attribute's - value. Switch to the <span>attribute value (unquoted) + <dd>Append the <span>current input character</span> to the current + attribute's value. Switch to the <span>attribute value (unquoted) state</span>.</dd> </dl> @@ -74547,6 +74549,7 @@ <dt>U+0022 QUOTATION MARK (")</dt> <dt>U+0027 APOSTROPHE (')</dt> + <dt>U+003C LESS-THAN SIGN (<)</dt> <dt>U+003D EQUALS SIGN (=)</dt> <dd><span>Parse error</span>. Treat it as per the "anything else" entry below.</dd>