... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsmthescape.asp ... The link is dead :C...
241
Fred Lorrain
grumelo68
Sep 23, 2008 1:12 pm
... No explanations ? What means the problem "Script URL" ? Please help, thanks....
242
Douglas Crockford
douglascrock...
Sep 23, 2008 6:48 pm
... named object, and define a variable named object. When I do this, the code passes validation but cases my page to not ... Use the Assume a Browser option....
243
Douglas Crockford
douglascrock...
Sep 23, 2008 6:50 pm
... this.contactsPeoplePath + ... Script urls are a bad practice. Avoid using them....
244
Michael Newton
mnewton32
Sep 23, 2008 10:22 pm
This link is not dead: http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent And just in case it is in the future,...
245
Fred Lorrain
grumelo68
Sep 25, 2008 9:13 am
... Ok thanks. Here a good explanation why: http://www.javascripttoolbox.com/bestpractices/#onclick...
246
Fred Lorrain
grumelo68
Sep 25, 2008 9:16 am
... JSLint that ... (I forget to update the titel of my previous answer, sorry)...
247
Fred Lorrain
grumelo68
Sep 25, 2008 10:03 am
To avoid overload of my scripts and objects, I always put this kind of code in my libraries: if(!window.isLoaded_Overload) { var isLoaded_Overload = true; ...
248
Randy Cox
randykcox
Sep 25, 2008 1:23 pm
Fred, You're using a function *statement*. Doing the same thing with a function *expression* would look like this: if(!window.isLoaded_Overload) { var...
249
Douglas Crockford
douglascrock...
Sep 25, 2008 8:29 pm
... You should understand now that JSLint is about a higher standard than what seems to work fine. ECMAScript does not allow functions within blocks. This is...
250
Fred Lorrain
grumelo68
Sep 26, 2008 8:15 am
... Thanks a lot for the explanations about why Function statements cannot be placed in blocks What about the method of having a isLoaded variable to know if a...
251
Jakob Kruse
thekrucible
Sep 26, 2008 8:27 am
... kind of ... Fred, Why not just test the existance of whatever it is you want to load, instead of creating more variables? if (!OverLoad) { function...
252
Fred Lorrain
grumelo68
Sep 26, 2008 2:41 pm
... than ... because of ... scope. ... Very often there are several objects or function per file. I also set up the *loading* variable (var isLoaded_Overload =...
253
Jacob Davenport
jpdavenportjr
Sep 30, 2008 2:00 pm
The following CSS errors are reported, and I'm not sure why they are errors or what to do differently for them: Problem at line 420 character 5: Unexpected...
254
Douglas Crockford
douglascrock...
Sep 30, 2008 2:09 pm
... Ignore them for now. JSLint is growing awareness of CSS in order to better detect security problems. That work isn't finished yet....
255
saturn_jct
Oct 3, 2008 5:52 pm
After tracking down a bug in 0.8.5.3 of the HTML Validator Firefox extension, I decided to try out JSLint on some of the code in it. It doesn't work because of...
256
Douglas Crockford
douglascrock...
Oct 3, 2008 9:34 pm
... Early on JSLint had support for some of JScript's deviations. I decided to remove that because we are better off sticking to the portable standard. I think...
257
Fred Lorrain
grumelo68
Oct 5, 2008 2:49 pm
... Extensions. ... 'const39; exists in Javascript since version 1.5? JSLint doesn't accept 'const39; ?? If yes, why ?...
258
Douglas Crockford
douglascrock...
Oct 5, 2008 3:10 pm
... const is not in the ECMAScript standard. JSLint accepts a subset of the ECMAScript standard....
259
Jacob Davenport
jpdavenportjr
Oct 6, 2008 8:28 pm
Do you use http://developer.yahoo.com/yui/yuitest/ on JSLint, some other test methodology, or none? I have very little automated testing with JavaScript, and...
260
Douglas Crockford
douglascrock...
Oct 6, 2008 8:29 pm
I have added CSS2 support to JSLint. This was motivated by the security needs of ADsafe. Only by fully parsing the CSS content on a page can we be confident...
261
Jordan
ljharb
Oct 7, 2008 7:10 am
In case you were looking for workaround suggestions, a # immediately preceding a property is ignored by IE but not by Firefox. - it would be nice if when...
262
Douglas Crockford
douglascrock...
Oct 7, 2008 5:38 pm
... I feel like I've opened a can of worms. I'm not confident that a Code Quality tool makes sense for CSS. The fact that a form is tolerated by only one brand...
263
Jordan
ljharb
Oct 7, 2008 8:10 pm
... Code ... by ... Very good point... the problem is that in Javascript, functionality in "forms that should be avoided" can be accomplished a variety of...
264
santini.alberto
Oct 8, 2008 9:13 am
My usual report on JSLint itself: 1467: Unexpected space after '('. 1494: Unexpected space after '('. 2443: Expected 'warning39; to have an indentation of 16...
265
Jakob Kruse
thekrucible
Oct 16, 2008 1:25 pm
Why does JSLint complain that "type is unnecessary" when it sees a script element with a type attribute in an html file? Is there any way to turn this...
266
Douglas Crockford
douglascrock...
Oct 16, 2008 2:27 pm
4.01 in in error. "text/javascript" is not a valid MIME type....
267
Jakob Kruse
thekrucible
Oct 16, 2008 4:39 pm
That doesn't seem helpful. Stricly speaking, "text/javascript" *is* a valid MIME type. It is listed by IANA. It is listed as "obsolete" though, with a...
268
Jakob Kruse
thekrucible
Oct 16, 2008 4:49 pm
Correcting myself here. "Standard" is not the correct word. "Recommendation" is. But W3C recommendations do have a lot in common with standards, and we would...
269
mnewton32@...
mnewton32
Oct 16, 2008 5:13 pm
Many of the "features" in JSLint have nothing to do with standards or even widely-used practices. It's a tool written by one guy to make sure things are the...