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

id-ish methods should take an element reference #1

Open
stephenmathieson opened this issue Oct 1, 2013 · 0 comments
Open

id-ish methods should take an element reference #1

stephenmathieson opened this issue Oct 1, 2013 · 0 comments

Comments

@stephenmathieson
Copy link
Collaborator

i feel like this would be pretty common:

var username = document.querySelector('input[name=username]')
var help = document.querySelector('.error .username')

aria.describedBy(username, help)

should add an id to the element reference if one is missing

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

1 participant