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

Add onfocusin and onfocusout to event handler content attributes #32884

Open
josepharhar opened this issue Mar 29, 2024 · 1 comment
Open

Add onfocusin and onfocusout to event handler content attributes #32884

josepharhar opened this issue Mar 29, 2024 · 1 comment
Labels
Content:HTML Hypertext Markup Language docs waiting for implementations Waiting for feature to be implemented in browsers

Comments

@josepharhar
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes

What specific section or headline is this issue about?

"The event handler attributes:"

What information was incorrect, unhelpful, or incomplete?

This list does not include "onfocusin" and "onfocusout"

What did you expect to see?

"onfocusin" and "onfocusout" to be in the list like "onfocus" is

Do you have any supporting links, references, or citations?

I am adding these event handler content attributes to the spec here: whatwg/html#10235

Do you have anything more you want to share?

I'm not sure if there's anywhere else on MDN that these event handler content attributes should be enumerated, but when I searched for "onfocus" this was the only page I found.

@josepharhar josepharhar added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Mar 29, 2024
@github-actions github-actions bot added the Content:HTML Hypertext Markup Language docs label Mar 29, 2024
@hamishwillee
Copy link
Collaborator

hamishwillee commented Apr 1, 2024

Looking at Chrome (at least) the events exist (focusout, focusin), but the associated onXxx() handlers do not - which makes sense, because that is what you're adding in whatwg/html#10235.

MDN does not document "stuff" until there is at least one browser implementation, so this needs to be on hold for a bit.

When this is implemented, yes then https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes would need to be updated. The two events would also need to be updated in their syntax boxes to add the onXzzz() handler. You can see what this would look like by comparing with the focus event syntax section

@hamishwillee hamishwillee added waiting for implementations Waiting for feature to be implemented in browsers and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs waiting for implementations Waiting for feature to be implemented in browsers
Projects
None yet
Development

No branches or pull requests

2 participants