Permalink
Browse files

[] (0) WF2: placeholder='' must not contain newlines. (credit: hs)

git-svn-id: http://svn.whatwg.org/webapps@2524 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 6088056 commit ee3a5decb3072aa17b69e6059ca4da1e6a52887c @Hixie Hixie committed Dec 2, 2008
Showing with 8 additions and 2 deletions.
  1. +4 −1 index
  2. +4 −1 source
View
5 index
@@ -26971,7 +26971,10 @@ You cannot complete this form until the field is correct.</samp></pre>
<p>The <dfn id=attr-input-placeholder 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><a href=#the-title-attribute>title</a></code> attribute is more appropriate.</p>
View
5 source
@@ -30184,7 +30184,10 @@ You cannot complete this form until the field is correct.</samp></pre>
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>

0 comments on commit ee3a5de

Please sign in to comment.