[whatwg] Control over selection direction

Ryosuke Niwa rniwa at webkit.org
Fri May 6 14:52:56 PDT 2011


On Fri, May 6, 2011 at 2:44 PM, Ian Hickson <ian at hixie.ch> wrote:

> On Fri, 6 May 2011, Ryosuke Niwa wrote:
> > On Tue, May 3, 2011 at 4:49 PM, Ian Hickson <ian at hixie.ch> wrote:
> > >
> > > I've added selectionDirection = 'forward'/'backward'/'none'. ('none' is
> > > the default selection direction on Mac OS.)
> >
> > Thank you for the update!  One thing to point out is that
> setSelectionRange
> > in WebKit currently sets "forward" direction when the argument is omitted
>
> That's a bug in WebKit. It doesn't match platform conventions.


What makes you say that? If there's no compatibility issue or a strong
argument for it, I'm very reluctant to change WebKit's behavior since the
current behavior matches with those of Internet Explorer and Firefox.

- Ryosuke



More information about the whatwg mailing list