[whatwg] Re: Textarea and new line
Malcolm Rowe
malcolm-what at farside.org.uk
Wed Jun 30 06:20:06 PDT 2004
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
More information about the whatwg
mailing list