[whatwg] Control over selection direction

Ryosuke Niwa rniwa at webkit.org
Thu Jan 13 08:45:10 PST 2011


On Thu, Jan 13, 2011 at 1:26 AM, Ryosuke Niwa <ryosuke.niwa at gmail.com>wrote:

> 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