-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Page List block inside navigation block will result invalid html #60500
Comments
Hi, |
The issue still exists. Even with the latest Gutenberg plugin installed. You can verify it via WordPress Playground https://playground.wordpress.net/?plugin=gutenberg |
Fix issue with double ul-elements. Fix WordPress#60500
I did PR that fixes this. You can test it in Playground PR Reviewer |
Actually my solution will introduce another issue: the |
Seems like |
Hi, |
This is still an issue even with WordPress 6.7 RC2 and the new twentytwentyfive theme. You can test the issue in RC2 playground. I updated the pr since it had merge conflicts. Any change to get this fixed before WP6.7 release? |
Description
page-list
-block has features likeshowSubmenuIcon
andopenSubmenusOnClick
that comes from the context provided bynavigation
-block, so I would assume that it's completely valid to use page-list block inside of navigation block. But doing so, will result invalid html since both navigation and page-list blocks starts with<ul>
-element. So we would have<ul><ul><li>
… structure, which is not allowedStep-by-step reproduction instructions
The live demo of this issue is in WordPress Playground: https://playground.wordpress.net/. Inspect the navigation in header.
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: