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

[whatwg] Control over selection direction

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Wed, 12 Jan 2011 19:09:56 -0500
Message-ID: <AANLkTimxMGWMAc-HSbXezThSjUdZLgEGuqvSUQ_-FZ3p@mail.gmail.com>
On Wed, Jan 12, 2011 at 2:35 PM, Marijn Haverbeke <marijnh at gmail.com> wrote:
> So I propose a selectionAnchor property, which holds either "top" or
> "bottom", and can be set to one of these strings to modify the
> direction. "top" would mean the anchor lies after the base of the
> selection, so further shift-movement modifies the bottom, whereas
> "botton" means the inverse, with movement modifying the top.

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.
Received on Wednesday, 12 January 2011 16:09:56 UTC

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