Search the web
Sign In
New User? Sign Up
jslint_com · JSLint.com
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 316 - 345 of 993   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
316
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...
michael.gollmick
michael.goll...
Offline Send Email
Dec 7, 2008
12:02 pm
317
Don't use escape. Use encodeURI or encodeURIComponent instead....
Douglas Crockford
douglascrock...
Offline Send Email
Dec 7, 2008
2:41 pm
318
... But what if the server can't handle UTF-8 encoded characters? Many legacy applications are stuck with escape/unescape. - Conrad...
crlender
Offline Send Email
Dec 7, 2008
2:46 pm
319
... /*global escape */...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 7, 2008
4:44 pm
320
... 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...
michael.gollmick
michael.goll...
Offline Send Email
Dec 7, 2008
9:30 pm
321
The documentation suggests that this should work: /*jslint newcap: true */ or /*jslint newcap: false */ However, JSLint itself complains about this being a...
Chris
altearius
Offline Send Email
Dec 11, 2008
9:31 pm
322
... Thanks for the report....
Douglas Crockford
douglascrock...
Offline Send Email
Dec 12, 2008
1:59 am
323
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 ...
santini.alberto
Offline Send Email
Dec 12, 2008
3:04 pm
324
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...
aceblchboy
Offline Send Email
Dec 13, 2008
5:49 pm
325
... Just fix your code. Hooking JSLint into your editor can be very effective....
Douglas Crockford
douglascrock...
Offline Send Email
Dec 13, 2008
5:51 pm
326
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@...
Send Email
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...
Daniel Cassidy
mail@...
Send Email
Dec 16, 2008
2:30 pm
328
... Of course....
Douglas Crockford
douglascrock...
Offline Send Email
Dec 16, 2008
3:00 pm
329
... My understanding is that these are not universally implemented in all browsers, and so represent a portability trap....
Douglas Crockford
douglascrock...
Offline Send Email
Dec 16, 2008
3:01 pm
330
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 =...
mnewton32@...
mnewton32
Offline Send Email
Dec 16, 2008
3:26 pm
331
... 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@...
Send Email
Dec 16, 2008
4:02 pm
332
... Try this: alert(document); alert(Document); Javascript is case sensitive!...
kaichen67@...
kaichen67
Offline Send Email
Dec 17, 2008
8:10 pm
333
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...
mnewton32@...
mnewton32
Offline Send Email
Dec 17, 2008
8:21 pm
334
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...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 19, 2008
11:24 pm
335
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...
santini.alberto
Offline Send Email
Dec 23, 2008
10:19 am
336
... 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....
Douglas Crockford
douglascrock...
Offline Send Email
Dec 23, 2008
1:30 pm
337
... 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...
santini.alberto
Offline Send Email
Dec 23, 2008
9:12 pm
338
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...
Dion Almaer
dion_almaer
Offline Send Email
Dec 23, 2008
11:19 pm
339
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...
Stoyan Stefanov
ssttoobg
Online Now Send Email
Dec 23, 2008
11:48 pm
340
... 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...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 24, 2008
12:01 am
341
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...
halukakin
Offline Send Email
Dec 24, 2008
10:26 pm
342
... 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...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 24, 2008
10:33 pm
343
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...
Mordecai Dotan Hegykozi
lunarslover1979
Online Now Send Email
Jan 1, 2009
7:30 am
344
This function: function isValidBZ (val) { return /^(?:[1-9]\d*|0)$/.test(val); } triggers the JSLint warning "Wrap the /regexp/ literal in parens to...
crlender
Offline Send Email
Jan 8, 2009
1:44 pm
345
... 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...
Douglas Crockford
douglascrock...
Offline Send Email
Jan 8, 2009
10:06 pm
Messages 316 - 345 of 993   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help