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

Fix crash in no-unsupported-role-attributes rule #2917

Merged
merged 1 commit into from Jun 17, 2023

Conversation

jaswilli
Copy link
Contributor

Resolves #2916.

Handle the case where aria-query's role mapping data does not have an attributes property defined.

Note: as I mentioned in #2916 I'm a little confused by the current behavior where an <input> with a type that doesn't match anything sort of defaults to being treated like a <button>. If that's correct (or correct enough) then this should work, but if that's also a bug then we'll want a different solution here.

Handle the case where aria-query's role mapping data does not have an
attributes property defined.

Resolves ember-template-lint#2916
@bmish bmish added the bug label Jun 17, 2023
Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Fixing the crash for now sounds good. Thanks!

CC: @judithhinlung the rule author who perhaps can speak to the desired behavior here.

@bmish bmish changed the title Fix crash in unsupported-role-attributes rule Fix crash in no-unsupported-role-attributes rule Jun 17, 2023
@bmish bmish merged commit 71bf8bb into ember-template-lint:master Jun 17, 2023
11 checks passed
@jaswilli jaswilli deleted the input-type-password branch June 17, 2023 21:34
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.

attributes is not iterable error when using aria-query 5.2.1
2 participants