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

[BUG] ToC: <div> not allowed inside <summary> element #550

Closed
danielfdickinson opened this issue Sep 2, 2021 · 0 comments · Fixed by #552
Closed

[BUG] ToC: <div> not allowed inside <summary> element #550

danielfdickinson opened this issue Sep 2, 2021 · 0 comments · Fixed by #552
Labels
bug Something isn't working

Comments

@danielfdickinson
Copy link
Contributor

As per Mozilla Developer Network detail summary element page only 'phrasing elements' and/or one element of heading content are allowed inside a <summary> element.

Once again found by (valid) html validator complaint (I turn off the parts that are about opinions vs. HTML standards).

The table of contents summary currently contains a <div>.

I'm going to experiment with a styled <span>, since I am guessing there is a reason it's not an <h2> although I don't know what that reason is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant