Re: Comment syntax

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 UTC