Support » How-To and Troubleshooting » [resolved] Dynamic Sidebar and Markup Validation

[resolved] Dynamic Sidebar and Markup Validation

  • So I ran my site http://graphicscove.com/ through the W3 validator http://validator.w3.org/ and apart from all the other errors that I’m in the process of fixing 😉 I came across the dynamic sidebar code causing some error in the markup making it invalid.

    The code I’m using to generate the sidebar is:
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘footer_one’) ) : ?><?php endif; ?>

    <id="text-3" class="widget-container widget_text"><h3 class="widget-tit…

    An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).

    Shouldn’t it start with a <div id="" rather than just an <id="" as it’s giving me the above error in the validator.

    Am I right in thinking the dynamic sidebar code generates bad markup? Or am I missing something?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[resolved] Dynamic Sidebar and Markup Validation’ is closed to new replies.