Skip to content

page-list block inside navigation block will result invalid html #60500

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

  1. Add navigation block
  2. Add page-list block as inner block of navigation
  3. 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

Screenshot 2024-04-05 at 11 08 35

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

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Status] StaleGives 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.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions