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

Incorrect warning about missing heading when an Article has Aside as the first child #1272

Closed
PekkaAstala opened this issue Nov 22, 2021 · 0 comments · Fixed by #1471
Closed

Comments

@PekkaAstala
Copy link

For the following content:

<!DOCTYPE html><html lang="en-GB"><head><title>Test</title></head><body>

<article>
 <aside>This article was nominated best article of 2020s</aside>
 <h1>Identifying header</h1>
 <p>Content</p>
</article>

</body></html>

There is a warning that the article lacks an identifying header.

  • The issue is not having an aside (if the aside is moved to come after the h1, the warning disappears).
  • The issue is also not that there is content before the h1 (if there is a paragraph element before the h1, there is no warning).

So there appears to be a warning specifically when an aside element appears before the header. Nothing in the specifications of either aside or article elements seems to justify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants