W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: Comment syntax

From: Zachary “Gamer_Z.” Yaro <zmyaro@gmail.com>
Date: Sat, 25 Aug 2012 01:20:27 -0400
Message-ID: <CANFzyv+p4TOAoEA59usVsAXww+sEzsdUPeojEyzOBOH_HeqKeA@mail.gmail.com>
To: liam@w3.org
Cc: WWW Style <www-style@w3.org>, "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>, "Jens O. Meiert" <jens@meiert.com>
Just my 2¢, but how is that different from JavaScript, which can also be
added in HTML attributes and also has minimization tools?

—Zachary “Gamer_Z.” Yaro
On Aug 25, 2012 1:04 AM, "Liam R E Quin" <liam@w3.org> wrote:

> On Fri, 2012-08-24 at 18:54 +0800, Kang-Hao (Kenny) Lu wrote:
>
> > So the concrete proposal for "//" comment would be:
> [...]
>
> A concern I have about this is that it turns a non-line-oriented format
> into one where newlines are significant.
>
> <span style="color: red;// background-color: yellow; font-size: 36pt;">
> Is "font-size" commented out in (1) the mind of the author, (2) the mind
> of the parser?
>
> In
> <span style="color: red;
>             // background-color: yellow;
>             font-size: 36pt;">
>
> how does attribute value normalization interact with the comment?
>
> What about css minimization tools that remove as much whitespace as
> possible?
>
> I think a line-sensitive comment belongs in a server-side preprocessor.
>
> Liam
>
> --
> Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
> Pictures from old books: http://fromoldbooks.org/
> Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
> Co-author, 5th edition of "Beginning XML", Wrox, July 2012
>
>
>
Received on Sunday, 26 August 2012 12:18:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT