Title: Javascript validation errors
Last modified: August 18, 2016

---

# Javascript validation errors

 *  Resolved [polimom](https://wordpress.org/support/users/polimom/)
 * (@polimom)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/javascript-validation-errors/)
 * I’ve (finally) validated most of my errors. (Those nested sidebar links are a
   bear, eh?!!)
 * However, I am left with 13 errors – some of which are “warnings” – over which
   I’m pretty much powerless, I think. The sources for the error code(s) are stat
   sites, which generate and provide the code I’m supposed to use.
 * I don’t know the first thing about javascript. Has anyone else had this problem?
   And what’s the difference between an error and a warning?
 * [http://www.polimom.com](http://www.polimom.com)
 * Thanks!!!

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

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/javascript-validation-errors/#post-344243)
 * One quick thing to look at with javascript, in your source, is how it is “declared”
   in the script tag. Experiment with using attributes like:
 * `<script language="JavaScript" type="text/javascript" src="whateveryoursourcemightbe"
   >`
 *  Thread Starter [polimom](https://wordpress.org/support/users/polimom/)
 * (@polimom)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/javascript-validation-errors/#post-344248)
 * Hmmm….
 * I moved the problematic scripts to a different spot on the index.php. I’m now
   down to 4 errors (!), all of which seem to be complaints about “general entity
   java”.
 * ?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/javascript-validation-errors/#post-344249)
 * Use CDATA tagsets to surround the js codes.
 * The opening one will take the form `//<![CDATA[` and be located immediately beneath
   the opening `<script>` tag line. The closing one will take the form `//]]>` and
   be located immediately above the closing `</script>` tag line.
 * This may need tweaking a bit depending. Post back if you’re still having problems.
 *  Thread Starter [polimom](https://wordpress.org/support/users/polimom/)
 * (@polimom)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/javascript-validation-errors/#post-344254)
 * YYIIPPPPEEEEE!!!!! It validates!
 * (There were a couple of amersands in the code I’d missed)
 * Thanks for the hints and patience.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/javascript-validation-errors/#post-344255)
 * There you go! Glad it’s working/valid now….

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

The topic ‘Javascript validation errors’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/javascript-validation-errors/#post-344255)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
