[whatwg] Control over selection direction

Aryeh Gregor Simetrical+w3c at gmail.com
Wed Jan 12 16:09:56 PST 2011


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.



More information about the whatwg mailing list