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

Re: Comment syntax

From: Liam R E Quin <liam@w3.org>
Date: Sat, 25 Aug 2012 09:35:40 -0400
To: Zachary “Gamer_Z.” Yaro <zmyaro@gmail.com>
Cc: WWW Style <www-style@w3.org>, "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>, "Jens O. Meiert" <jens@meiert.com>
Message-ID: <1345901740.9007.3.camel@localhost.localdomain>
On Sat, 2012-08-25 at 01:20 -0400, Zachary “Gamer_Z.” Yaro wrote:
> Just my 2¢, but how is that different from JavaScript, which can also be
> added in HTML attributes and also has minimization tools?

When the minimization tools were written for JavaScript, JavaScript
already had comments that ran to the end of the line, so people writing
tools had to allow for it.

CSS did (does) not have comments that go to a newline, so today it's
safe to turn newlines into spaces.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
The barefoot typographer - http://www.holoweb.net/~liam/
Co-author, 5th edition of "Beginning XML" - Wiley, July 2012
Received on Saturday, 25 August 2012 13:36:11 GMT

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