[whatwg] Control over selection direction

Ryosuke Niwa ryosuke.niwa at gmail.com
Thu Jan 13 01:26:29 PST 2011


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



More information about the whatwg mailing list