Title: XHTML Validator that ignores javascripts?
Last modified: August 18, 2016

---

# XHTML Validator that ignores javascripts?

 *  Resolved [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * (@tomhanna)
 * [21 years ago](https://wordpress.org/support/topic/xhtml-validator-that-ignores-javascripts/)
 * I’ve done a search and am actually wanting some recommendations for tools that
   people here actually use.
    I tried to validate my blog at [http://validator.w3.org](http://validator.w3.org)
   and got almost 1000 errors, all repeats of “errors” related to javascripts that
   are repeated in each post. Things like “Line 89, column 89: cannot generate system
   identifier for general entity “q”” repeated over 900 times. I think I finally
   got all the real problems solved, but it’s hard to tell. Is there a validator
   out there that can be told to ignore javascripts or is there some setting I’m
   missing on w3.org? An online validator would be easiest since I maintain everything
   through the dashboard 99% of the time, but a desktop software option would also
   be fine.
 * (The specific blog I was working on is at [http://www.tom-hanna.org](http://www.tom-hanna.org)
   for reference though this is really a general question that applies to several
   blogs.)

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

 *  [brainwidth](https://wordpress.org/support/users/brainwidth/)
 * (@brainwidth)
 * [21 years ago](https://wordpress.org/support/topic/xhtml-validator-that-ignores-javascripts/#post-213201)
 * Looks like your validation problems are all or nearly all caused by unescaped&
   in the javascript. See [this thread](http://www.webmasterworld.com/forum91/353.htm)
   on fixing the problem.
 *  Thread Starter [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * (@tomhanna)
 * [21 years ago](https://wordpress.org/support/topic/xhtml-validator-that-ignores-javascripts/#post-213204)
 * Thanks for the suggestion with the problem. Cut the errors in half so far. 🙂
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [21 years ago](https://wordpress.org/support/topic/xhtml-validator-that-ignores-javascripts/#post-213205)
 * Take ALL of your javascript and put them into script files. Individually or all
   together, but check them to make sure that they aren’t conflicting with each 
   other. Create a function call for each one in the script file so that you can
   call them like this:
 * `<script type="text/javascript" src="weblog/blog.js"></script>
    <script type="
   text/javascript"> <!-- blog(); //--></script>
 * Using javascripts within your post is a challenge, and this is the only way they
   will work in WordPress. It also saves on bandwidth as it only loads once and 
   then works across multiple pages without loading every single time.
 *  Thread Starter [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * (@tomhanna)
 * [21 years ago](https://wordpress.org/support/topic/xhtml-validator-that-ignores-javascripts/#post-213532)
 * Thanks Lorelle. I almost put your name in the original post – I know you’re the
   resident validation expert. 🙂

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

The topic ‘XHTML Validator that ignores javascripts?’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 4 replies
 * 3 participants
 * Last reply from: [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/xhtml-validator-that-ignores-javascripts/#post-213532)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
