Title: Validation Error with Empty Widgets
Last modified: August 19, 2016

---

# Validation Error with Empty Widgets

 *  [minsc](https://wordpress.org/support/users/minsc/)
 * (@minsc)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/validation-error-with-empty-widgets/)
 * Hi,
 * I noticed that when I use widgets with my WP theme, particularly the _Recent 
   Comments_ widget, it could sometimes come up empty. That’s a problem in itself,
   but my actual complaint is that it generates an empty `<ul>` tag, causing the
   page to be invalid, because all `<ul>` tags require `<li>` tags inside. I would
   suggest generating an empty `<li>` tag when there are no recent messages to show.
 * Thanks,
    Alex

The topic ‘Validation Error with Empty Widgets’ is closed to new replies.

## Tags

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

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 0 replies
 * 1 participant
 * Last reply from: [minsc](https://wordpress.org/support/users/minsc/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/validation-error-with-empty-widgets/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
