W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] Comment Syntax and Parsing

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 23 Jan 2006 03:28:14 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0601230324010.9516@dhalsim.dreamhost.com>
On Sun, 22 Jan 2006, Simon Pieters wrote:
> 
> Ignoring what is a conforming comment, is it safe to assume that comments
> should now be parsed roughly the same way as IE6 parses comments?

Not really. Sadly IE6's comment parsing is _really_ strange.


> I believe that other browsers parse comments as IE6 does in their quirks 
> mode, so they could just use their quirks comment parsing code for 
> standards mode aswell.

Nah, pretty much every UA has slightly different comment parsing, and many 
of them suffer from the security problem I mentioned earlier today (the 
one with the comment containing hostile script being exposed through a DOS 
attack).

The comment parsing currently described in the HTML5 spec is quite simple 
and easy to implement, thankfully.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 22 January 2006 19:28:14 UTC

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