HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2805Try once more to handle elements losing focus when they are hidden, and other focusing fixes.2009-02-13 01:37
@@ -48733,27 +48733,27 @@ at the first element with the given ID must be treated as if it was cloned and r
    <span>broadcast <code title="event-formchange">formchange</code>
    events</span> at the element's <span>form owner</span>.</p>
 
    <li><p>Unfocus the element.</p></li>
 
    <li><p><span>Fire a simple event</span> that doesn't bubble called
    <code title="event-blur">blur</code> at the element.</p></li>
 
   </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
   title="attr-hidden">hidden</code> attribute added. It would also
   happen to an <code>input</code> element when the element gets <span
   title="concept-fe-disabled">disabled</span>.</p>
 
 
   <h4>Document-level focus APIs</h4>
 
@@ -48772,21 +48772,21 @@ at the first element with the given ID must be treated as if it was cloned and r
   contexts</span> are also focused, and the <span>top-level browsing
   context</span> has the <i>system focus</i>.</p>
 
   <p>The <dfn title="dom-window-focus"><code>focus()</code></dfn>
   method on the <code>Window</code> object, when invoked, provides a
   hint to the user agent that the script believes the user might be
   interested in the contents of the <span>browsing context</span> of
   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
   on the <code>Window</code> object, when invoked, provides a hint to
   the user agent that the script believes the user probably is not
   currently interested in the contents of the <span>browsing
   context</span> of the <code>Window</code> object on which the method
   was invoked, but that the contents might become interesting again in
   the future.</p>
 
@@ -48816,23 +48816,25 @@ at the first element with the given ID must be treated as if it was cloned and r
    <li><p>Mark the element as <dfn>locked for focus</dfn>.</p></li>
 
    <li><p>If the element is not already focused, run the <span>focusing
    steps</span> for the element.</p></li>
 
    <li><p>Unmark the element as <i>locked for focus</i>.</p></li>
 
   </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>
 
 
 
   <h3 id="selection">The text selection APIs</h3>
 
   <p>Every <span>browsing context</span> has <dfn title="the
   selection">a selection</dfn>. The selection can be empty, and the
   selection can have more than one range (a disjointed selection). The
   user agent should allow the user to change the selection. User
   agents are not required to let the user select more than one range,

|