spec/Overview.html 1.1976 2805 Try once more to handle elements losing

Try once more to handle elements losing focus when they are hidden, and
other focusing fixes. (whatwg r2805)

focus()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1976.html#dom-window-focus
unfocusing steps
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1976.html#unfocusing-steps
blur()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1976.html#dom-blur
blur()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1976.html#dom-window-blur
locked for focus
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1976.html#locked-for-focus

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1975&r2=1.1976&f=h
http://html5.org/tools/web-apps-tracker?from=2804&to=2805

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1975
retrieving revision 1.1976
diff -u -d -r1.1975 -r1.1976
--- Overview.html 13 Feb 2009 01:09:40 -0000 1.1975
+++ Overview.html 13 Feb 2009 01:37:44 -0000 1.1976
@@ -45551,13 +45551,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
@@ -45585,7 +45585,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
@@ -45626,9 +45626,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>

Received on Friday, 13 February 2009 01:42:39 UTC