[w3c/uievents] Update focusin/focusout event order to match implementations? (#276)

I noticed that the [spec says](https://w3c.github.io/uievents/#event-type-focusin)

> This event type MUST be dispatched before the element is given focus. The event target MUST be the element which is about to receive focus. This event type is similar to focus, but is dispatched before focus is shifted, and does bubble.

However, I couldn't find a single implementation that behaves this way. In all browsers I tested `focusin` is fired *after* `focus`. Same is true of `blur` and `focusout`. Additionally, `document.activeElement` is already updated to the new element in the `focusin` handler.

Should the spec be updated to match implementations?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/276

Received on Wednesday, 26 August 2020 03:15:29 UTC