Usage of duplicate id values in nav menu #4256
Labels
bug
This label could be used to identify issues that are caused by a defect in the product.
Priority-Medium
Expected resolution time - up to 1 month.
released
Indicate that an issue has been resolved and released in a particular version of the product.
Description
Using Neve without any plugins enabled on our staging site adds to the HTML tree of the nav menu duplicate id values, once for the desktop view and once for the mobile view. An example is id="secondary-menu" if used both on desktop and mobile view.
This leads to errors by the W3C Validator and potential downgrade of SEO. It's also semantically incorrect to use the same id for two elements. And it may lead to problems with CSS, where the same selector is applied both on desktop and mobile view.
The id's should either be changed into a class or they should be renamed.
Step-by-step reproduction instructions
(example of a staging site with Neve only, no plugins, is at https://www.maxsel.de/technicalseo/)
Screenshots, screen recording, code snippet or Help Scout ticket
No response
Environment info
https://pastebin.com/Hw1e9caF
Is the issue you are reporting a regression
No
The text was updated successfully, but these errors were encountered: