W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2002

RE: valid comments

From: Jon Hanna <jon@spin.ie>
Date: Mon, 11 Nov 2002 15:42:30 -0000
To: "WAI IG" <w3c-wai-ig@w3.org>

> can someone help me with the validity of this as an html comment
> <!#xx>
> I have a list of valid sgml comments but the structure of the
> above doesn't
> seem to be included in that list. If the above isn't a valid comment is it
> likely to cause any problems. The comment is being put in by a CMS vendor
> who assures me that it doesn't cause problems with Bobby (which I don't
> doubt) but I'm not sure about it being valid markup.

It's not a valid HTML comment. Nor is it something that could be even be
part of any XML document of any kind. It is what is technically known as
"some random rubbish some idiot thought it would be a good idea to put

It works because browsers are supposed to ignore element tags that are
obviously wrong and although that can't be an element tag (begins with an
invalid character) pretty much all browsers (but not all html tools) will
recognise it as an obvious error and pretend it isn't there.

Any tool that produces that is buggy.
Received on Monday, 11 November 2002 10:36:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:21 UTC