Re: [jslint] no comments before html root element?
- I don't want to place a comment above the DOCTYPE. This is what I want to
<!DOCTYPE html whatever>
<!-- some comment -->
You are asking me to just trust you because you say you have seen this cause
a problem in a past project but it seems that you can't demonstrate the
issue or point to any "standard" that says its a bad idea. I guess I'm not
enough of a trusting person. ;-) I'd really like to see an example of the
problem that occurs when a comment is placed between the DOCTYPE and the
html root element.
On Fri, Feb 12, 2010 at 10:56 AM, Cheney, Edward A SSG RES USAR USARC <
> 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 browsers problems may be present, but can be diffecult to
> identify if any problems actually exist. The idea in that example is that it
> is a perfect test sample since extremely simple HTML with extremely
> complicated CSS. Placing a comment above the doctype makes for a more
> obvious test, but placing a comment between the doctype and the root element
> may not make for an obvious test on display and may only become obvious when
> attempting to gather the comment as a node in the DOM.
> > Why do you feel that is logical? The root element is a child of the DOM
> > Document object.
> The logic, or my logic, is inherent to my experience writing schema and
> representation of a node tree there in. This logic of mine is exemplified by
> some feature I have developed that may or may not extend what is a document
> object, and I am not willing to harm you through receipt of unintended
R. Mark Volkmann
Object Computing, Inc.
[Non-text portions of this message have been removed]
- Not exactly. I am saying I have seen in past projects how this condition is potentially problematic when the technology is pushed beyond current implementations. In other words, there are use cases, not previously considered in the most current DOM specification, that when applied in an instance appear to be problematic in this condition.
> I guess I'm not enough of a trusting person.I can demonstrate this potentially problematic condition, but I have already mentioned I will not harm you with such a demonstration. If such harm is of no concern then simply contact the legal department of Sabre Holdings and ask permission to examine IP attached to my name. I do not own the IP and you must volunteer to an administering party to receive disclosure. Otherwise you would have to find the related contents online and examine them independently of any assistance from me.
At this point I believe the discussion has the field of association to the JSLint tool and if the discussion is to continue then I ask that you please contact me directly and only after contacting my legal representatives. Until such I cannot continue this conversation.