Title: [Plugin: Collapsing Categories] making html valid
Last modified: August 19, 2016

---

# [Plugin: Collapsing Categories] making html valid

 *  [jingquan](https://wordpress.org/support/users/jingquan/)
 * (@jingquan)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-making-html-valid/)
 * 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/](http://wordpress.org/extend/plugins/collapsing-categories/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Robert Chapin](https://wordpress.org/support/users/miqrogroove/)
 * (@miqrogroove)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-making-html-valid/#post-1242829)
 * It seems to be causing several validation problems for me too.
 *  [Robert Chapin](https://wordpress.org/support/users/miqrogroove/)
 * (@miqrogroove)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-making-html-valid/#post-1242830)
 * collapscatwidget.php line 19
 *     ```
       echo "<ul id=" .  $this->get_field_id('collapsCatList') . ">\n";
       ```
   
 * Change to
 *     ```
       echo "<ul id=\"" .  $this->get_field_id('collapsCatList') . "\">\n";
       ```
   
 *  [Robert Chapin](https://wordpress.org/support/users/miqrogroove/)
 * (@miqrogroove)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-making-html-valid/#post-1242831)
 * 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.
 *  [Murielle](https://wordpress.org/support/users/murielle/)
 * (@murielle)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-making-html-valid/#post-1242868)
 * Thanks a lot
    It works perfectly I’ve been searching for awhile with no result…
   And now it validates!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Collapsing Categories] making html valid’ is closed to new replies.

## Tags

 * [blogyul](https://wordpress.org/support/topic-tag/blogyul/)

 * 4 replies
 * 3 participants
 * Last reply from: [Murielle](https://wordpress.org/support/users/murielle/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-making-html-valid/#post-1242868)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
