[whatwg] Comment Syntax and Parsing

On Wed, 25 Jan 2006, Lachlan Hunt wrote:
> 
> I tested the following in the live dom viewer using Firefox 1.5.0.1 Win 
> and Mac, Opera 8.5/Mac, Opera 9 Win and Mac, Safari 2.0.3, IE6, OmniWeb 
> 5.1.2 and iCab 3.0.1.
> 
> <!DOCTYPE html>
> PA<!-- > FAIL -- >SS

This triggers SGML comment parsing mode (which you don't want to be 
testing) in a number of browsers.

Also, it will trigger re-parse in browsers that look for --> and reparse 
at unexpected EOF. You should test it using:

   PA<!-- > FAIL -- >SS-->

...I think. (If you can tell me how to fix it so it works in OmniWeb, I'll 
update the script.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 24 January 2006 15:54:05 UTC