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

elementRoles: related concepts vs. implicit semantics #24

Closed
eps1lon opened this issue Sep 23, 2019 · 5 comments
Closed

elementRoles: related concepts vs. implicit semantics #24

eps1lon opened this issue Sep 23, 2019 · 5 comments

Comments

@eps1lon
Copy link
Member

eps1lon commented Sep 23, 2019

Currently a <select /> element will be mapped to the listbox and combobox role. This does not match the table of *default implicit ARIA semantics: https://www.w3.org/TR/html-aria/#el-select. It should map to either one depending on size/multiple.

It seems like the map is generated from related concepts but I think those aren't necessarily equivalent. Or the html spec is incomplete.

@hibachrach
Copy link

If I'm reading this issue correctly, it seems like there is a similar problem with <input type="file">, which is treated as a textbox, while the spec seems to state that there is no corresponding aria role.

@jessebeach
Copy link
Member

@eps1lon #32 should address the issue of <select /> mapping indiscriminately to listbox and combobox.

@eps1lon
Copy link
Member Author

eps1lon commented Nov 26, 2019

@eps1lon #32 should address the issue of <select /> mapping indiscriminately to listbox and combobox.

I'll check it out tomorrow and see if that helped. Seems like I have to check other PRs as well and update the TS types anyway.

@jessebeach
Copy link
Member

@eps1lon I'm going to run though all of https://www.w3.org/TR/html-aria/#el-input-file right now and make the code match the spec.

@jessebeach
Copy link
Member

Closing. Reopen if further discussion is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants