W3C home > Mailing lists > Public > www-style@w3.org > December 2000

Re: CSS comment syntax

From: Peter S. Linss <peter@linss.com>
Date: Sat, 02 Dec 2000 10:47:51 -0800
Message-ID: <3A2943D7.7D1D9F48@linss.com>
To: www-style@w3.org
Bjoern Hoehrmann wrote:

> Hi,
>
> Which of these lines are comments and what is their content?
>
> /**/
> /** */
> \/* */
> /* \*/ */
>
> I'd say 1, 2 and 4 are comments, with the content '', '* ' and ' \*/ ',
> correct?

Almost, the content of #4 is ' */ ' since the backslash is an escape
removing the significance of the *, the escape is not included in the
content. If you wanted ' \*/ ' then you'd have to have used ' /* \\\*/ */'
(escaping both the backslash and the *).

>
>
> regards,
> --
> Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
> am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
> 25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
>   "Everything we see or seem is but a dream within a dream" - E.A. Poe
Received on Saturday, 2 December 2000 13:48:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:06 GMT