[whatwg] Textarea and new line

Ian Hickson ian at hixie.ch
Wed Jun 30 05:53:32 PDT 2004


On Mon, 28 Jun 2004, Shift wrote:
>
> 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.)


> Which style of new line will be used ? Will it be possible to include an
> attribute to specifie the way new lines are handle or are there any ways
> to done that with current HTML specifications ?

I don't think there really is a need for an attribute -- so long as the
content is normalised on the client to always use U+000A, then on the
server you can do what you want with it.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list