... That's a blast from the past. JSLint now accepts it....
15
Douglas Crockford
douglascrock...
Apr 2, 2008 9:20 pm
When confronted with a number literal like .0725 JSLint no longer reports Don't use extra leading zeros '0725'. but it does report A leading decimal point can...
16
Douglas Crockford
douglascrock...
Apr 5, 2008 3:04 pm
I added a warning to the web page edition at http://www.JSLint.com/: WARNING: JSLint will hurt your feelings. I relaxed the ADsafe restriction on the [ ]...
17
Douglas Crockford
douglascrock...
Apr 8, 2008 11:31 pm
I have added a glovar option. When glovar: true, then var cannot be used to declare global variables. Fiann O'Hagan convinced me that many programmers have a...
18
Douglas Crockford
douglascrock...
Apr 9, 2008 11:51 pm
I relaxed ADsafe to allow limited access to the standard globals....
19
hass0002
Apr 10, 2008 2:32 am
... Do you think it would be a good idea to include a version comment in the JSLint source file? I'm working on something and I think it would be good to say...
20
Douglas Crockford
douglascrock...
Apr 10, 2008 3:28 am
... I use dates....
21
Cory Bennett
corynbennett
Apr 14, 2008 8:44 am
Hello, I got this error from jslint: Unsafe character. fn("FAILED—" + message); The '—' is char 226 or 0xe2. It is not ascii, but I was wondering why it ...
22
Douglas Crockford
douglascrock...
Apr 14, 2008 5:39 pm
... why it ... There are characters that are handled inconsistently in the various implementations, and so must be escaped when placed in strings, and must...
23
hass0002
Apr 15, 2008 5:30 am
Hi, I have created an MSBuild task that can be used to automate the process of running the JSLint tool on Javascript files. You can read about it on my blog at...
24
Douglas Crockford
douglascrock...
Apr 15, 2008 4:26 pm
I added arguments to the set of excluded members. The set now contains apply arguments call callee caller constructor eval prototype unwatch valueOf watch...
25
Douglas Crockford
douglascrock...
Apr 16, 2008 2:04 am
escape & unescape do not do url encoding correctly and they are not in the official standard. JSLint no longer accepts them. If you want JSLint to pass crappy...
26
Re Miya
remiya_ws
Apr 16, 2008 6:17 pm
... Hello Douglas, This is the first time I heard that escape and unescape do not do URL encoding correctly, and are not in the official standard. Where can I ...
27
Douglas Crockford
douglascrock...
Apr 17, 2008 6:08 pm
The ECMAScript standard reserves the following words: abstract boolean byte char double final float implements int interface long native package private...
28
Douglas Crockford
douglascrock...
Apr 17, 2008 6:30 pm
... See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsmthescape.asp...
29
Douglas Crockford
douglascrock...
Apr 18, 2008 9:27 pm
JSLint now rejects a string that starts with 'javascript:'. It previously rejected a string that contained 'javascript:'. Thanks to Timo....
30
Douglas Crockford
douglascrock...
Apr 18, 2008 11:14 pm
I corrected an error in JSLint that created a scope around labeled statements. function a() { foo: for (var i = 0; false;) { } return i; } As a result, it used...
31
Julien R
julien_roy
Apr 21, 2008 3:03 pm
I've already asked Douglas this question before, and I know that JsLint has to hurt my feelings, but I don't understand the need for this check. For a...
32
santini.alberto
Apr 28, 2008 4:33 pm
Hello. In my javascript files I define, as first line, a namespace like var FOO = YAHOO.namespace("foo"); // alias for YAHOO.foo using Yahoo! User Interface...
33
Douglas Crockford
douglascrock...
Apr 28, 2008 5:01 pm
/*global FOO*/ FOO = YAHOO.namespace("foo");...
34
santini.alberto
Apr 29, 2008 9:38 am
... Ops... so simple! :) I missed that because I deleted 'var' and I get "'FOO39; is undefined.". The tricky part is adding /*global FOO */. Thanks again, ...
35
Douglas Crockford
douglascrock...
May 6, 2008 9:10 pm
JSLint will now providing a warning for code like this: function foo(a) { var i; for (i = 0; i < a.length; i += 1) { a[i].onclick = function (e) { alert(i); };...
36
klemen.slavic
May 7, 2008 9:50 pm
When constructing a singleton in JS using an anonymous constructor, JSlint returns a "Weird construction" error. Here's the code: /*globals A*/ A = new...
37
Alan Green
alanggreen
May 11, 2008 4:12 am
Hi Although this is really a javascript (not jslint) issue, could you explain why one should make the function valus in a closure. Thanks Alan ... make...
38
Douglas Crockford
douglascrock...
May 11, 2008 1:07 pm
... Drop the unnecessary new operator, then it will be correct....
39
Douglas Crockford
douglascrock...
May 11, 2008 1:10 pm
... The common failure case was shown in the example, attaching event handlers in a loop. If the event handlers are bound to variables that are mutated by the...
40
Douglas Crockford
douglascrock...
May 12, 2008 4:54 pm
When immediately invoking a function literal, parens must wrap the expression when it is used in the statement position because of an ambiguity in the grammar...
41
Douglas Crockford
douglascrock...
May 16, 2008 3:49 pm
JSLint now issues a warning if it sees the close script tag in a comment....
42
Douglas Crockford
douglascrock...
May 19, 2008 3:58 pm
I added the JSON object to the list of objects that are provided by the standard, in anticipation of the next edition of the ECMAScript standard....
43
Re Miya
remiya_ws
May 20, 2008 8:31 pm
In jQuery there is the following code when throwing error in an Ajax call: function (XMLHttpRequest, textStatus, errorThrown) { // typically only one of...