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:...
Anyone care to share opinions on the JavaScript library Underscore.js at http://documentcloud.github.com/underscore/? It looks cool to me. I'm wondering if...
Suppose I do the following things: - write a constructor function - set the prototype property of my constructor function to refer to another object - create...
Hi, I've got a suggestion for a small addition. This is directly taken from using the feed validator at http://feedvalidator.org/. With that service, you...
Two small issues popped up recently in my code that would probably be worth taking a look at: 1. `last-child` isn't recognized as a pseudoclass. Adding it to...
Hello, One piece of code which jslint fails on is something like the following switch(a) { case 2: return "case 2"; case 3: if (b) { return "case 3b"; } else {...
I've been working hard to come up to speed on JavaScript (the right way) and I was delighted to find jslint and have been actively working on how I could ...