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

[whatwg] Control over selection direction

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 6 May 2011 21:56:30 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1105062155400.25791@ps20323.dreamhostps.com>
On Fri, 6 May 2011, Ryosuke Niwa wrote:
> 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.

On Windows, sure, it should default to "forward" just like the spec says. 
But on Mac, it should default to "none", since otherwise the behaviour is 
inconsistent with the platform selection behaviour.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 6 May 2011 14:56:30 UTC

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