After tracking down a bug in 0.8.5.3 of the HTML Validator Firefox extension, I decided to try out JSLint on some of the code in it. It doesn't work because of...
... Early on JSLint had support for some of JScript's deviations. I decided to remove that because we are better off sticking to the portable standard. I think...
Do you use http://developer.yahoo.com/yui/yuitest/ on JSLint, some other test methodology, or none? I have very little automated testing with JavaScript, and...
I have added CSS2 support to JSLint. This was motivated by the security needs of ADsafe. Only by fully parsing the CSS content on a page can we be confident...
In case you were looking for workaround suggestions, a # immediately preceding a property is ignored by IE but not by Firefox. - it would be nice if when...
... I feel like I've opened a can of worms. I'm not confident that a Code Quality tool makes sense for CSS. The fact that a form is tolerated by only one brand...
... Code ... by ... Very good point... the problem is that in Javascript, functionality in "forms that should be avoided" can be accomplished a variety of...
My usual report on JSLint itself: 1467: Unexpected space after '('. 1494: Unexpected space after '('. 2443: Expected 'warning' to have an indentation of 16...
Why does JSLint complain that "type is unnecessary" when it sees a script element with a type attribute in an html file? Is there any way to turn this...
That doesn't seem helpful. Stricly speaking, "text/javascript" *is* a valid MIME type. It is listed by IANA. It is listed as "obsolete" though, with a...
Correcting myself here. "Standard" is not the correct word. "Recommendation" is. But W3C recommendations do have a lot in common with standards, and we would...
Many of the "features" in JSLint have nothing to do with standards or even widely-used practices. It's a tool written by one guy to make sure things are the...
This is true. JSLint is all about code quality, not standards. I understand that completely. But requiring that users of the tool make their html files...
If you're writing an HTML & javascript based application for Adobe AIR, type="application/x-shockwave-flash" is also a valid value (when linking in a .swf...
Hello, ... function. ... Personally I don't think this practice should be recommended. It contradicts the related recommendation in the Code Conventions ...
What's wrong with: var var1, // comment var2, // comment var3; // comment It usually works for me. /Jakob ... From: ojacquem To: jslint_com@yahoogroups.com ...
Hi List, I was surprised to run JSLint on some of my code today only to see the following message: 'hasOwnProperty' is a really bad name. Stopping, unable to...
Daniel Cassidy
mail@...
Oct 20, 2008 5:50 pm
276
Hi List, On Mon, Oct 20, 2008 at 6:50 PM, Daniel Cassidy ... Patch here: http://www.danielcassidy.me.uk/misc/fulljslint-hasOwnProperty.patch Thanks, Dan....
Daniel Cassidy
mail@...
Oct 20, 2008 11:48 pm
277
Ok now I understand your answer. You said that type is not mandatory with <script>. It seems that now we should use type="application/javascript" and not...
I'm trying to edit an existing codebase to make it pass JSLint verification so that it can be packed or minified safely. Mostly, my code requires small,...
Hi Douglas, On Thu, Oct 23, 2008 at 11:25 PM, Douglas Crockford ... Two reasons. The first reason is that I keep seeing very subtle bugs being introduced as a...
Daniel Cassidy
mail@...
Oct 23, 2008 11:12 pm
283
... this.foo = (typeof(foo) !== 'undefined') ? foo : true; See "Line Breaking" on the page http://www.jslint.com/lint.html Dan....
Daniel Cassidy
mail@...
Oct 23, 2008 11:20 pm
284
... I don't want to modify JSLint to satisfy a single, unnecessary, dubious use. I recommend that you change your variable name. And if you are trying to...