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

whatwg at whatwg.org whatwg at whatwg.org
Tue Dec 2 02:59:27 PST 2008


Author: ianh
Date: 2008-12-02 02:59:26 -0800 (Tue, 02 Dec 2008)
New Revision: 2524

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

Modified: index
===================================================================
--- index	2008-12-02 10:57:19 UTC (rev 2523)
+++ index	2008-12-02 10:59:26 UTC (rev 2524)
@@ -26971,7 +26971,10 @@
   <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>
 

Modified: source
===================================================================
--- source	2008-12-02 10:57:19 UTC (rev 2523)
+++ source	2008-12-02 10:59:26 UTC (rev 2524)
@@ -30184,7 +30184,10 @@
   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>




More information about the Commit-Watchers mailing list