W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2007

[whatwg] CR "entities" and LFCR

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 8 Jun 2007 14:44:47 +0300
Message-ID: <E74E5828-D47C-48F9-BBA1-44E285A82754@iki.fi>
On Jun 8, 2007, at 09:24, Kristof Zelechovski wrote:

> Reading a file in text mode ignores all carriage return control  
> characters.
> Stray carriage returns are ignored as well.

Depends on what does the reading.

> I do not think Macintosh text files should be allowed on the Web  
> without
> encoding.

I agree that sending Mac* encodings to a public network is  
inappropriate. However, support for old Mac-style line breaks  
regardless of encoding is commonplace and, de facto, needs to be  

XML converts LF, CRLF and CR to LF on the character stream level and  
leaves escaped CR or CRLF in the infoset.

Henri Sivonen
hsivonen at iki.fi
Received on Friday, 8 June 2007 04:44:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC