Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define what tabIndex returns when the tabindex attribute is not set
This updates the tabIndex getter's default value to be 0 for a specific list of element types, instead of the spec's previous "elements that are focusable". This matches reality better; apart from minor edge cases all three browser engines match this spec in observable behavior. Closes whatwg#1786. Closes whatwg#4464. See the focus meta-bug in whatwg#4607 for related discussions, including on adding an API that actually reflects whether an element is focusable (like the tabIndex getter was kind-of supposed to do). Tests: web-platform-tests/wpt#17657
- Loading branch information