Some famous websites are failing on the latest browsers because they have been concatenating strict mode scripts with non-strict mode scripts. This causes the...
var i; for ( i=0 ; i<10 ; i++ ) { /* some code */ } The i++ here is straight from K&R C, and so should be expected! I haven't found a previous remark about...
I've always found, the fact that the validator's code fails to validate to be entertaining in strange and perverse way. And the fact that it is minified as a...
I want to create a small database collecting all of the ways people have found to run JSLint. You have developed various ways of running it from command lines,...
My guess would be ”no”, but I’m no authority on the matter. I will add on behalf of a friend who has likewise been unable to access the group for more...
Actually, it seems you made some errors in a couple of the tests that could invalidate the results. In ‘array literal joining char’ and ‘array literal...
JSLint allows new Array(3), but warns on new Array(3, 4) and new Array("3"). Someone wrote to me that they were confused by that. He was confused because he...
In "JavaScript: The Good Parts", page 42, a cascade is formatted very nicely. In my example, I have: var htmlToExamine = returnvalue. replace(/^Success/, "")....
JSLint is complaining that my for...in loop is not filtered. The docs suggest the following format: for (name in obj) { if (obj.hasOwnProperty(name)) { ... } }...
given the following snippet where » are tabs (4 space) and ---------- are begin and end markers. (the blank line after the start marker is intentional) ... ...
Hello, Line 1481 of fulljslint.js warns us of potentially dangerous comments. It does this using a regular expression in the variable "ax", defined on line...
Hello, Line 1786 of fulljslint.js is part of an attempt to detect and validate the closing of an HTML comment: -->. It reads as: if (s[i + 2] !== '>') { ...
Using JavaScript I am attempting to forcefully inject double quote characters into the parentheses of url fragments in CSS, so that url(jslint.com) becomes...
i have found a bug. when running the following code through JSLint, it gives me the error below. /*global define: false */ /*jslint newcap: true, onevar:...
The error is correct. Specifically there needs to be a space between the single quote character and the plus sign. /Jakob Fra: jslint_com@yahoogroups.com...
I've combed the web for answers to these questions, but haven't found them ... even in the ES5 spec which surely contains the answers. In ES5 what is the...
I've read that in ES5, accessing the global object is a runtime error. Can someone explain what "accessing the global object" means? Does it mean that "this"...
JSLint now accepts the "use strict" declaration. This is in anticipation of the next edition of ECMAScript. Strict mode will reject many problematic features...
JSLint doesn't barf if the last case doesn't end in a break or return. For example JSLint believes this is ok: switch (somevar) { case 'a': // some code ...
JSLint highlights this as a problem: /* * My Library Descriptive Comment * some descriptive content here */ with a message about mixed tabs and spaces...
running jslint over some css which includes the svg element as a selector gives the warning: "Expected a tagName, and instead saw svg." a similar thing happens...
Hi there, Can you please explain why this is a "strict violation"? "use strict"; (function (window) { // ... }(this)); I've seen this as a common technique...
JSLint requires that no whitespace occurs between . and a property name. JSLint requires that no whitespace occurs before [ or ( when they are used for...
Hello JSLinters, JSLint complains when a FOR IN loop has no IF statement wrapping its body to filter unwanted properties from prototype: var i, obj = {a: 1, b:...