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

Re: [CSS21] Escaping characters (comment, editorial)

From: timeless <timeless@gmail.com>
Date: Sun, 3 Apr 2011 15:51:22 +0300
Message-ID: <BANLkTi=DACZxn52wM8cFAYdAZKyTF2mhfw@mail.gmail.com>
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Cc: www-style@w3.org
On Sun, Feb 20, 2011 at 7:14 PM, Leif Halvard Silli
<xn--mlform-iua@xn--mlform-iua.no> wrote:
>  For the sentence:
>    "First, inside a string, a backslash followed by a newline is
>     ignored (i.e., the string is deemed not to contain either the
>     backslash or the newline)."
>  Insert the wording "backslash newline escape" etc:
>    "First, inside a string, a plain backslash newline escape (backslash
>     followed by newline) cancels the meaning of the newline so that
>     the string is deemed to not contain whether backslash or newline."

it should be "demeed to contain neither backslash nor newline". You
have 'whether' which i think is a typo for 'either'.

>  For the sentence:
>    "Second, it cancels the meaning of special CSS characters."
>  Replace "it cancels" with "using plain backslash escapes to cancel":
>    "Second, using plain backslash escapes to cancel the meaning of
> special
>     CSS characters."
>  Add note about what "special CSS characters" means:
>    "Special characters include all characters that have syntactic
>     meaning in CSS: quotes, combinators, characters that have special
>     meaning inside CSS indentifiers and characters that cannot appear
>     unescaped inside CSS identifiers."
>     [Are there other special characters?]

I believe the null character may count (\0).

>  Add, at the end of the the paragraph which begins "Second, it
> cancels",
>  the following note:
>    "Note that even hexadecimal backslash escapes (see next paragraph)
>     cancel the meaning of special CSS characters."
>  Add, att the end of the paragraph which begins "Third, backslash
> escapes
>  allow authors to refer to characters they cannot easily put in a
>  document", the following note:
>    "Note that even plain backslash escapes can sometimes be used to
>     escape charactars which the document somehow prevents from being


>     typed directly. In the following example from inside a 'style'
>     element in a HTML document, the "/" is escaped to prevent the
>     'style' element from being prematurely ended:
>       <style type="text/css">
>         div::before { content: "<style><\/style>"; }
>       </style>
Received on Sunday, 3 April 2011 12:51:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC