JSLint can now check CSS files. CSS files are required to have this as the first line: @charset "UTF-8"; JSLint's CSS checking is not yet complete, but it will...
226
Jordan
ljharb
Sep 19, 2008 3:34 am
First thing I noticed checking a CSS file... CSS comments aren't recognized. I had this style block: @charset "UTF-8"; body { margin: 0; background: #F2F2F2...
227
Douglas Crockford
douglascrock...
Sep 19, 2008 3:58 am
... error. JSLint will reject comments within {} because of security concerns. The error messages will get better. ... Thanks. That's the kind of advice I'll...
228
Klemen Slavič
klemen.slavic
Sep 19, 2008 5:59 am
It would be nice (I can dream, can I) to have a list of browser-specific hacks, like # and _ prefix with suggestions on how to substitute those with better...
229
Harry Whitfield
harry152566
Sep 19, 2008 8:19 am
... // jslint.js // 2008-09-18 JSLint Function Report for fulljslint.js Fri, 19 Sep 2008 08:15:46 GMT Error: Problem at line 92 character 13: Expected an...
230
Jordan
ljharb
Sep 19, 2008 6:18 pm
... I may or may not be running a CSS lint for solely security concerns - rejecting or ignoring comments should be an option....
231
Douglas Crockford
douglascrock...
Sep 19, 2008 7:39 pm
... It is because of that kind of thinking that CSS has become a general security vulnerability....
232
santini.alberto
Sep 20, 2008 9:16 am
Using Jaxer (http://www.aptana.com), a Ajax server, it is possible insert in the html page tags as <jaxer:include ... Linting the page, JSLint displays ...
233
santini.alberto
Sep 20, 2008 12:51 pm
I have a code snippet containing: ... if (!(contents instanceof HTMLElement)) { ... Of course JSLint says 'HTMLElement39; is undefined. Same message with browser...
234
Douglas Crockford
douglascrock...
Sep 20, 2008 1:25 pm
... Yes it is. HTMLElement is not found in all browsers, so it is usually good to get the warning....
235
Douglas Crockford
douglascrock...
Sep 20, 2008 1:28 pm
... Would it be useful to have an Assume Jaxer option? Can jaxer tags be embedded inside of script blocks?...
236
santini.alberto
Sep 20, 2008 2:17 pm
... Yes, it is. ... The jaxer tags are html tags and they are not embedded inside of script blocks. Thanks, Alberto Santini...
237
crunchy_python
Sep 22, 2008 1:00 am
Hi, I just discovered jslint and it is *great*. Thank you, thank you, thank you! Yes, it did hurt my feelings... but in a good way, except for one case. I...
238
William Chapman
jeddahbill
Sep 22, 2008 5:12 am
... André, I've found that most authoritative, standard references for C, C++, Java, JavaScript, etc., show case statements NOT to be indented relative to the...
239
-
iamjang2003
Sep 23, 2008 12:25 am
In my external JS file, I use the following code: document.getElementById('element39;).innerHTML = object.property; I receive both of the follower errors from JS...
240
Fred Lorrain
grumelo68
Sep 23, 2008 12:56 pm
... 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....