-
Notifications
You must be signed in to change notification settings - Fork 224
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
Nested main element in faq #3264
Labels
bug
Something isn't working
Comments
This was referenced Nov 30, 2022
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where to find the issue
Describe the issue
The FAQ page https://www.coronawarn.app/en/faq/ contains two
<main>
elements. This is not allowed:Steps to reproduce
Run https://validator.w3.org/ on https://www.coronawarn.app/en/faq/ and note the error messages:
also
Analysis
The first main definition comes from:
cwa-website/src/layouts/default.html
Line 30 in 5e37655
class="main-content"
attribute statement does not seem to be used.role="main"
since it is already implicitly assigned.The second main definition comes from:
cwa-website/src/partials/page-faq.html
Line 2 in 5e37655
main
class is not defined. It may not be needed.text-center
class is from bootstrap.Suggestion
Convert the
<main>
tag in src/partials/page-faq.html to a<div>
tag and combine this with the stray</div>
end tag.Review the attribute settings
class="main-content"
role="main"
in src/layouts/default.html in a separate issue.References
The text was updated successfully, but these errors were encountered: