Title: wp-includes widgets validation error
Last modified: August 18, 2016

---

# wp-includes widgets validation error

 *  Resolved [Nurice](https://wordpress.org/support/users/nurice/)
 * (@nurice)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wp-includes-widgets-validation-error/)
 * I’m getting a couple of W3C validation errors on my site and I traced them to
   WP-includes/widgets.php. This only occurs when I use the categories widget with“
   Show as dropdown” checked. From widgets.php:
 *     ```
       <script lang='javascript'><!--
           var dropdown = document.getElementById("cat");
           function onCatChange() {
       		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
       			location.href = "<?php echo get_option('home'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
       		}
           }
           dropdown.onchange = onCatChange;
       --></script>
       ```
   
 * W3C says need to change <script lang=’javascript’> to <type=”text/javascript”
   >. I’ve done that many times with other js errors and it always clears stuff 
   up. But WordPress files are sacred ground for me. I don’t fool with them unless
   you guys tell me it is safe. I know the folks who worked on the 2.3 version are
   the best.
 * Could someone please try a validation of my site and tell me if this is really
   an error in the wp file or something on my site:
    [http://www.eyesapart.com/](http://www.eyesapart.com/)
 * and the validator is here:
    [http://validator.w3.org/](http://validator.w3.org/)
 * Thanks,
    Lois

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wp-includes-widgets-validation-error/#post-633896)
 * I believe this has been reported via [Trac Ticket 5168](http://trac.wordpress.org/ticket/5168),
   and there is a patch.
 *  Thread Starter [Nurice](https://wordpress.org/support/users/nurice/)
 * (@nurice)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wp-includes-widgets-validation-error/#post-634149)
 * This is the first I’ve heard of Trac Tickets, but thanks very much for the link.
   I’ll get the patch in place!

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

The topic ‘wp-includes widgets validation error’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [Nurice](https://wordpress.org/support/users/nurice/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/wp-includes-widgets-validation-error/#post-634149)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
