-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Divider element inserting extra <li> #3
Comments
The closing is correct, there seems to be a missing . Because the un-ordered list was not closed the validator sees no open in the current list only. This is interesting because I noticed and solved this issue in an earlier commit, and I don't get the same result. Are you using the most recent version of the file? |
Yes, I'm using version 1.2.1. If it helps, here's the link where you can see this live: http://www.aieseckhi.com/ |
Interesting, I found the issue. The way WordPress walkers work is one function generates the menu item and another adds the closing I had included the closing for the divider in the function. It seems Chrome automatically removes extra tags in the source so I didn't initially notice it, thanks for pointing it out. Version 1.2.2 is up now! |
Great, issue resolved. I noticed this in IE, Firefox & Chrome were hiding it. Thanks! |
No problem, I'm glad to see how someone is using it! |
Hi
I've noticed that when I add a divider element to the menu, the output contains an extra
</li>
and messes up the layout, not to mention a validation error.Here's a shot of the menu structure:
Here's the output:
Now according to the W3C validator, the
</li>
just before<li id="menu-item-72">
is and "end tag for element "LI" which is not open."When I remove the Divider from the Wordpress menu, the validation error is gone. I've never really understood how the Walker works, so I have no clue what's going on here - any advice?
Thanks!
The text was updated successfully, but these errors were encountered: