[resolved] XHTML Validator that ignores javascripts? (5 posts)

  1. tomhanna
    Posted 11 years ago #

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

  2. brainwidth
    Posted 11 years ago #

    Looks like your validation problems are all or nearly all caused by unescaped & in the javascript. See this thread on fixing the problem.

  3. tomhanna
    Posted 11 years ago #

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

  4. Lorelle
    Posted 11 years ago #

    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.

  5. tomhanna
    Posted 11 years ago #

    Thanks Lorelle. I almost put your name in the original post - I know you're the resident validation expert. :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.