This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3182 http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3183 Looks like we can drop the magic for body in the focusable steps. Make sure to update the domintro bit as well.
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3204 http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3206 http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3208 http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3209 Chrome and Safari also don't focus the inner frame if you call focus() on the documentElement. Firefox and IE do. IE also focuses it if you focus the <body>. They all focus the inner frame if you call focus() on the window, all but IE focus the inner frame if you call focus() on the iframe. What a mess as usual. The last two tests in particular I couldn't quite understand what IE was doing. I've gone with the most popular sane answers, counting Safari+Chrome as 1.5 browsers since they have a shared history. body: no longer magical documentElement: focuses viewport, not affected by existence of body window, iframe: focuses browsing context, doesn't change currently focused node Let me know if there's anything wrong with this.
Checked in as WHATWG revision r8810. Check-in comment: Try to match browsers better around focus. https://html5.org/tools/web-apps-tracker?from=8809&to=8810