Short URL: http://html5.org/r/2805
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2805 | Try once more to handle elements losing focus when they are hidden, and other focusing fixes. | 2009-02-13 01:37 |
Index: source =================================================================== --- source (revision 2804) +++ source (revision 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>