Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#32424 closed defect (bug) (invalid)

No space between attribute-value pairs in anchor elements in wp_nav_menu

Reported by: bijibuji's profile bijibuji Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Menus Keywords:
Focuses: Cc:

Description

I used W3C Markup validator to check if my markup has any mess with it and it reported:

No space between attributes.
...<a class="items"href="http://...

That is how my markup renders in google chrome 42.0.3 on windows 8.1 (using inspector).

so I had a look at wp-includes/nav-menu-template.php file under line 144 where the markup is generated but I did not find the problem.

Change History (2)

#1 @obenland
10 years ago

  • Focuses ui template removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 4.2.2 deleted

Hi @bijibuji, in line 147 there is a space being prepended to all attributes, so it's likely not a core bug. Feel free to ask in the support forums if your theme or a plugin might be responsible for that.

#2 @SergeyBiryukov
10 years ago

  • Component changed from Themes to Menus

There is no class="items" in the core markup, it likely comes from a plugin or theme.

Note: See TracTickets for help on using tickets.