- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 29 Jul 2010 21:56:43 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv6097 Modified Files: association-of-controls-and-forms.html spec.html Log Message: Change autofocus='' to only focus the first control seen with the attribute (per document). (whatwg r5222) [updated by splitter] Index: association-of-controls-and-forms.html =================================================================== RCS file: /sources/public/html5/spec/association-of-controls-and-forms.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- association-of-controls-and-forms.html 28 Jul 2010 21:26:43 -0000 1.9 +++ association-of-controls-and-forms.html 29 Jul 2010 21:56:41 -0000 1.10 @@ -509,31 +509,40 @@ describe how the user interacts with the control.</p> </div><h5 id="autofocusing-a-form-control"><span class="secno">4.10.19.4 </span>Autofocusing a form control</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- v2: Apply this to contentEditable elements --><p>The <dfn id="attr-fe-autofocus" title="attr-fe-autofocus"><code>autofocus</code></dfn> - content attribute allows the user to indicate that a control is to + content attribute allows the author to indicate that a control is to be focused as soon as the page is loaded, allowing the user to just start typing without having to manually focus the main control.</p><p>The <code title="attr-fe-autofocus"><a href="#attr-fe-autofocus">autofocus</a></code> attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a>.</p><p>There must not be more than one element in the document with the <code title="attr-fe-autofocus"><a href="#attr-fe-autofocus">autofocus</a></code> attribute specified.</p><div class="impl"> - <p>Whenever an element with the <code title="attr-fe-autofocus"><a href="#attr-fe-autofocus">autofocus</a></code> attribute specified is + <p>When an element with the <code title="attr-fe-autofocus"><a href="#attr-fe-autofocus">autofocus</a></code> attribute specified is <a href="infrastructure.html#insert-an-element-into-a-document" title="insert an element into a document">inserted into a - document</a> whose <a href="browsers.html#browsing-context">browsing context</a> did not have the - <a href="the-iframe-element.html#sandboxed-automatic-features-browsing-context-flag">sandboxed automatic features browsing context flag</a> set - when the <code><a href="infrastructure.html#document">Document</a></code> was created, the user agent should - <a href="webappapis.html#queue-a-task">queue a task</a> that checks to see if the element is - <a href="editing.html#focusable">focusable</a>, and if so, runs the <a href="editing.html#focusing-steps">focusing - steps</a> for that element. User agents may also change the - scrolling position of the document, or perform some other action - that brings the element to the user's attention. The <a href="webappapis.html#task-source">task - source</a> for this task is the <a href="webappapis.html#dom-manipulation-task-source">DOM manipulation task - source</a>.</p> + document</a>, user agents should run the following steps:</p>~ - <p>User agents may ignore this attribute if the user has indicated - (for example, by starting to type in a form control) that he does - not wish focus to be changed.</p> + <ol><li><p>If the <code><a href="infrastructure.html#document">Document</a></code>'s <a href="browsers.html#browsing-context">browsing context</a> + had the <a href="the-iframe-element.html#sandboxed-automatic-features-browsing-context-flag">sandboxed automatic features browsing context + flag</a> set when the <code><a href="infrastructure.html#document">Document</a></code> was created, abort + these steps.</p></li> - <p class="note">Focusing the control does not imply that the user + <li><p>If the user agent has already reached the last step of this + list of steps in response to an element being <a href="infrastructure.html#insert-an-element-into-a-document" title="insert + an element into a document">inserted</a> into this + <code><a href="infrastructure.html#document">Document</a></code>, abort these steps.</p></li> + + <li><p>If the user has indicated (for example, by starting to type + in a form control) that he does not wish focus to be changed, then + optionally abort these steps.</p></li> + + <li><p><a href="webappapis.html#queue-a-task">Queue a task</a> that checks to see if the element + is <a href="editing.html#focusable">focusable</a>, and if so, runs the <a href="editing.html#focusing-steps">focusing + steps</a> for that element. User agents may also change the + scrolling position of the document, or perform some other action + that brings the element to the user's attention. The <a href="webappapis.html#task-source">task + source</a> for this task is the <a href="webappapis.html#dom-manipulation-task-source">DOM manipulation task + source</a>.</p></li> + + </ol><p class="note">Focusing the control does not imply that the user agent must focus the browser window if it has lost focus.</p> <p>The <dfn id="dom-fe-autofocus" title="dom-fe-autofocus"><code>autofocus</code></dfn> Index: spec.html =================================================================== RCS file: /sources/public/html5/spec/spec.html,v retrieving revision 1.1092 retrieving revision 1.1093 diff -u -d -r1.1092 -r1.1093 --- spec.html 29 Jul 2010 00:36:49 -0000 1.1092 +++ spec.html 29 Jul 2010 21:56:41 -0000 1.1093 @@ -333,7 +333,7 @@ <a href="Overview.html">single page HTML</a>, <a href="spec.html">multipage HTML</a>, <a href="author/">author edition</a>. -This is revision 1.4156. +This is revision 1.4157. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2010 <a href="http://www.w3.org/"><abbr title="World Wide
Received on Thursday, 29 July 2010 21:56:44 UTC