NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 107 - Ban '=' characters from unquoted attribute values.
Ban '=' characters from unquoted attribute values.
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-03 13:12 CET by Nobody
Modified: 2008-03-13 16:22 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-03-03 13:12:49 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>&gt;</code>)
-    characters, and must not, furthermore, start with either a literal
-    U+0022 QUOTATION MARK (<code>&#x22;</code>) character or a literal
-    U+0027 APOSTROPHE (<code>&#x27;</code>) character.</p>
+    characters</span>, U+003D EQUALS SIGN (=) characters, or U+003E
+    GREATER-THAN SIGN (<code>&gt;</code>) characters, and must not,
+    furthermore, start with either a literal U+0022 QUOTATION MARK
+    (<code>&#x22;</code>) character or a literal U+0027 APOSTROPHE
+    (<code>&#x27;</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