W3C home > Mailing lists > Public > www-style@w3.org > May 1998

Re: CORRECTION: Escaped characters except '\A' in generated content?

From: Bert Bos <Bert.Bos@sophia.inria.fr>
Date: Mon, 4 May 1998 23:04:12 +0200 (MET DST)
To: "Andrew n marshall" <amarshal@usc.edu>
Cc: "W3C Style List" <www-style@w3.org>
Message-ID: <13646.10567.554262.563545@mygale.inria.fr>
Andrew n. marshall writes:
 > > -----Original Message-----
 > > From: Andrew n marshall
 > > Sent: Sunday, May 03, 1998 11:31 AM
 > > To: W3C Style List
 > > Subject: Escaped characters except '\A' in generated content?
 >  . . .
 > > Are there any other similarly escaped characters, especially something like
 > '\\' to allow '\A' as literal escaped content.
 > That should end "...as literal content.".

Yes, although \A is somewhat special, as it is a control code
that has been given a meaning in CSS. All other escapes are just
visible letters.

See chapter 4:

"\x" (where x is not a hex digit) can be used to escape any
character. Thus C\&A is the identifier C&A, even though "&" cannot
normally occur in an identifier.

This includes "\\", which therefore stands for a single "\". For
example, the string "C:\\" is printed as "C:\"

"\hhh " (where hhh stands for up to 6 hex digits) is the character
with Unicode number hhh. Thus C\26 A is another way to write the
identifier C&A.

Following the above rule "\A" stands for the linefeed character, but
that is a control code and normally not visible. Instead, CSS2 says
that this control code forces a newline when it occurs in generated

The final escape is "\" followed by a newline. When this occurs inside
a string, both the "\" and the newline are removed from the string.

  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Monday, 4 May 1998 17:04:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:47 UTC