JQuery file doesn't validate

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
Post Reply
HansMerkl
Rank 0 - Newcomer
Posts: 9
Joined: Tue Apr 12, 2005 12:10 pm

JQuery file doesn't validate

Post by HansMerkl »

Hi,

When I validate the official jQuery files (http://jqueryjs.googlecode.com/files/jq ... 2.6.min.js) HTML Validator raises this error:

1. Error in line 33: [JavaScript] html error: unable to find end of script tag

Is this a problem with jQuery or with HTML Validator?

Thanks

Hans
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch »

Hello,

This looks like it could be an issue with JavaScript Lint, the third party program that CSE HTML Validator uses for JavaScript linting.

You may want to report it to the developer(s):
http://www.javascriptlint.com/

Sorry I can't be more helpful on this.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale »

Hi Hans,

When I first tried JavaScriptLint with jQuery (debug versions) I found that the coding style of jQuery was not really compatible with what jsl.exe is doing. It's not that jQuery is wrong, it's just a different philosophy.

I put ignore statements

/*jsl:ignoreall*/

/*jsl:ignore...

into the jQuery code so that JavaScriptLint would ignore it.

I don't remember the precise warnings and I'm pretty sure that the minified version would give different warnings to the "readable code" version.

I see that both Nokia and Microsoft are supporting jQuery so I think it will be here for some time!
Post Reply