[whatwg] Control over selection direction

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