Hi, while checking a script and reducing a lot of flaws in it with the webjslint, the following message came up: Problem at line 130 character 34: 'escape' is...
... absolutely - that was my solution too ;-) I just thought every browser implements that extension to the ECMA Script and thus expected it to disappear with...
The documentation suggests that this should work: /*jslint newcap: true */ or /*jslint newcap: false */ However, JSLint itself complains about this being a...
Maybe I am a bit out of topic, but the subject is the foundation of JSlint. :) Reading "Top Down Operator Precedence" paper [1] and trying to use his ...
When JSLint encounters a serious error, it stops. Is it possible to program in a error handling statement that breaks out of that block, outputs that lines x-y...
Hi, JSLint forbids the following form: var a = var b = foo(); // Expected an identifier and instead saw 'var'. Is this intentional? It can occasionally be...
Daniel Cassidy
mail@...
Dec 16, 2008 2:24 pm
327
Hi, With 'assume browser' turned on, JSLint rejects the following: if (n instanceof Document) { // 'Document' is undefined // ... } Shouldn't the DOM classes...
I believe the var declaration is not legal as the right side of a statement; it would require 'var b' to return a value, which it does not. Try: var a, b; a =...
... Uhh... sorry. It is of course a syntax error. Chalk that one up to temporary insanity on my part. I was thinking of another language where "var b" is an...
Daniel Cassidy
mail@...
Dec 16, 2008 4:02 pm
332
... Try this: alert(document); alert(Document); Javascript is case sensitive!...
Yes, JS is case sensitive; document is referring to a specific object that exists in all browsers, while Document refers to the class that object should be an...
I made two changes to the way JSLint deals with HTML: 1. <!-- --> comments have been relaxed to allow the commenting out of HTML content. JSLint will complain...
What about "let" keyword? https://developer.mozilla.org/en/New_in_JavaScript_1.7 For instance, for (let i = 0; i < 10; i = i + 1) { // loop stuff with local...
... Of course not. let is not in the standard, and will not be in the next edition. If you care about standards compliance and portability, you will avoid it....
... Thanks... I know that... but I saw an intensive use of let keyword in the Mozilla extension Ubiquity. And I learn by example... :) Regards, Alberto...
I guess we will have to fork jslint to have a -mozilla option ;) On Tue, Dec 23, 2008 at 1:12 PM, santini.alberto ... [Non-text portions of this message have...
Thanks Anton, (forwarding to the jslint group) YSlow has an older version of JSLint, so I pasted your test code into jslint.com and got a different error...
... The var statement var a = b = 123; is a common error, with people thinking they are declaring two local variables but in reality declaring one local...
Hi, I just checked the following small line of code with jslint: document.write('hello'); And I got this error : "document.write can be a form of eval." I...
... error. eval comes in several forms, and is usually to be avoided. document.write is the worst of them. If you wish to ignore this advice, check the...
Which ActiveX Object should I search for to cover for versions IE 6-8? I was told IE switched their ActiveX Obkect in IE 7 from "Microsoft.XMLHTTP" to...
This function: function isValidBZ (val) { return /^(?:[1-9]\d*|0)$/.test(val); } triggers the JSLint warning "Wrap the /regexp/ literal in parens to...
... This case is decidable, which is why JavaScript parsers are able to work, but there are problems in the language because it can be difficult to determine...