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

HTML: WPT for tabIndex #17657

Merged
merged 6 commits into from Aug 15, 2019
Merged

HTML: WPT for tabIndex #17657

merged 6 commits into from Aug 15, 2019

Conversation

rakina
Copy link
Contributor

@rakina rakina commented Jul 5, 2019

See whatwg/html#4754 for the spec change.

This is consistent with behaviors in Chrome, Safari, Firefox - see table in whatwg/html#4464 (comment) Chrome is failing for the case with shadow host with delegatesFocus=true)

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Only have some optional nits.

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with @annevk's nits. I'm glad you tested the cases like disabled/hidden and has a href/doesn't have a href.

It's impressive that all browsers agree here.

@annevk annevk assigned domenic and unassigned zcorpan Jul 9, 2019
domenic pushed a commit to whatwg/html that referenced this pull request Jul 9, 2019
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 #1786. Closes #4464. See the focus meta-bug in #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
@rniwa
Copy link
Contributor

rniwa commented Aug 15, 2019

Let's merge this test.

@rniwa rniwa merged commit a669334 into web-platform-tests:master Aug 15, 2019
natechapin pushed a commit to natechapin/wpt that referenced this pull request Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants