When you use the WordPress menu system and wp_nav_menu()
function in your theme, menus will by default get wrapped in a <DIV>
container. Since wp_nav_menu()
displays list items, this ends up outputting invalid HTML. A <DIV>
is not allowed as a direct descendant of a <UL>
element.
Tag Archives: validation
If you tried adding the Facebook Like button to your website and you’re using HTML5, be prepared for invalid markup failures in your HTML validator. The button should still render in browsers, but the XFBML tags are not considered valid HTML5. Thus, when you validate as HTML5, you’ll see validation errors like this:
If you’re using GreyBox in an HTML5 document you are likely to receive an error validating your HTML document.
The error looks something like this: