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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13983

--- 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