+0200, Xiaomei Ji x...@chromium.org wrote:
Maybe I should propose Document.wordFromPoint() which directly returns
the word under the mouse (and handles both the DOM node and non-DOM form
control nodes).
It hides the information about the node and should be a useful API.
Don't you need at least
a convenience
method for converting a Range, and it probably should not give null for a
control position. We would need both the node and the offset for further
processing.
Thanks,
Xiaomei
On Fri, Oct 16, 2009 at 10:39 AM, Maciej Stachowiak m...@apple.com wrote:
On Oct 16, 2009, at 10:23 AM, Xiaomei Ji
wrote:
On Fri, 09 Oct 2009 19:04:52 +0200, Xiaomei Ji x...@chromium.org wrote:
Maybe I should propose Document.wordFromPoint() which directly returns
the word under the mouse (and handles both the DOM node and non-DOM form
control nodes).
It hides the information about the node and should
,
Xiaomei
On Thu, Oct 8, 2009 at 12:25 PM, Olli Pettay olli.pet...@helsinki.fiwrote:
On 10/8/09 10:07 PM, Xiaomei Ji wrote:
One use case is to show a tooltip of the word's definition in your
accept-language when you mouse over the word in a page.
It needs to
1. convert the mouse position
One use case is to show a tooltip of the word's definition in your
accept-language when you mouse over the word in a page.
It needs to
1. convert the mouse position to character offset within a node (by
Document.caretRangeFromPoint()http://dev.w3.org/csswg/cssom-view/#the-documentview-interface),
, Jul 30, 2009 at 4:55 AM, Anne van Kesteren ann...@opera.com wrote:
Thanks for the reply!
On Wed, 29 Jul 2009 20:17:13 +0200, Xiaomei Ji x...@chromium.org wrote:
word is a keyword. Like Microsoft's
spechttp://msdn.microsoft.com/en-us/library/ms536421%28VS.85%29.aspx,
a range could
We are proposing the following API to expose word breaker through
JavaScript.
document.extendRange(range, word)
It extends the passed-in range to a range in word boundary.
If the passed-in range is an empty range, in which the beginning and ending
are the same, the empty range will be extended
Hi Anne, Alfonso,
Thanks for your reply and the reference to Microsoft's range.expand.
Please see my reply inline.
On Wed, Jul 29, 2009 at 6:35 AM, Anne van Kesteren ann...@opera.com wrote:
Initially I did not quite understand what this API was proposing, but after
reading it a few times it