Hello ... @charset "UTF-8"; #djDojoPreloader { background: #fff url('../images/loading.gif') no-repeat center center; } ... But I get the error: /Error:/ ...
window.location.href = window.location.href; is a standard web programming technique to reload the page WITHOUT re-POSTing the form. But JSLint says "Weird...
I just saw in a small jQuery plugin I was borrowing for my own use: function checkUndefined(a) { return typeof a === 'undefined39;; }; if (checkUndefined(data))...
Douglas, I started using the /*properties */ directive and like what it does, though it's making some things a little labor-intensive. 1. It would be very nice...
I'm using a library expects a callback function with certain parameters. I only am interested in the second parameter, but must have an unused first parameter....
Here is a little script where JSLint throws an error, it's valid js for me: Problem at line 4 character 5: Expected an identifier and instead saw 'with'. with...
'use strict'; function test() { return 2 + 2;} with node: false Error: Problem at line 1 character 1: Use the function form of 'use strict'. 'use strict'; with...
After reading your article<http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/> I could understand that it is be possible to use both sloppy...
Hello Is there a chance to see a new option "Assume dojo", as we can already see for node.js, Rhino... ? This option could define custom /*properties */ etc......
Hello, I'm testing JSLint on some css, it says the css must begin with @charset 'UTF-839;; So I add it, no more error with JSLint But when I validate this css to...
Hello Again on my dojo script, I'd like to prefill the /*properties */ in order to avoid type confusion error on some dojo functions For example in a script...
Hello.I use JsLint a lot from now on.Let the group participate by all means.Thanking you in advance. [Non-text portions of this message have been removed]...
When scanning a .js, JSLint reports this: Problem at line 119 character 35: Type confusion: function and '{': object. djTagonomyStore.fetch({query: {type:...
A coding mistake I find myself making often is exemplified by this contrived mustache-style markup in a JS string: var title = 'blix', ____html = ______'<div>39;...
The following code: /*global other_object */ /*global other_object */ var obj = { callback: function (data) { if (typeof (data.prop) === 'string39;) { ...
The following code passes the JSLint white space rule: var a = function () { ...."use strict"; ....var b = function () { ............var c; ....}, ........c; ...
Great tool. One minor thing which tripped me up is that the "Tolerate misordered definitions" is not entirely tolerant. For example: While: var abc = xyz(), ...
The /*properties */ directive can now accept types. For example, the directive /*properties a: array, b: boolean, n: number, o: object, r: regexp, any: * */ ...
Y.DataType.Date.format(ld, {format: "%a, %b %d, %H:%M"}); The following message is displayed: Problem at line 1 character 37: Type confusion: function and '%a,...
My guess is that this is not the intent and possibly some type of regexp is in play, but, I have discovered that both: confustion: true -or- confusion: true ...
For version 2011-06-19, jslint is flagging: (function () { "use strict"; Math.ceil(12.2); }()); With: Problem at line 3 character 9: Type confusion: function...
I believe that by the amount of confusion the type checking has caused on this list, it has already proven itself counterproductive. In its current form at...
In your example, x is not an array, it is an object. replacing var x = {foo : 'bar'}; with var x = ['foo']; would work. ... [Non-text portions of this message...