NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 304 - Make empty unquoted attribute values not allowed (and some editorial fixes). (credit: sp)
Make empty unquoted attribute values not allowed (and some editorial fixes). ...
Status: RESOLVED NOTREPRODUCIBLE
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-25 11:50 CEST by Henri Sivonen
Modified: 2016-03-22 16:59 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-09-25 11:50:29 CEST
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>&#x22;</code>)
+    characters</span>, any U+0022 QUOTATION MARK (<code>&#x22;</code>)
     characters, U+0027 APOSTROPHE (<code>&#x27;</code>) characters,
     U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E
-    GREATER-THAN SIGN (<code>&gt;</code>) characters.</p>
+    GREATER-THAN SIGN (<code>&gt;</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 (&gt;)</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"
Comment 1 Simon Pieters 2016-03-22 16:59:56 CET
<p class=> gives an error now.