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

[whatwg] Control over selection direction

From: Ryosuke Niwa <ryosuke.niwa@gmail.com>
Date: Thu, 13 Jan 2011 01:26:29 -0800
Message-ID: <AANLkTinok=1Y2asPpU5wFMO5xfUveMaQMu-4fJDcZF7w@mail.gmail.com>
On Thu, Jan 13, 2011 at 12:52 AM, Marijn Haverbeke <marijnh at gmail.com>wrote:

> > This sounds good to me.  I used the term "forwards" and "backwards"
> > for the DOM Range spec, which I think make more sense.  I also think
> > selectionDirection is a better property name, as Ojan suggests.
>
> Coincidentally, that was exactly what I was going to propose at first,
> but then I found the "top"/"bottom" thing made the concepts slightly
> easier to explain ("where is the anchor" vs "if it goes in this
> direction, that means the anchor is ...").
>

I don't like "top"/"bottom" because it seems to imply certain visual
orientation. (e.g. I think RTL text in vertical writing mode flows bottom
up).  To make terms agnostic of text direction and writing mode, I'd prefer
"forwards" / "backwards".

- Ryosuke
Received on Thursday, 13 January 2011 01:26:29 UTC

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