W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > November 2011

[Bug 13983] WF2: It seems like textarea's raw value should always normalize newlines to \n

From: <bugzilla@jessica.w3.org>
Date: Wed, 02 Nov 2011 19:42:50 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RLgi2-0007qa-5C@jessica.w3.org>

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED

--- Comment #11 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-11-02 19:42:48 UTC ---
Ah, well that's good to know.

Changing this basically makes textLength useless — until now, it's been
useful because it compares to maxlength="". But I guess if it equals
value.length it's useless anyway.

So new proposal:
 - value should be raw value normalised to \n.
 - raw value with \n turned to \r\n is what is submitted.
 - setting value sets raw value unmodified
 - textLength returns value.length
 - textContent should not be normalised

I think this matches Chrome, more or less.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 2 November 2011 19:42:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:22 UTC