W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: Single-line comments

From: Glen <glen.84@gmail.com>
Date: Sat, 03 Apr 2010 21:16:41 +0200
Message-ID: <4BB79419.3000602@gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
CC: François REMY <fremycompany_pub@yahoo.fr>, www-style@w3.org
On 2010/04/03 20:46, Brad Kemper wrote:
> I think as long as it was outside of the rule block and before the 
> line feed character, it would just get thrown away, and the practical 
> effect would often be the same as a comment. But if the white space 
> (including line feeds) was ever collapsed into a single space (as some 
> existing editors or optimizers might do), then it would interfere with 
> the next selector.
>
> Anyway, the WG discussed the proposal on 2010-03-24, and it is in the 
> minutes. The issue was closed.

I didn't know it was discussed in the meeting, no one even replied to my 
initial message to the list. RESOLVED with a question mark after a short 
discussion -- interesting.

The biggest point against it seems to be compatibility with older 
browsers, which I addressed in my previous message.

> On Apr 3, 2010, at 10:59 AM, François REMY wrote:
>
>> No theorical objection. They are practical objections though. How 
>> will it work
>> when you use // comments with 'old' browsers ? It will not work. So 
>> you can't
>> use it in a safe way.
>>
>> *From:* Glen <mailto:glen.84@gmail.com>
>> *Sent:* Saturday, April 03, 2010 7:26 PM
>> *To:* www-style@w3.org <mailto:www-style@w3.org>
>> *Subject:* Re: Single-line comments
>>
>> No replies? Does that mean no objections? :-)
>>
>> On 2010/03/19 21:08, Glen wrote:
>>> Hi,
>>>
>>> Has there ever been any discussion regarding the addition of 
>>> single-line comments?  //color: red;
>>>
>>> It's a lot faster to type when you just want to toggle a single 
>>> declaration. It's also obviously useful for permanent comments where 
>>> multiple lines are not required.
>>>
>>> Glen.
>
Received on Saturday, 3 April 2010 19:17:29 GMT

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