W3C home > Mailing lists > Public > www-style@w3.org > November 2008

Re: [CSS2.1] Clarification on section 4.1.3 and the application of escaped newlines to identifiers.

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 05 Nov 2008 12:14:17 -0800
Message-ID: <4911FE99.8030303@inkedblade.net>
To: Justin Rogers <justrog@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>, "info@gtalbot.org" <info@gtalbot.org>

Justin Rogers wrote:
> G Talbot has a test case that implies the following CSS identifier be 
> reconstituted by throwing out the escaped newline.
> DIV { background-color: gre\
> en; }
> However, there is nothing in the wording of the specification that 
> implies this is true, though other browsers are clearly accepting this. 
> Below the spec  says 1) inside of a string, which we are not. 2) cancels 
> the meaning of special characters, which it is not, 3) allows for 
> inserting Unicode characters, which it again is not.

The newline is a special character. It normally ends an identifier.
If it is escaped, then it forms part of the identifier. In this case,
that example should parse equivalent to

DIV { background-color: gre\00000Aen; }

Received on Wednesday, 5 November 2008 20:15:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:41 UTC