HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2523WF2: placeholder='' should strip newlines. (credit: hs)2008-12-02 10:57
@@ -30186,24 +30186,25 @@ You cannot complete this form until the field is correct.</samp></pre>
   intended to aid the user with data entry. A hint could be a sample
   value or a brief description of the expected format.</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 only when the
-  element's <span title="concept-fe-value">value</span> is the empty
-  string and the control is not focused (e.g. by displaying it inside
-  a blank unfocused control).</p>
+  <p>User agents should present this hint to the user, after having
+  <span title="strip line breaks">stripped line breaks</span> from it,
+  when the element's <span title="concept-fe-value">value</span> is
+  the empty string and the control is not focused (e.g. by displaying
+  it inside a blank unfocused control).</p>
 
   <div class="example">
 
    <p>Here is an example of a mail configuration user interface that
    uses the <code title="attr-input-placeholder">placeholder</code>
    attribute:</p>
 
    <pre>&lt;fieldset>
  &lt;legend>Mail Account&lt;/legend>
  &lt;p>&lt;label>Name: &lt;input type="text" name="fullname" placeholder="John Ratzenberger">&lt;/label>&lt;/p>

|