Skip to content

Conversation

@hosiet
Copy link
Contributor

@hosiet hosiet commented Oct 31, 2025

Originally all generated pages have the following error in HTML validator (e.g., https://validator.w3.org/nu/):

Element div not allowed as child of element button in this context. (Suppressing further errors from this subtree.)

From line 1, column 2805; to line 1, column 2825

> <button><div class="navicon"></div>

We replace <div> with <span>, and also set display: inline-block to fix this validation error and not to alter the existing visual layout.

Originally all generated pages have the following error in HTML
validator (e.g., https://validator.w3.org/nu/):

Element div not allowed as child of element button in this context. (Suppressing further errors from this subtree.)

From line 1, column 2805; to line 1, column 2825

> <button><div class="navicon"></div>

We replace <div> with <span>, and also set display: inline-block
to fix this validation error and not to alter the existing visual layout.
@hosiet hosiet force-pushed the pr-fix-html-validation-div-in-button branch from ca7f589 to 971972b Compare October 31, 2025 21:28
@rjzupkoii
Copy link
Collaborator

Thanks for the PR!

@rjzupkoii rjzupkoii merged commit 2ffa540 into academicpages:master Nov 3, 2025
@hosiet hosiet deleted the pr-fix-html-validation-div-in-button branch November 3, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants