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

Move autofocus content attribute to HTMLElement #4563

Closed
tkent-google opened this issue Apr 24, 2019 · 3 comments · Fixed by #4830
Closed

Move autofocus content attribute to HTMLElement #4563

tkent-google opened this issue Apr 24, 2019 · 3 comments · Fixed by #4830
Labels
addition/proposal New features or enhancements topic: focus

Comments

@tkent-google
Copy link
Contributor

Any HTML elements can be focusable by tabindex attribute or contenteditable attribute. autofocus attribute should be available for all HTML elements.

@annevk
Copy link
Member

annevk commented Apr 24, 2019

It'd be good to improve test coverage and definition of the existing functionality first, as there are various issues, e.g., web-platform-tests/wpt#11193, web-platform-tests/wpt#9440, and #3551.

(We should also add it to SVG.)

@domenic
Copy link
Member

domenic commented Aug 1, 2019

Kent has worked to improve the test coverage and definition of existing functionality for autofocus in #4763, but so far no other implementers have been able to make time to signal their interest.

Given this, plus the rough consensus at TPAC #833 (comment) , I think we should move forward with moving autofocus="" to HTMLElement. It will be a bit annoying since the pull request for that would be on top of #4763, but I don't think we should block any longer. It's possible both PRs will remain blocked on implementer interest, but I think we should still move forward with spec and test work.

tkent-google added a commit to tkent-google/html that referenced this issue Aug 9, 2019
- Add 'autofocus' to the global attribute list
- Move 'autofocus' IDL attribute from HTMLButtonElement, HTMLInputElement,
  HTMLSelectElement, HTMLTextAreaElement to HTMLOrSVGElement

This fixes whatwg#4563
@tkent-google
Copy link
Contributor Author

Made a specification PR
#4830

domenic pushed a commit that referenced this issue Aug 30, 2019
* Add 'autofocus' to the global attribute list
* Move 'autofocus' IDL attribute from HTMLButtonElement, HTMLInputElement,
  HTMLSelectElement, HTMLTextAreaElement to HTMLOrSVGElement

Fixes #4563.
zcorpan pushed a commit that referenced this issue Nov 6, 2019
* Add 'autofocus' to the global attribute list
* Move 'autofocus' IDL attribute from HTMLButtonElement, HTMLInputElement,
  HTMLSelectElement, HTMLTextAreaElement to HTMLOrSVGElement

Fixes #4563.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements topic: focus
Development

Successfully merging a pull request may close this issue.

3 participants