W3C home > Mailing lists > Public > www-validator@w3.org > April 2006

Re: Error Message Feedback: invalid comment declaration

From: David Dorward <david@dorward.me.uk>
Date: Tue, 11 Apr 2006 13:56:44 +0100
To: Sanabria Fredric <frsaa@wmdata.com>
Cc: www-validator@w3.org
Message-ID: <20060411125644.GG21817@us-lot.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:21 GMT