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

[whatwg] Re: Textarea and new line

From: Malcolm Rowe <malcolm-what@farside.org.uk>
Date: Wed, 30 Jun 2004 14:20:06 +0100
Message-ID: <courier.40E2BE06.000057AB@mail.farside.org.uk>
Ian Hickson writes:
>> How a new line will be represented ?
>> On Mac new line = \r => One character,
>> On Unix/Linux new line = \n => One character;
>> On Windows new line = \r\n => Two characters.
> Good point. I've added text to the spec saying that a newline should
> always be submitted as a single U+000A character (what you call \n).
> (Chosen because that is the official newline character in CSS too.)

What do existing implementations do? (I assume we're talking about hard 
linebreaks in <TEXTAREA> elements, btw). Much as I hate it, CRLF would be 
more typical, given that SMTP and HTTP both mandate CRLF in parts. 

But I think that you need to answer the first question first. 

Regards,
Malcolm 
Received on Wednesday, 30 June 2004 06:20:06 UTC

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