HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2524WF2: placeholder='' must not contain newlines. (credit: hs)2008-12-02 10:59
@@ -30177,21 +30177,24 @@ You cannot complete this form until the field is correct.</samp></pre>
   <span>suffering from a step mismatch</span>.</p>
 
 
 
   <h6>The <code title="attr-input-placeholder">placeholder</code> attribute</h6>
 
   <p>The <dfn
   title="attr-input-placeholder"><code>placeholder</code></dfn>
   attribute represents a <em>short</em> hint (a word or short phrase)
   intended to aid the user with data entry. A hint could be a sample
-  value or a brief description of the expected format.</p>
+  value or a brief description of the expected format. The attribute,
+  if specified, must have a value that is not the empty string and
+  that contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN
+  (CR) characters.</p>
 
   <p class="note">For a longer hint or other advisory text, the <code
   title="attr-title">title</code> attribute is more appropriate.</p>
 
   <p>The <code title="attr-input-placeholder">placeholder</code>
   attribute should not be used as an alternative to a
   <code>label</code>.</p>
 
   <p>User agents should present this hint to the user, after having
   <span title="strip line breaks">stripped line breaks</span> from it,

|