W3C home > Mailing lists > Public > www-style@w3.org > October 2012

[css3-syntax] Null bytes and U+0000

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sat, 06 Oct 2012 12:39:30 +0200
Message-ID: <50700A62.7000107@kozea.fr>
To: WWW Style <www-style@w3.org>
Hi,

CSS 2.1 mentions in 4.1.3:

 > It is undefined in CSS 2.1 what happens if a style sheet does
 > contain a character with Unicode codepoint zero.

However, U+0000 is not mentioned at all in css3-syntax (apart from being 
non-printable.) I think that css3-syntax as it stands requires 
implementation to handle U+0000 like any other code point.

Can this be problematic for implementations where the null byte is a 
string terminator? Should we allow them to use U+FFFD REPLACEMENT 
CHARACTER instead, where they should have U+0000 but can not? For 
example for a zero hexadecimal escape: \0

-- 
Simon Sapin
Received on Saturday, 6 October 2012 10:40:04 GMT

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