[whatwg] Request for implementer feedback: granularity definitions for Selection.modify()

2011-01-30 Thread Aryeh Gregor
I'm working on a definition of Selection.modify(), and have run into the problem of how to define the various granularities used there. (See https://developer.mozilla.org/en/DOM/selection/modify for basic docs.) The intent of the API is clearly that, e.g., selection.modify(move, right, character)

Re: [whatwg] Request for implementer feedback: granularity definitions for Selection.modify()

2011-01-30 Thread Ian Hickson
On Sun, 30 Jan 2011, Aryeh Gregor wrote: I'm working on a definition of Selection.modify(), and have run into the problem of how to define the various granularities used there. (See https://developer.mozilla.org/en/DOM/selection/modify for basic docs.) The intent of the API is clearly

Re: [whatwg] Request for implementer feedback: granularity definitions for Selection.modify()

2011-01-30 Thread Glenn Maynard
On Sun, Jan 30, 2011 at 6:18 PM, Ian Hickson i...@hixie.ch wrote: On Sun, 30 Jan 2011, Aryeh Gregor wrote: I'm working on a definition of Selection.modify(), and have run into the problem of how to define the various granularities used there. (See

Re: [whatwg] Request for implementer feedback: granularity definitions for Selection.modify()

2011-01-30 Thread Tim Down
It seems to me like there's an additional complication: presumably Selection.modify() acts on only the text that is visible to the user, which lands you with the problem of first specifying what that text is. This is similar to the problem presented by specifying the toString() method of Selection