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

TypeError in no-unsupported-elements-use-aria #10

Closed
erin-doyle opened this issue Apr 4, 2017 · 0 comments
Closed

TypeError in no-unsupported-elements-use-aria #10

erin-doyle opened this issue Apr 4, 2017 · 0 comments
Assignees
Labels

Comments

@erin-doyle
Copy link
Collaborator

When using rule: no-unsupported-elements-use-aria I am getting the following error:

Uncaught (in promise) TypeError: Cannot read property 'reserved' of undefined

The error is occurring when the tag it's testing is a <g> tag which is a child of an <svg> tag. The code that is blowing up is here:

const reserved = DOM[tagName].reserved || false

It seems that the <g> tag is not found in the DOM object. I think maybe there needs to be a try/catch of check on existence before checking for reserved. There are apparently a lot of possible children tags of <svg> elements, so it seems this could come up more often.

@erin-doyle erin-doyle added the bug label Apr 6, 2017
@erin-doyle erin-doyle self-assigned this Apr 9, 2017
erin-doyle pushed a commit that referenced this issue Apr 24, 2017
erin-doyle pushed a commit that referenced this issue Oct 15, 2017
… object but does not exist in the DOM object an exception was being thrown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant