-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
thead and tbody classes do not appear in hugo_stats.json #7318
Comments
I have pushed a fix in a PR. My mistake, it seems that the net/html parser does not handle isolated thead elements etc. I have revised the strategy by just making everything a DIV (but storing the original element tag). |
thanks for the quick response. In fact I was going to update the issue it seems it is not related to thead or tbody, but all elements inside table. With <table class="cl1">
<tr class="cl3"><td class="cl4"></td></tr>
<tr class="cl6"><td class="cl7"></td></tr>
</table> I also get only |
Yes, I saw that -- this should handle it: #7320 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
yes
It seems that when I add classes on a thead or tbody element, they are not added to the list of classes the appear in hugo_stats.json. Classes added to other elements are discovered as expected.
I could not find in the code where is defined the list of html elements that are navigated during parsing. Could it be that thead and tbody are missing from this list ?
I could not find an explanation to what I observe other than a special case regarding thead and tbody.
when html contains
only
cl1
appears in hugo_stats.jsonThe text was updated successfully, but these errors were encountered: