Two small issues popped up recently in my code that would probably be worth taking a look at: 1. `last-child` isn't recognized as a pseudoclass. Adding it to...
1504
nicktulett
Oct 5, 2010 8:57 pm
Added the few node.js globals to fulljslint.js, plus a little extra to generate a web page on port 8181 showing the lint results. ...
1505
Douglas Crockford
douglascrock...
Oct 6, 2010 4:23 pm
... Thanks. Please try it now....
1506
Mike West
mikewest_y
Oct 6, 2010 5:13 pm
... Thank you, the fixes work correctly. -Mike...
1507
Luke Page
page.luke...
Oct 6, 2010 5:19 pm
Hello, One piece of code which jslint fails on is something like the following switch(a) { case 2: return "case 2"; case 3: if (b) { return "case 3b"; } else {...
1508
seank_com
Oct 6, 2010 8:22 pm
Rewriting it like this works and is arguably more correct. switch(a) { case 2: return "case 2"; case 3: if (b) { return "case 3b"; } return "case 3"; case 4: ...
1509
NickT
nicktulett
Oct 6, 2010 8:37 pm
I'm just wondering if anyone would consider the irony (and disgrace) of using node.js to fetch the latest fulljslint.js and EVAL!!!ing it to make sure you were...
1510
Douglas Crockford
douglascrock...
Oct 7, 2010 7:43 am
... switch(a) { case 2: return "case 2"; case 3: return b ? "case 3b" : "case 3"; case 4: return "case 4"; }...
1511
Luke Page
page.luke...
Oct 7, 2010 12:29 pm
Yes, I think I had a quite serious moment of stupidity when I wrote that message. Thank you. ... [Non-text portions of this message have been removed]...
1512
pauanyu
Oct 7, 2010 8:23 pm
"use strict"; function foo() { return this.message; } foo.call({ message: "Hello!" }); The above returns the error "Problem at line 4 character 12: Strict...
1513
Tim Beadle
timbeadle
Oct 8, 2010 11:06 am
While we're on the subject of linting CSS, it seems that JSLint does not like our preferred house style of upper-case element selectors ('A', not 'a' etc.). ...
1514
Harry Whitfield
harry152566
Oct 8, 2010 12:37 pm
... Code removed. ... Douglas provides a minimised version of the current JSLint at http://www.JSLint.com/jslint.js . In my Widget Tester Widget, there is an...
1515
Douglas Crockford
douglascrock...
Oct 10, 2010 11:45 am
... The warning was on line 4, not on line 6....
1516
Douglas Crockford
douglascrock...
Oct 10, 2010 11:46 am
... Is there a good reason for your house style? If there is, I will consider it....
1517
Tim Beadle
timbeadle
Oct 11, 2010 10:08 am
... I hadn't encountered the uppercase-element selector style before I joined my current employer. I've been writing CSS since its early days, and actually...
1518
Douglas Crockford
douglascrock...
Oct 11, 2010 5:07 pm
In the first decade of HTML, tagNames were written in upper case. In the second decade, the preferred style seems to be lower case. JSLint has a "Tolerate HTML...
1519
Mark Volkmann
mark_volkmann
Oct 11, 2010 6:28 pm
On Mon, Oct 11, 2010 at 11:41 AM, Douglas Crockford ... In my view, lowercase is not simply the preferred style, it is required since XHTML validation requires...
1520
Cheney, Edward A SSG ...
sandyhead25
Oct 11, 2010 6:34 pm
Tim, That is dangerous. Unlike HTML 4.01, and below, CSS and JavaScript are both case sensitive. Every release of HTML after 4.01 is case sensitive with half...
1521
Mark Volkmann
mark_volkmann
Oct 11, 2010 11:03 pm
Anyone care to share opinions on the JavaScript library Underscore.js at http://documentcloud.github.com/underscore/? It looks cool to me. I'm wondering if...
1522
Mark Volkmann
mark_volkmann
Oct 12, 2010 12:03 am
Suppose I do the following things: - write a constructor function - set the prototype property of my constructor function to refer to another object - create...
1523
James Abley
taboozizi
Oct 12, 2010 6:55 am
Hi, I've got a suggestion for a small addition. This is directly taken from using the feed validator at http://feedvalidator.org/. With that service, you...
1524
Tim Beadle
timbeadle
Oct 12, 2010 9:18 am
On 11 October 2010 19:34, Cheney, Edward A SSG RES USAR ... Austin, Thanks for the feedback. You're right in that case-sensitivity is an issue (something I...
1526
Cheney, Edward A SSG ...
sandyhead25
Oct 12, 2010 4:41 pm
Tim, ... Common misconception. It does not help that people form an opinion on this matter and become emotionally invested without doing some independent...
1530
Rob Richardson
erobrich@...
Oct 12, 2010 8:26 pm
I've found the answer to this question on most of these things falls into one of these groups: - Read the section in "JavaScript: The Good Parts" that talks...
1532
pauanyu
Oct 13, 2010 8:50 am
No, you can't. You can only set the hidden prototype at creation. Some implementations (such as Chrome and Firefox) give programmers access to the "__proto__"...
1533
pauanyu
Oct 13, 2010 8:55 am
... Indeed, which is why I said it was on line 4. My point is that JSLint is thinking that the "this" usage is referring to the global object, when in fact it...
1534
Tim Beadle
timbeadle
Oct 13, 2010 1:42 pm
... Douglas, Thanks for adding the option, even if the ensuing discussion has made me question whether we should be coding in this style. Thanks, Tim...
1541
neonstalwart
Oct 15, 2010 1:11 pm
running jslint over some css which includes the svg element as a selector gives the warning: "Expected a tagName, and instead saw svg." a similar thing happens...
1542
abyssoft@...
abyssoft...
Oct 15, 2010 2:24 pm
... If it could be cleaned up and pass JSLint validation I would probably use it, as it look nice and robust. It has some pretty blatant lint violations, quite...
1544
Marcel Duran
marcelduran
Oct 15, 2010 6:06 pm
Hello JSLinters, JSLint complains when a FOR IN loop has no IF statement wrapping its body to filter unwanted properties from prototype: var i, obj = {a: 1, b:...