See correction below. On Wed, Feb 10, 2010 at 6:00 AM, Mark Volkmann ... There is no such thing as a getProcessingInstructions method in DOM Document. I should...
Actually, if you're using this pattern to check if a user-specified option is set or not, explicitly using "var" is not the way to go. In IE, at a script level...
Or you could use something like: var foo = foo || "some value"; as suggested on this mailing list starting at 5/27/2009. Of course, it won't work if your...
... I cannot find that method in any of the DOM specifications, so I have no response. ... I have never called a processing instruction through a DOM...
1133
Stefan Weiss
weiss@...
Feb 11, 2010 5:06 am
... Mark already corrected that (hours ago) in his follow-up message. ... The point is that there's no problem whatsoever with having comments before the root...
I am trying to run JSLint from the command line but it stops after displaying the first warning, even if I turn it of by specifying /*jslint passfail: false */...
... If my answers to my opinions cannot be found in a standards specification or a commonly accepted best practices guidance they are formed from personal...
... Sometimes JSLint will stop if it finds a problem that produces an ambiguous state. Warnings generated from such a state would be unreliable. I recommend...
... Hello, This has been working wonderfully, thank you for putting it in! I notice that JSLint can be put into JSON-mode if the first non-whitespace character...
On Fri, Feb 12, 2010 at 5:01 AM, Cheney, Edward A SSG RES USAR USARC < ... How about "a line containing HTML version information". Isn't that the DOCTYPE?...
Yes, putting anything, except whitespace characters, alters how several browsers perceive rendering of the DOM. This is most noticable in IE with regard to...
On Fri, Feb 12, 2010 at 5:56 AM, Cheney, Edward A SSG RES USAR USARC < ... I wish you were able to provide a simple example and tell me exactly what I should...
I am sorry, but it is not that simple. If you place a comment above the doctype and refresh the page in IE the rendering changes are obvious. In many other...
I don't want to place a comment above the DOCTYPE. This is what I want to do: <!DOCTYPE html whatever> <!-- some comment --> <html> <head> <title>some...
I frequently find that I must convert non-objects into objects. Consider, for example, a function that expects one of it's arguments to be an object. If you...
Hi, In the code snippet below, b will always be 'is TRUE'. Clearly the intention was that b should be 'a is FALSE'. No javascript error but the result is...
jslint doesn't expect to see new String, but I need it because I want to set a property of the string: var str = new String('somestring39;); str.id = 123; Or is...
... Running the following code in Widget Tester: var str1 = "something"; print("typeof str1: " + typeof str1); var str2 = new String("anything"); print("typeof...
Why not use JSON to carry values in such a case? var a = { value: "somestring", id: 123 }; ... [Non-text portions of this message have been removed]...
Or: var string = { toString: function () { return "The actual String"; }, id: 123 }; alert(string); alert(string.id);...
1156
Stefan Weiss
weiss@...
Feb 18, 2010 5:30 am
... That's not JSON, it's just an object literal. As to the previous example: var str = "somestring"; str.id = 123; str.id; // undefined The reason why this...