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
v2.2.0 role=doc-toc
does not follow the spec
#653
Comments
Maintainer of the W3C HTML checker (validator) here. I can confirm that using |
Thanks for bringing this to my attention - I have released version 2.2.1 that fixes this problem. |
@gettalong Thanks! Might be worth checking the rest of the |
Hi! I'm the person who contributed the change with ARIA roles, and thereby introduced this bug. I'd like to look into adding HTML validation as part of the CI to avoid the introduction of such bugs in the future. @gettalong would you accept a PR in that direction? It seems that @XhmikosR did you use the W3C HTML Validator? |
I did try the W3C HTML checker with the following input with Tested document<!DOCTYPE html>
<html lang="en">
<head><title>Test</title></head>
<body>
<h1>No header id</h1>
<h1>without header id</h1>
<div>
some <span>*para*</span>
</div>
<div>
<p>some <span><em>para</em></span></p>
</div>
<p>Some text<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote">10</a></sup>.</p>
<div class="footnotes" role="doc-endnotes">
<ol start="10">
<li id="fn:ab" role="doc-endnote">
<p>Some text. <a href="#fnref:ab" class="reversefootnote" role="doc-backlink">↩</a></p>
</li>
</ol>
</div>
</body>
</html> |
@MaximeKjaer Thank you for chiming in and following up on this! Yes, I would accept such a PR. |
@MaximeKjaer I only use the official validator, mostly through its npm package |
Hello!
I just updated locally to kramdown v2.2.0 and I'm getting a new HTML validation error.
So, it seems the specs only allow
role=doc-toc
fornav
andsection
but notul
.I can ignore the warning, but I thought I'd mention the issue.
The text was updated successfully, but these errors were encountered: