This is proprietary event handler which can be used in IE only....
794
Arthur Blake
blakesys
Aug 10, 2009 4:20 pm
Not true- it works in FF 1.5, 2, 3, 3.5, google chrome and safari and IE 6,7,8 This is one of those useful event handlers that the HTML spec never caught on...
795
cdcmicro
Aug 10, 2009 4:31 pm
Hi, I'm not sure this is a problem, or if I'm just reading the report wrong. When creating an anonymous function (a callback) as an arg to a function: ...
796
Douglas Crockford
douglascrock...
Aug 10, 2009 5:04 pm
... JSLint tries to guess a name for anonymous functions. Guessed names are wrapped in quotes. You should only use /*global */ for names that are defined ...
797
Douglas Crockford
douglascrock...
Aug 10, 2009 5:22 pm
... I was not aware that Webkit had picked this up. Please let me know if you find any more of these....
798
Arthur Blake
blakesys
Aug 10, 2009 5:31 pm
It appears that all the major browsers support it except for Opera... It appears that Opera doesn't even support onload and onunload correctly in all cases...
799
cdcmicro
Aug 10, 2009 6:33 pm
... Got it. I understand now about the quoted, "guessed" name. Thanks for the quick clarification. -Clark...
800
jasons.aweber
Aug 10, 2009 8:44 pm
I'm working on setting up the frontend-test-suite(http://github.com/NeilCrosby/frontend-test-suite/tree/master) which uses jslint. The only jslint script that...
801
Douglas Crockford
douglascrock...
Aug 10, 2009 8:57 pm
... At the bottom of http://www.JSLint.com/lint.html is a list of source urls. The file that is linked from http://www.jslint.com/rhino/index.html is made by...
802
Toby Maxwell-Lyte
toby_maxwell...
Aug 10, 2009 9:03 pm
... When I was trying to setup jslint as part of our continuous integration server, I got a bit stuck and emailed Douglas. He was very helpful and gave me the...
803
Michael Lorton
mlorton
Aug 10, 2009 9:20 pm
Yeah, that Doug guy must have a huge amount of spare time. I've experience far longer waits being the light turning green and the guy behind me honking than...
804
christian.wirkus
christian.wi...
Aug 13, 2009 1:55 pm
Hi, I'm writing a Firefox extension. The frontend is CSS/XUL. Of course JSLint does not know XUL-Tags. Is there a possibility to use JSLint anyway. Like...
805
Arthur Blake
blakesys
Aug 14, 2009 3:53 pm
With the following code: /*jslint browser: true, onevar: true, maxerr: 50 */ /*global jsonrpc:false*/ function loadPopup(parm) { ...
806
pauanyu
Aug 15, 2009 2:44 pm
var regexp = /foo|*/; The above is valid code in JSLint, but fails with the following error: Uncaught SyntaxError: Invalid regular expression: /foo|*/: Nothing...
807
Cheney, Edward A SSG ...
sandyhead25
Aug 15, 2009 2:44 pm
Members Since JavaScript is a loosely-typed, dynamic-object language, it is not possible to determine at compile time if property names are spelled correctly....
808
Douglas Crockford
douglascrock...
Aug 16, 2009 12:12 am
... Thanks. Please try it now....
809
Arthur Blake
blakesys
Aug 17, 2009 2:02 pm
Thanks and my apologies for not seeing that in the manual.One basic problem with this is that it can't discern between members and members of members (and...
810
mbrrtt
Aug 18, 2009 4:39 pm
Most programs I write lately are wrapped in an anonymous function which is immediately executed, thus: (function () { ... the real code ... }()); As is well...
811
pauanyu
Aug 18, 2009 10:31 pm
/* I'm a comment! */ @charset "UTF-8"; [hidden] { display: none !important; } The above is valid JSLint, but fails in the W3 CSS validator with the following...
812
Douglas Crockford
douglascrock...
Aug 18, 2009 10:35 pm
... I think you should indent your code properly....
813
Jacob Davenport
jpdavenportjr
Aug 18, 2009 10:45 pm
Am I crazy? I thought I could add this comment at the top: /* global CMECF window */ And then I could reference my CMECF global (analogous to the YAHOO...
814
Douglas Crockford
douglascrock...
Aug 18, 2009 10:59 pm
... So it would seem. ... /*global CMECF */ See http://www.jslint.com/lint.html#global...
815
Douglas Crockford
douglascrock...
Aug 18, 2009 11:20 pm
... Thanks. Please try it now....
816
Cheney, Edward A SSG ...
sandyhead25
Aug 19, 2009 4:25 pm
... I understand the need to use such functions for scope and containment, but what benefit do anonymous functions serve compared to named functions,...
817
Michael Lorton
mlorton
Aug 19, 2009 4:45 pm
The world, as they say, is a very big place. I myself almost never use NAMED functions. That is, I never do this: function f() { ... }; Sometimes, not often,...
818
Paul Novitski
paul.novitski
Aug 20, 2009 7:34 am
jslint complains if I use a function before it's defined, e.g.: window.onload = initialize; function initialize() { ... } I can certainly understand why one...
819
pauanyu
Aug 20, 2009 3:23 pm
function foo(a, b) { var c; } In the above, the local variables "a" and "b" are never used, yet they are not listed as "Unused". Instead, only "c" is listed. ...
820
pauanyu
Aug 20, 2009 3:24 pm
Previously, the cookie JSLint used to store the settings was a rather long-lived cookie. Recently, this was changed so the cookie would expire at the end of...
821
Michael Lorton
mlorton
Aug 20, 2009 3:43 pm
... I don't think that "a" is unused -- in particular, it makes it possible for b to be declared. Consider the following: function foo(a, b) { var c = b; } ...
822
Arthur Blake
blakesys
Aug 20, 2009 3:47 pm
IMHO, even nicer and more useful than using the cookie, is simply specifying the jslintoptions at the top of your JS file! ... That way you can customize the...