[w3c/uievents] Declare whether line breaks in `CompositionEvent.data` and `InputEvent.data` should be as-is or converted to `\n` (#251)

Trusted `CompositionEvent.data` and `InputEvent.data` may include line breaks. In that case, how should they be treated?

`HTMLTextAreaElement.value` treats/coverts `\r` and `\r\n` as/to `\n`. I think that automatically converting them to `\n` does make sense for web apps because I don't have any ideas of demand of handling raw platform dependent line breaks and the sanitizing cost at using them may not be cheap.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/251

Received on Tuesday, 26 November 2019 04:56:41 UTC