JSLint doesn't like vendor extensions in pseudo-selectors, even with the `css` options toggled. I'm thinking specifically of `button:-moz-focus-inner`, which...
Hi Douglas, I've got an idea here. I don't know if you've already considered it, but you seem to have implemented this idea to some degree with locating...
Is that possible? IMHO, curly braces all over the place, even where they are not needed, make readability worse. But that's my opinion, and I don't want to ...
I'm putting together a presentation to highlight the sort of bugs that JSLint can help you avoid, I guess this focuses on obvious bugs in code caused by things...
I have some legacy JavaScript that I am trying to clean up, which of course involves heavy linting [;)] The code was all global, of course, which I have...
Hi I'm running a slightly modified jslint over a bunch of our javascript files and have noticed that if our code defines an array such as var a = new...
Hi Doug, I was curious as to why using "_" in identifiers (e.g. to convey that a function might be private as opposed to be publicly accessible) is considered...
There is a new option, Tolerate ES5 syntax. If you check this option, JSLint will accept the new get/set syntax in object literals. It will require that the...
Chained functions are quite popular and offer some flexibility, with a sometimes lack of readability. Currently, JSLint will accept this as accurately...
Hi Team JSLint, I understand the reluctance (or lack of time!) for jslint to officially support javascript getters and setters. And I was a bit too lazy to...
Why does JSLint complain when a function argument is used as variable in a for in loop? ex: (function () { var foo = function (bar) { var o = {}; for (bar in...
How about a little lighthearted fun at the expense of our favorite guru? http://crockfordfacts.com/ My favorite fact so far: "Douglas Crockford's code works...
JSLint has a new option, Assume Windows. It predefines the following global variables: /*global ActiveXObject: false, CScript: false, Debug: false, Enumerator:...
Just came across some code which was overriding some functionality from the jquery datepicker. The code uses this construct: var a = b = c; which happens to...
I'd just like to report what appears to be a minor typo in the documentation. In http://www.jslint.com/fulljslint.js on line 121 it describes the section on...
Hi When using the JSLint to check jscripts, why do I get an error messages for known and defined JScripts objects like 'ActiveXObject', 'Enumerator39; and for...
Many languages allow a convenience in scripting that allows an && to be used as flow control. var foo = [1,2,3,4]; foo[0] && fop = foo.shift(); //assigns the...
Many browsers barf when an object key is a reserved word. Sure, they should be able to figure out that we are in an object.... But IE can't.Example: var foop...
Hi, checking this HTML fails because of the + in type: <link rel="alternate" type="application/rss+xml" title="" href="" /> (same with atom+xml) Without, the...
Hi everybody, I was wondering how to define my root namespace in "strict format" Normally i use the following code: /*global YAHOO, MYNS */ if (!this.MYNS) { ...
Here is a lisp procedure that simply adds 'a' to the absolute value of 'b': (define (a-plus-abs-b a b) ((if (> b 0) + -) a b)) I think this is beautiful, and I...
The code snippet below doesn't give any errors or warnings. But return with and without a value is used. Shouldn't that at least issue a warning? "use strict";...
I wish JSLint had an option that would allow code like this: if (!someVariable) return; I understand the danger of allowing code without braces like: if...
Not a JSLint question, but I know there are really knowledgeable JavaScript developers on this list ... Why can't I add methods to the prototype of the...
When I don't actually need the object instance, I enclose my "new Xxxx()" statements in parenthesis to keep JSLint happy and I assumed some JavaScript...
I have already defined YAHOO and YUI as accepted global variables but JSLint still warns me that "type is unnecessary" in <script> tags. I've seen the messages...
jslint doesn't expect to see new String, but I need it because I want to set a property of the string: var str = new String('somestring39;); str.id = 123; Or is...