W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] Control over selection direction

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Sun, 16 Jan 2011 15:21:52 -0500
Message-ID: <AANLkTi=E95SgMT-hgg3qc0dTkSWJbH59wUjuFyO24msa@mail.gmail.com>
On Fri, Jan 14, 2011 at 4:06 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> If you accept that other selection APIs can't be used in textarea / input,
> then why would you expect your property/method to specify direction can be?
> ?Specifically that this direction property/method works for textarea / input
> and other properties/method doesn't is very inconsistent, and very unlikely
> to be adopted by browser vendors. ?(I for one will not support such an
> interface if proposed in the WebKit community).

Currently there are two totally different selection APIs.  There's one
for selections in the DOM, which is accessed using
 But this doesn't work for text in inputs/textareas, since that's not
in the DOM, so they have their own API:
 The two APIs are already unrelated and inconsistent, which is bad,
but that's the situation.  The proposal here is to extend the latter
API slightly.  So I'm not sure what you mean.
Received on Sunday, 16 January 2011 12:21:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC