Open
Description
Description
page-list
-block has features like showSubmenuIcon
and openSubmenusOnClick
that comes from the context provided by navigation
-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 allowed
Step-by-step reproduction instructions
- Add navigation block
- Add page-list block as inner block of navigation
- check the html tags
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
- WordPress 6.5
- Twenty Twenty-Four
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Needs further testing to be confirmed.Needs further testing to be confirmed.Affects the Navigation BlockAffects the Navigation BlockGives the original author opportunity to update before closing. Can be reopened as needed.Gives the original author opportunity to update before closing. Can be reopened as needed.An existing feature does not function as intendedAn existing feature does not function as intended