This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25877 - focusin and focusout should be included in the "focus update steps"
Summary: focusin and focusout should be included in the "focus update steps"
Status: RESOLVED MOVED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P1 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 25897
  Show dependency treegraph
 
Reported: 2014-05-23 22:01 UTC by Travis Leithead [MSFT]
Modified: 2016-04-27 17:01 UTC (History)
6 users (show)

See Also:


Attachments

Description Travis Leithead [MSFT] 2014-05-23 22:01:30 UTC
Presumably, focusin fires immediately before focus in the algorithm, and focusout fires immediately before blur in the algorithm (neither are cancelable).
Comment 1 Anne 2014-05-26 09:10:23 UTC
Since Ian wrote this, you probably filed this against the wrong component.
Comment 2 Ian 'Hixie' Hickson 2014-05-27 06:07:21 UTC
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...)
Comment 3 Anne 2014-05-27 07:59:48 UTC
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.
Comment 4 Arkadiusz Michalski (Spirit) 2014-05-27 08:37:16 UTC
(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)."
Comment 5 Travis Leithead [MSFT] 2014-05-27 18:11:02 UTC
(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).
Comment 6 Travis Leithead [MSFT] 2014-05-27 19:59:08 UTC
Cloned to Bug 25897 in the WHATWG component to help with convergence.
Comment 7 Michael[tm] Smith 2015-06-16 10:21:27 UTC
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
Comment 8 Travis Leithead [MSFT] 2016-04-27 17:01:43 UTC
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!