[html5] r2805 - [] (0) Try once more to handle elements losing focus when they are hidden, and o [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Feb 12 17:37:40 PST 2009


Author: ianh
Date: 2009-02-12 17:37:39 -0800 (Thu, 12 Feb 2009)
New Revision: 2805

Modified:
   index
   source
Log:
[] (0) Try once more to handle elements losing focus when they are hidden, and other focusing fixes.

Modified: index
===================================================================
--- index	2009-02-13 01:09:34 UTC (rev 2804)
+++ index	2009-02-13 01:37:39 UTC (rev 2805)
@@ -45556,13 +45556,13 @@
 
   </ol>
 
-  <p>When the user moves the focus away from a <a href=#focusable>focusable</a>
-  element, the user agent should run the <a href=#unfocusing-steps>unfocusing steps</a>
-  that element.</p>
-
   <p>When an element that is focused stops being a
-  <a href=#focusable>focusable</a> element, the user agent should run the
-  <a href=#unfocusing-steps>unfocusing steps</a> that element.</p>
+  <a href=#focusable>focusable</a> element, or stops being focused without
+  another element being explicitly focused in its stead, the user
+  agent should run the <a href=#focusing-steps>focusing steps</a> for <a href=#the-body-element-0>the body
+  element</a>, if there is one; if there is not, then the user
+  agent should run the <a href=#unfocusing-steps>unfocusing steps</a> for the affected
+  element only.</p>
 
   <p class=example>For example, this might happen because the
   element is removed from its <code>Document</code>, or has a <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute added. It would also
@@ -45590,7 +45590,7 @@
   interested in the contents of the <a href=#browsing-context>browsing context</a> of
   the <code><a href=#window>Window</a></code> object on which the method was invoked.</p>
 
-  <p>User agents are encouraged to have this <code title=dom-window-blur><a href=#dom-window-blur>focus()</a></code> method trigger some kind of
+  <p>User agents are encouraged to have this <code title=dom-window-focus><a href=#dom-window-focus>focus()</a></code> method trigger some kind of
   notification.</p>
 
   <p>The <dfn id=dom-window-blur title=dom-window-blur><code>blur()</code></dfn> method
@@ -45631,9 +45631,11 @@
   </ol>
 
   <p>The <dfn id=dom-blur title=dom-blur><code>blur()</code></dfn> method, when
-  invoked, should run the <a href=#unfocusing-steps>unfocusing steps</a> for the
-  element. User agents may selectively or uniformly ignore calls to
-  this method for usability reasons.</p>
+  invoked, should run the <a href=#focusing-steps>focusing steps</a> for <a href=#the-body-element-0>the
+  body element</a>, if there is one; if there is not, then it
+  should run the <a href=#unfocusing-steps>unfocusing steps</a> for the element on
+  which the method was called instead. User agents may selectively or
+  uniformly ignore calls to this method for usability reasons.</p>
 
 
 

Modified: source
===================================================================
--- source	2009-02-13 01:09:34 UTC (rev 2804)
+++ source	2009-02-13 01:37:39 UTC (rev 2805)
@@ -48740,13 +48740,13 @@
 
   </ol>
 
-  <p>When the user moves the focus away from a <span>focusable</span>
-  element, the user agent should run the <span>unfocusing steps</span>
-  that element.</p>
-
   <p>When an element that is focused stops being a
-  <span>focusable</span> element, the user agent should run the
-  <span>unfocusing steps</span> that element.</p>
+  <span>focusable</span> element, or stops being focused without
+  another element being explicitly focused in its stead, the user
+  agent should run the <span>focusing steps</span> for <span>the body
+  element</span>, if there is one; if there is not, then the user
+  agent should run the <span>unfocusing steps</span> for the affected
+  element only.</p>
 
   <p class="example">For example, this might happen because the
   element is removed from its <code>Document</code>, or has a <code
@@ -48779,7 +48779,7 @@
   the <code>Window</code> object on which the method was invoked.</p>
 
   <p>User agents are encouraged to have this <code
-  title="dom-window-blur">focus()</code> method trigger some kind of
+  title="dom-window-focus">focus()</code> method trigger some kind of
   notification.</p>
 
   <p>The <dfn title="dom-window-blur"><code>blur()</code></dfn> method
@@ -48823,9 +48823,11 @@
   </ol>
 
   <p>The <dfn title="dom-blur"><code>blur()</code></dfn> method, when
-  invoked, should run the <span>unfocusing steps</span> for the
-  element. User agents may selectively or uniformly ignore calls to
-  this method for usability reasons.</p>
+  invoked, should run the <span>focusing steps</span> for <span>the
+  body element</span>, if there is one; if there is not, then it
+  should run the <span>unfocusing steps</span> for the element on
+  which the method was called instead. User agents may selectively or
+  uniformly ignore calls to this method for usability reasons.</p>
 
 
 




More information about the Commit-Watchers mailing list