Mark, The standard XHTML 1.0 Strict and XHTML 1.1 doctypes both work for me in the JSLint tool, however the tool inappropriately outputs a missing '>' error...
Mark, Do you mean JSLint's fragment: true option? Please describe your use case with greater specification when you refer to use at top of a HTML file. Austin...
Yes, I mean the "fragment: true" option. I was looking for a way to break a large .html file up into pieces that get included into a main .html file. For...
If your HTML fragment contains incomplete tag pairs, such starting code in this fragment and closing the block in another fragment, JSLint will report errors....
Thanks! I can see that approach will work, but what's the point of the fragment option if you have to do that? My HTML fragments do not contain incomplete tag...
... I use object literals and Object.create(prototype). Object.create is in ES5. It can be added to ES3 with if (!Object.create) { Object.create = function...
1118
Stefan Weiss
weiss@...
Feb 9, 2010 3:07 pm
... Do you have a source for that statement? Where does it say that comments aren't allowed before the html root element? -- stefan...
... A quick search returns: https://studio.tellme.com/general/xmlprimer.html As with any code, it's a good idea to document your work so that other programmers...
The official word should be from the document "Extensible Markup Language (XML) 1.0 (Fifth Edition) W3C Recommendation 26 November 2008" since XHTML is XML....
HTML is not XML and is processed as XML less than .0001% of the time across the web. As such your comments regarding XML are irrelevant. Nowhere does the...
On Tue, Feb 9, 2010 at 1:02 PM, Cheney, Edward A SSG RES USAR USARC < ... HTML is not XML ... Right. But XHTML is an that's what I happen to be using. I was...
Any tag that is delimited as <?xml is an XML processing declaration. Several such declarations may occur in an XML document and preceed schema validation. ......
I am checking if a variable is defined or not, if it is not defined explicitly I am going to define it by doing: if ( typeof(aVariable) == 'undefined39; ) { var...
... Define the variable and give it an initial value of null or 'undefined39;. Then you can test for that: var aVariable = null; ... if (aVariable === null) { ...
On Tue, Feb 9, 2010 at 11:23 PM, Cheney, Edward A SSG RES USAR USARC ... Maybe I can learn something new here. Can you point me to a description of the term...
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 */...