Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onfocusout and onfocusin event handler content attributes #10234

Open
josepharhar opened this issue Mar 29, 2024 · 2 comments · May be fixed by #10235
Open

onfocusout and onfocusin event handler content attributes #10234

josepharhar opened this issue Mar 29, 2024 · 2 comments · May be fixed by #10235

Comments

@josepharhar
Copy link
Contributor

What is the issue with the HTML Standard?

The focusin and focusout events don't have element.onfocusout or element.onfocusin event handler content attributes: https://html.spec.whatwg.org/#global-attributes:event-handler-content-attributes

Safari already ships them, but chrome and firefox do not: https://jsfiddle.net/jarhar/ozxw13gy/2/
Should we spec them? I can implement and ship in chrome.

@josepharhar
Copy link
Contributor Author

Oh it looks like focusin and focusout are not included in the spec anywhere, that could be added as well

@josepharhar
Copy link
Contributor Author

It looks like #3514 tracks this and also DOMFocusIn/DOMFocusOut

josepharhar added a commit to josepharhar/html that referenced this issue Mar 29, 2024
These events are already implemented in browsers and are documented on
MDN. This PR also adds onfocusin and onfocusout event handler content
attributes.

whatwg#3514 tracks this and other focus
events.

Fixes whatwg#10234
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Mar 29, 2024
Spec issue: whatwg/html#10234

Fixed: 330759712
Change-Id: I4103717056a6dfb6e216c44c26b0305d44c60f5f
@josepharhar josepharhar linked a pull request Mar 29, 2024 that will close this issue
5 tasks
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Mar 29, 2024
Spec issue: whatwg/html#10234

Fixed: 330759712
Change-Id: I4103717056a6dfb6e216c44c26b0305d44c60f5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant