W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] Parsing: comment tokenization

From: David Håsäther <hasather@gmail.com>
Date: Sun, 08 Apr 2007 00:48:15 +0200
Message-ID: <op.tqfqypnop8frts@hasather.net>
Nicholas Shanks wrote:

> On a related matter, does anyone know if WinIE correctly supports
> comments inside tags other than those that begin "<!--" ?
> e.g:
>
> <!DOCTYPE html [
> <!ENTITY nbhy CDATA "&#8209;" -- non-breaking hyphen -->
> ]>
> <object
>      foo="bar"    -- this does foobar stuff --
>      bish="bosh"  -- this hits people over the head --
>      bash="bush"  -- this elects a democrat --
>  >

Markup starting with "<!" are declarations in SGML (assuming the reference  
conrete syntax), not tags.
But what do you mean by support? From an SGML point of view, it's a markup  
error -- you can only have comments inside a markup declaration. I'm  
pretty sure nothing will "break" though.
Why do you ask?

-- 
David H?s?ther
Received on Saturday, 7 April 2007 15:48:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:34 UTC