WordPress.org

Forums

[Plugin: Collapsing Categories] making html valid (5 posts)

  1. jingquan
    Member
    Posted 5 years ago #

    I'm stuck. I can't find this ul tag inside the php, you can see from the error it's missing a qoute for the id.

    Line 446, Column 47: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
    <h2 class="widgettitle">Categories</h2><ul id=widget-collapscat-2-collapsCatList>

    Could anyone show me where can i add the qoutes back ("" or ''), thanks.

    http://wordpress.org/extend/plugins/collapsing-categories/

  2. Robert Chapin
    Member
    Posted 5 years ago #

    It seems to be causing several validation problems for me too.

  3. Robert Chapin
    Member
    Posted 5 years ago #

    collapscatwidget.php line 19

    echo "<ul id=" .  $this->get_field_id('collapsCatList') . ">\n";

    Change to

    echo "<ul id=\"" .  $this->get_field_id('collapsCatList') . "\">\n";
  4. Robert Chapin
    Member
    Posted 5 years ago #

    Here is my workaround for the remaining issues (not compatible with multiple widget instances):

    in collapscatwidget.php

    Delete lines 19 & 25.

    in collapscatlist.php

    at line 307 (after defaults.php) add

    echo "\n<ul id=\"collapsCatList\">\n";

    at line 614 ...

    //  echo "    </ul> <!-- ending collapsCat -->\n";

    ... change to

    echo "    </ul> <!-- ending collapsCat -->\n";

    Front page is now valid.

  5. Murielle
    Member
    Posted 5 years ago #

    Thanks a lot
    It works perfectly
    I've been searching for awhile with no result...
    And now it validates!

Topic Closed

This topic has been closed to new replies.

About this Topic