I get the error 'Node' was used before it was defined. From the line: if (nodes[i].nodeType === Node.TEXT_NODE) { I do have the "Assume a browser" option on. I...
3050
Felix E. Klee
feklee
Oct 16, 2012 8:22 pm
... It returns a client object, allowing interfacing with the [Redis key-value store][1]. ... Look at the comment at the top of the code: It's Node.js code,...
3051
douglascrockford
douglascrock...
Oct 18, 2012 7:03 am
... Can you please cite the relevant standard?...
3052
douglascrockford
douglascrock...
Oct 18, 2012 7:05 am
... /*jslint evil: true */...
3053
Felix E. Klee
feklee
Oct 18, 2012 8:02 am
On Thu, Oct 18, 2012 at 9:05 AM, douglascrockford ... I am already using that comment, but it is misleading, because: This eval is not evil....
3054
douglascrockford
douglascrock...
Oct 18, 2012 12:02 pm
... How do you expect JSLint to know that?...
3055
Felix E. Klee
feklee
Oct 18, 2012 12:36 pm
On Thu, Oct 18, 2012 at 2:02 PM, douglascrockford ... By checking the object: `eval`, `window.eval`, `global.eval`, etc. are evil Of course, it could be that...
3056
Felix E. Klee
feklee
Oct 18, 2012 4:35 pm
On Fri, Sep 21, 2012 at 3:48 PM, douglascrockford ... Why not enforce that with JSLint? It would be help enforcing consistent coding style in projects....
3057
Kirk Cerny
kirk.cerny
Oct 18, 2012 5:22 pm
I think this eval is evil. I believe that it is close enough to a reserved word to avoid using it as a property name. I also think it makes the code harder to...
3058
Marcel Duran
marcelduran
Oct 18, 2012 6:23 pm
Of course eval can be disguised in several ways, such as: window['eval'.toString()]('alert("foobar")'); So your redis client could be: ...
3059
Felix E. Klee
feklee
Oct 18, 2012 7:15 pm
On Thu, Oct 18, 2012 at 6:46 PM, Marcel Duran <marcelduran@...> ... Interesting hack, but I don't think this improves readability. Anyways, it's easier...
3060
Felix E. Klee
feklee
Oct 18, 2012 7:33 pm
On Thu, Oct 18, 2012 at 7:22 PM, Kirk Cerny <kirksemail@...> ... What's bad about using reserved words as property names? In his book, Douglas mentions...
3061
Joshua Bell
inexorabletash
Oct 22, 2012 4:20 pm
... Since the original poster hasn't replied: http://www.w3.org/TR/DOM-Level-3-Core/core.html That spec - which so far as I know is implemented by all the...
3062
Felix E. Klee
feklee
Oct 22, 2012 4:27 pm
On Mon, Oct 22, 2012 at 6:20 PM, Joshua Bell <inexorabletash@...> ... They should all be accessible via the `window` object, or am I missing something?...
3063
Felix E. Klee
feklee
Oct 22, 2012 4:29 pm
... Any reason why you don't use `window.Node.TEXT_NODE`?...
3064
douglascrockford
douglascrock...
Oct 22, 2012 4:53 pm
... That document describes a rather large number of interfaces, which may be interesting in the abstract because JavaScript, as you know, does not have...
3065
Joshua Bell
inexorabletash
Oct 23, 2012 12:01 am
... That would be the ECMAScript binding of WebIDL: http://dev.w3.org/2006/webapi/WebIDL/#ecmascript-binding Web standards typically define IDL fragments and...
3066
cse_html_validator
cse_html_val...
Nov 13, 2012 10:06 pm
Is there a way to get JSLint to recognize new tags via an option? I have a customer who can't make as good use of JSLint in CSE HTML Validator because it is...
3067
douglascrockford
douglascrock...
Nov 13, 2012 10:08 pm
... What tag?...
3068
cse_html_validator
cse_html_val...
Nov 15, 2012 10:47 pm
... The "marquee" tag. Yes, it's a "bad" tag, and I've suggested they use the CSS marquee properties instead, but I suspect they would prefer to address more...
3069
Owen
eclipsechasers2
Nov 16, 2012 3:31 pm
While using jslint on some html with inline script, I run into the following error: A '<script>' must be within '< body div frame head iframe p pre span >'. ...
3070
douglascrockford
douglascrock...
Nov 18, 2012 2:21 am
... Why do you want to put a script in a fieldset?...
3071
douglascrockford
douglascrock...
Nov 18, 2012 2:23 am
The Tolerate HTML Case option was one of the first options added to JSLint. HTML tags were originally written in upper case, but tastes changed and now they...
3072
douglascrockford
douglascrock...
Nov 18, 2012 2:55 am
... Please try it now....
3073
Owen
eclipsechasers2
Nov 18, 2012 6:48 am
I am trying to analyze some code I've inherited which does this 20+ times. I can wrap each of them in divs if need be; that just seems like "busy work",...
3074
Felix E. Klee
feklee
Nov 18, 2012 9:47 am
On Sun, Nov 18, 2012 at 3:23 AM, douglascrockford ... Furthermore, in XHTML tags have to be in lower case: <http://www.w3.org/TR/xhtml1/#h-4.2>...
3075
jontro123
Nov 19, 2012 11:27 am
The following code causes an error in internet explorer: var window; "SCRPT5039: Redeclaration of const property line 1 character 1" For us it would be useful...
3076
douglascrockford
douglascrock...
Nov 19, 2012 8:36 pm
... It causes no harm on all of the other browsers. I recommend that you report it to Microsoft instead. For over a decade we have tried to work around IE's...
3077
cse_html_validator
cse_html_val...
Nov 19, 2012 11:24 pm
... Great. It doesn't abort/stop anymore. Thanks....
3078
Joe Hansche
joeatrr
Nov 20, 2012 7:26 am
Hallelujah. ... [Non-text portions of this message have been removed]...