The following 3-line script yields 1 message. I expected 2: /*jslint passfail: false, eqeqeq: true */ var table = new Array(27); var list = new Array(27); ==...
I wasted time whilst writing a test for http://www.w3.org/2008/06/mobile-test/ whereby I didn't anonymize a function that I should have done. Otherwise I would...
I am confused. I still get one error from ... Lint at line 2 character 19: Use the array literal notation []. var table = new Array(27); ... /*jslint...
Block commenting can be used to switch between two similar functionalities - then by simply removing or adding a '*' in the first '/*/' you switch the two... ...
JSLINT is too strict ! var a = new Array(5); creates an empty array of length 5. what the heck is wrong with that code ? if i need an empty array then I'm...
... Yes. At one time I was experimenting with that form. I was later persuaded that it was a bad for so I took it out. I am constantly experimenting with...
... new Array does not do what you think it does. Part of JSLint's mission is to help you discover where your reasonable expectations about JavaScript are...
To concatenate strings I use: // Concatenation of string 'str', n times. function repeatstr (n, str) { var an = new Array(1 + n); return an.join(str); } ... ...
One big issue in JavaScript is the onload issue. Many of the frameworks have a periodic check to see if the body has loaded using various methods. Since script...
... I don't see how it solves anything. There is a lot in the HTML recommendations that doesn't make sense, but the requirement that the tags all go either...
... Not always, I have inline scripts that work just fine so long as the parts of the DOM they are manipulating are ready & available. ... Seems reasonable to...
The issue with onload is that it is not ondomload, so if any file being downloaded takes too long the script does not fire and the user could be interacting...
... no.. its very good practise to code and debug... do you disagree ? this trick relies on a proper parser. I've made it work in my Editor... also works in...
IMHO, I don't think it's the domain of JSlint to handle these kind of comments, since the output of this algorithm is supposed to be clean code that is meant...
... code ... comments still ... code leak ... If only JSLint would report it as an "Error"... JSLint stops completely, so its not even possible to simply...
/* Douglas ain't smart. */ Douglas is smart. //------------------------- Q: which of those two statements are more accurate ? A: the one, which is not a...
... Yes it should, because sometimes syntax errors are hidden in comments. Again, I caution you to avoid programming conventions that depend on intentional...
Hello, Here a piece of code: if (this.newsDetailHasAbstract) {HTML += '<div class="articleAbstract">' + this.myData.record[0][0][3].replace(/<\/?a[^>]*>/gi,'')...