Opened 6 years ago
Closed 6 years ago
#45301 closed defect (bug) (invalid)
Menu ID is missing from li element when two menu containers have the same menu set
Reported by: | BackuPs | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.0 |
Component: | Menus | Keywords: | close |
Focuses: | Cc: |
Description (last modified by )
Hi
I think there is a bug. When you have menu and set that same menu to two menu containers the second one does not have the menu id for the li element. It is missing
Tested with wordpress default theme 20-17 and set the same menu to the main menu and the social menu container. When done so the social menu container has no ID field on each li element. It is completely missing
See images attached
How to fix this?
Attachments (3)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Hi @BackuPs, welcome to WordPress Trac! Thanks for the report.
This is intentional, as duplicate ID attributes is invalid HTML. See the discussion in #13976.