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

Re: Comment syntax

From: Liam R E Quin <liam@w3.org>
Date: Tue, 28 Aug 2012 00:47:02 -0400
To: "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>
Cc: (wrong string) “Gamer_Z.” "Yaro\"" <zmyaro@gmail.com>, WWW Style <www-style@w3.org>, "Jens O. Meiert" <jens@meiert.com>
Message-ID: <1346129222.12810.37.camel@localhost.localdomain>
On Mon, 2012-08-27 at 19:44 +0800, Kang-Hao (Kenny) Lu wrote:
[...]
> (12/08/25 13:01), Liam R E Quin wrote:
> > <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?
> 
> Can you elaborate? Are you suggesting "font-size" should not be
> commented out? That would be another proposal D.

It's the status quo, as Tab pointed out.

> 
> > In
> > <span style="color: red;
> >             // background-color: yellow;
> >             font-size: 36pt;">
> >
> > how does attribute value normalization interact with the comment?
> 
> What is attribute value normalization?

In XML and SGML attributes, newlines are converted to spaces by the
parser. E.g. see
http://www.w3.org/TR/REC-xml/#AVNormalize

So, my two examples are actually the same. This doesn't matter for the
status quo, with // working only up to the next ";", but does matter
if // becomes a legal comment character.

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", July 2012
Received on Tuesday, 28 August 2012 04:47:15 GMT

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