Re: [w3c/selection-api] Specify Selection.modify()? (#37)

Just as a start, the Web IDL would be something like this:
```WebIDL
void modify(optional DOMString alter,
            optional DOMString direction,
            optional DOMString granularity);
```

It's a no-op if passed anything other than these strings:
* alter: "extend", "move"
* direction: "forward", "backward", "left", "right"
* granularity: "character", "word", "sentence", "line", "paragraph", "lineboundary", "sentenceboundary", "paragraphboundary", "documentboundary"

Actual behavior, I dunno :)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/37#issuecomment-285242046

Received on Thursday, 9 March 2017 03:10:34 UTC