W3C home > Mailing lists > Public > public-html-commits@w3.org > December 2008

html5/spec Overview.html,1.1694,1.1695

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 02 Dec 2008 10:59:34 +0000
To: public-html-commits@w3.org
Message-Id: <E1L7Syc-0008KM-Ay@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv31987

Modified Files:
	Overview.html 
Log Message:
WF2: placeholder='' must not contain newlines. (credit: hs) (whatwg r2524)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1694
retrieving revision 1.1695
diff -u -d -r1.1694 -r1.1695
--- Overview.html	2 Dec 2008 10:57:23 -0000	1.1694
+++ Overview.html	2 Dec 2008 10:59:31 -0000	1.1695
@@ -21893,7 +21893,10 @@
   <a href=#suffering-from-a-step-mismatch>suffering from a step mismatch</a>.<h6 id=the-placeholder-attribute><span class=secno>4.10.4.2.11 </span>The <code title=attr-input-placeholder><a href=#attr-input-placeholder>placeholder</a></code> attribute</h6><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 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>The <code title=attr-input-placeholder><a href=#attr-input-placeholder>placeholder</a></code>
+  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 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>The <code title=attr-input-placeholder><a href=#attr-input-placeholder>placeholder</a></code>
   attribute should not be used as an alternative to a
   <code><a href=#the-label-element>label</a></code>.<p>User agents should present this hint to the user, after having
   <a href=#strip-line-breaks title="strip line breaks">stripped line breaks</a> from it,
Received on Tuesday, 2 December 2008 10:59:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 December 2008 10:59:45 GMT