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 issues with using boolean attributes on SVG tag #2613

Closed
wants to merge 1 commit into from
Closed

Fix issues with using boolean attributes on SVG tag #2613

wants to merge 1 commit into from

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Oct 7, 2020

Currently, when you add an attribute, like aria-hidden="true" to an SVG tag, the value won't be returned. As pointed out by Lighthouse in the related issue, this is considered to be invalid. (it would be returned simply as aria-hidden)

However, with this pull request, the value of true will now be output like it should be: aria-hidden="true".

This PR fixes #2605.

@duncanmcclean
Copy link
Member Author

duncanmcclean commented Oct 8, 2020

Looks like somebody didn't check the tests when they made the change 👀 🙈

I'll fix that later.

@jasonvarga
Copy link
Member

Noticed we needed some changes around this stuff anyway. Figured it'd be quicker to just do it than explain it. Thanks though!

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

Successfully merging this pull request may close these issues.

SVG tag outputs aria attributes without a value
2 participants