Support » Everything else WordPress » XHTML Validator that ignores javascripts?

  • Resolved tomhanna


    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 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 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 for reference though this is really a general question that applies to several blogs.)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like your validation problems are all or nearly all caused by unescaped & in the javascript. See this thread on fixing the problem.

    Thanks for the suggestion with the problem. Cut the errors in half so far. 🙂

    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">

    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.

    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.