<!--> and HTML5

Is there any reasoning behind forbidding comments that looks like this: 
"<!--> -->" (Comparably, this is  not forbidden: "<!-- <!-->")

The forbidden comment is permitted in both XHTML and HTML4.  Hence it 
would be practical that it was permitted in HTML5 as well.

Is it a security concern? If yes, then how? And why aren't the other 
variant that I mentioned above, also a security concern?

Or is it a "all user agents must behave the same way" concern?  

For the record, I noticed that Webkit in Quirks mode  will interpret 
'<!-->' as a single comment.
-- 
leif halvard silli

Received on Sunday, 7 February 2010 03:29:39 UTC