[Webkit-unassigned] [Bug 76839] Range.getclientrects returns too many rects, some incorrect, for ranges including partial content of elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 27 05:25:49 PST 2012


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





--- Comment #2 from JuanCar Gallego <jcgallego74 at gmail.com>  2012-01-27 05:25:49 PST ---
More information.

It seems like two close problems:

1. Range.getClientRects return rects for the partially selected text nodes in the startContaniner and endContainer. Correct. But for the not border elements it returns both rects for the whole elements, and rects for any text "fragment" inside them. It's redundant and confusing, and I think uncompliant with http://www.w3.org/TR/cssom-view/#extensions-to-the-range-interface

2. Correcting my first description of the problem: When endContainer is partially selected, and endContainer doesn't match startContainer, Range.getClientRects returns rect for the topmost ancestor of the endContainer whose parent contains the whole range (the child of range.commonAncestorContainer containing or being endContainer). This is clearly an error, because part of that rect (remember endContainer is partially selected) is outside the range.

-- 
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