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

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 28 Oct 2011 08:04:07 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RJhQ7-0001VR-O9@jessica.w3.org>

--- Comment #10 from Simon Pieters <simonp@opera.com> 2011-10-28 08:04:06 UTC ---
(In reply to comment #9)
> So from this I think it would be reasonable to say:
>  - value should be raw value normalised to \r\n (what is submitted)

Only Opera does this. We will change to normalize to \n.

>  - setting value can set raw value (since getting it is normalised
>    so it doesn't matter what the raw value really is)
>  - textLength should be based on the raw value normalised to \r\n
>    (again, what is submitted)

Should be normalized to \n.

>  - textContent should not be normalised (since that's a far broader
>    change than just <textarea> if we do it)
> I believe this is what the spec says now.
> Are there any Web-compat reasons to do something else?

Yes. We have lots of bugs on this. It breaks BBCode, apparently, where the code
gets confused about the caret's position or something and inserts it's "markup"
in the wrong place because Opera uses two characters for newlines, where other
browsers used just one.

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 Friday, 28 October 2011 08:04:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:06 UTC