This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Presumably, focusin fires immediately before focus in the algorithm, and focusout fires immediately before blur in the algorithm (neither are cancelable).
Since Ian wrote this, you probably filed this against the wrong component.
What browsers support these, and are they required for compat? (There's a comment in the spec about them, but if we can avoid having redundant events in the platform, we should...)
https://bugzilla.mozilla.org/show_bug.cgi?id=687787 suggests we're implementing, in part because it's a thing jQuery is working around at the moment. I don't know much about focus events, but it does seem sad we're adding more of them.
(In reply to Ian 'Hixie' Hickson from comment #2) > What browsers support these, and are they required for compat? (There's a > comment in the spec about them, but if we can avoid having redundant events > in the platform, we should...) https://www.w3.org/Bugs/Public/show_bug.cgi?id=25279#c4 "Second, if you plan to work around FocusEvent what about focusin and focusout event type? This type are supported by the Chrome and IE, in Firefox still underway (https://bugzilla.mozilla.org/show_bug.cgi?id=687787). HTML spec never mentions about this event (use only blur/focus)."
(In reply to Anne from comment #1) > Since Ian wrote this, you probably filed this against the wrong component. ...and a great job he did too. Thanks, but I'd prefer that this stay on the original component. Lets discuss with WG chairs if you still feel strongly about moving it. Related to these focus events: their uniqueness is that they fire before focus changes, and that they bubble. I believe historically they also were the only events that carried the related target data (focus/blur were historically standard Event objects).
Cloned to Bug 25897 in the WHATWG component to help with convergence.
Making this a higher priority to actively seek more feedback on from implementers and webdevs. Also, see use-counter data about this at https://www.w3.org/Bugs/Public/show_bug.cgi?id=25897#c10
HTML5.1 Bugzilla Bug Triage: Moved to Github issue: https://github.com/w3c/html/issues/278 To file additional issues please use the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new Thanks!