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]...
3079
rodobrist
Nov 26, 2012 1:59 am
Hi guys, I was coding and I noticed that I often make the same error from using reduce. e.g. var options = ['nocaps39;, 'evil', 'node', 'browser39;], ...
3080
douglascrockford
douglascrock...
Nov 26, 2012 12:51 pm
... I think the error may be that you are using the wrong method: reduce when you should forEach. I am not sure how to test for that....
3082
rodobrist
Nov 26, 2012 11:34 pm
... No, I know when to use each method. Ill try to give another example, the JSLint source uses a method named array_to_object, which can be re-written like...
3083
douglascrockford
douglascrock...
Nov 26, 2012 11:38 pm
... function array_to_object(array) { var result = {}; array.forEach(function (key) { result[key] = true; }); return result; }...
3084
rodobrist
Nov 27, 2012 12:28 am
... Ok, thanks Doug. I suppose that construct is less prone to errors....
3085
sandyhead25
Dec 27, 2012 7:21 pm
There appears to be a new rule that looks for unnecessary parenthesis, but this rule gets confused when wrapping regex: var mhtml = true, disqualify = (mhtml)...
3086
douglascrockford
douglascrock...
Dec 27, 2012 7:32 pm
... I completely agree. It is wise to wrap regexp literals in parens to avoid syntactic weirdness. But that is not what JSLint is complaining about. Try this: ...
3087
sandyhead25
Dec 28, 2012 4:01 am
Thank you! Austin...
3088
Matthew Potter
askmatthewpo...
Jan 2, 2013 12:04 am
I’ve run into an error that is a bit strange to see. The <summary> tag is not allowed as it is unrecognized however the <details> tag is allowed. I’ve...
3089
douglascrockford
douglascrock...
Jan 2, 2013 1:53 pm
... Thanks. Please try it now....
3090
george_weilenmann
george_weile...
Jan 10, 2013 5:48 am
Unexpected '*'. Rationale for acceptance: The * selector in CSS, also known as the universal selector, is useful for setting styling to the full array of...