[Webkit-unassigned] [Bug 29937] caretRangeFromPoint() returns wrong result for text in <textarea>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 30 15:53:02 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29937





--- Comment #2 from Xiaomei Ji <xji at chromium.org>  2009-09-30 15:53:02 PDT ---
(In reply to comment #1)
> I don't believe this can work.  Typing into a text area does not alter the DOM,
> so this would return shadow content which is an implementation detail.

I tried to change the above code piece, after I type in "this is a test" in the
textarea, mouse clicking shows the same/similar result as mouse clicking in the
paragraph above the textarea (the actual containing nodes are different
though).

Typing into textarea does not alter DOM, but why need shadowAncestorNode() to
change the hit-test node (and offset) if hit in textarea node? Sorry I did not
get much idea on what shadowAncestorNode() does and why it is needed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list