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

Clean up extraneous attributes to pass HTML validation. #529

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

EreMaijala
Copy link
Contributor

This patch removes unnecessary role="row" attributes from table rows and the tabindex="-1" attribute from focus spans allowing the results to pass local HTML validation (run e.g. with Web Developer extension for Firefox or Chrome).

Removing the role="row" attribute fixes the following error:
The “role” attribute must not be used on a “tr” element which has a “table” ancestor with no “role” attribute, or with a “role” attribute whose value is “table”, “grid”, or “treegrid”.

Removing the tabindex should not affect functionality since it defaults to -1, but it avoids putting that in the resulting HTML which would cause the following error:
An element with the attribute “tabindex” must not appear as a descendant of the “button” element.

If there's something I'm overlooking, please let me know and I'll try to fix it. :)

This patch removes unnecessary role="row" attributes from table rows and the tabindex="-1" attribute from focus spans allowing the results to pass local HTML validation.
@vercel
Copy link

vercel bot commented Jun 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
cookieconsent-docs ⬜️ Ignored (Inspect) Jun 12, 2023 2:19pm

@netlify
Copy link

netlify bot commented Jun 9, 2023

Deploy Preview for cookieconsentv3-playground canceled.

Name Link
🔨 Latest commit a0b9aef
🔍 Latest deploy log https://app.netlify.com/sites/cookieconsentv3-playground/deploys/648729733ff2fd0008d827e2

Copy link
Owner

@orestbida orestbida left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your contribution!

@orestbida orestbida merged commit a21b4e5 into orestbida:v3.0-beta Jun 12, 2023
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.

2 participants