[html5] r8734 - [e] (0) Make placeholder='' and autofocus='' work better together Fixing https:/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Aug 29 14:01:42 PDT 2014


Author: ianh
Date: 2014-08-29 14:01:38 -0700 (Fri, 29 Aug 2014)
New Revision: 8734

Modified:
   complete.html
   index
   source
Log:
[e] (0) Make placeholder='' and autofocus='' work better together
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26194
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2014-08-29 19:26:28 UTC (rev 8733)
+++ complete.html	2014-08-29 21:01:38 UTC (rev 8734)
@@ -36788,9 +36788,14 @@
 
   
 
-  <p>User agents should present this hint to the user, after having <a href=#strip-line-breaks id=the-placeholder-attribute:strip-line-breaks>stripped line breaks</a> from it, when the element's <a href=#concept-fe-value id=the-placeholder-attribute:concept-fe-value>value</a> is the empty string or the control is not <a href=#focused id=the-placeholder-attribute:focused>focused</a> (or both),
-  e.g. by displaying it inside a blank unfocused control and hiding it otherwise.</p>
+  <p>User agents should present this hint to the user, after having <a href=#strip-line-breaks id=the-placeholder-attribute:strip-line-breaks>stripped line breaks</a> from it, when the element's <a href=#concept-fe-value id=the-placeholder-attribute:concept-fe-value>value</a> is the empty string, especially if the control is not <a href=#focused id=the-placeholder-attribute:focused>focused</a>.</p>
 
+  <p>If a user agent normally doesn't show this hint to the user when the control is
+  <a href=#focused id=the-placeholder-attribute:focused-2>focused</a>, then the user agent should nonetheless show the hint for the control if it
+  was focused as a result of the <code id=the-placeholder-attribute:attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code> attribute, since
+  in that case the user will not have had an opportunity to examine the control before focusing
+  it.</p>
+
   
 
   <div class=example>

Modified: index
===================================================================
--- index	2014-08-29 19:26:28 UTC (rev 8733)
+++ index	2014-08-29 21:01:38 UTC (rev 8734)
@@ -36788,9 +36788,14 @@
 
   
 
-  <p>User agents should present this hint to the user, after having <a href=#strip-line-breaks id=the-placeholder-attribute:strip-line-breaks>stripped line breaks</a> from it, when the element's <a href=#concept-fe-value id=the-placeholder-attribute:concept-fe-value>value</a> is the empty string or the control is not <a href=#focused id=the-placeholder-attribute:focused>focused</a> (or both),
-  e.g. by displaying it inside a blank unfocused control and hiding it otherwise.</p>
+  <p>User agents should present this hint to the user, after having <a href=#strip-line-breaks id=the-placeholder-attribute:strip-line-breaks>stripped line breaks</a> from it, when the element's <a href=#concept-fe-value id=the-placeholder-attribute:concept-fe-value>value</a> is the empty string, especially if the control is not <a href=#focused id=the-placeholder-attribute:focused>focused</a>.</p>
 
+  <p>If a user agent normally doesn't show this hint to the user when the control is
+  <a href=#focused id=the-placeholder-attribute:focused-2>focused</a>, then the user agent should nonetheless show the hint for the control if it
+  was focused as a result of the <code id=the-placeholder-attribute:attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code> attribute, since
+  in that case the user will not have had an opportunity to examine the control before focusing
+  it.</p>
+
   
 
   <div class=example>

Modified: source
===================================================================
--- source	2014-08-29 19:26:28 UTC (rev 8733)
+++ source	2014-08-29 21:01:38 UTC (rev 8734)
@@ -47178,9 +47178,14 @@
 
   <p>User agents should present this hint to the user, after having <span data-x="strip line
   breaks">stripped line breaks</span> from it, when the element's <span
-  data-x="concept-fe-value">value</span> is the empty string or the control is not <span>focused</span> (or both),
-  e.g. by displaying it inside a blank unfocused control and hiding it otherwise.</p>
+  data-x="concept-fe-value">value</span> is the empty string, especially if the control is not <span>focused</span>.</p>
 
+  <p>If a user agent normally doesn't show this hint to the user when the control is
+  <span>focused</span>, then the user agent should nonetheless show the hint for the control if it
+  was focused as a result of the <code data-x="attr-fe-autofocus">autofocus</code> attribute, since
+  in that case the user will not have had an opportunity to examine the control before focusing
+  it.</p>
+
   </div>
 
   <div class="example">



More information about the Commit-Watchers mailing list