Re: Error Message Feedback: invalid comment declaration

On Mon, Apr 10, 2006 at 08:30:18AM +0200, Sanabria Fredric wrote:
>    If you step down in a JavaScript loop (i = 10; i >=0; i--) , validation
>    mistakes -- for closing comment.

No, it doesn't. It correctly interprets "--" as a closing comment.

>    Example:
>    http://planer.sbk.stockholm.se/SBKPlanTemplates/SBKVPlanStart____8068.aspx

HTML 4.x and lower style "Hide script/style from browsers so old that
I've never seen one in the wild" comments should not be used in XHTML
due to the changes in the way <script> and <style> operate.

http://www.w3.org/TR/xhtml1/#h-4.8
http://hixie.ch/advocacy/xhtml

(I read the mailing list, please direct responses there and do not CC
me. Thanks).

-- 
David Dorward                                      http://dorward.me.uk

Received on Tuesday, 11 April 2006 12:56:56 UTC