[Webkit-unassigned] [Bug 204581] [GTK] Double-click doesn't update document::Selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 18 05:35:12 PST 2020


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

Milan Crha <mcrha at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Milan Crha <mcrha at redhat.com> ---
I made some testing here and what I wrote above is not accurate. The base/extent pair (node and offset) reference the place where had been clicked, while anchor/focus pair reference what is actually selected. These two are equal in many cases, only not here (maybe in other places too, I just faced this one).

I see I made a mistake, the WebKit exposes base/extent pairs, while these are not part of the standard [1], thus I'm going to change my code. I though the base/extent is what should be used, due to Selection::setBaseAndExtent() method, whose name confused me.

[1] https://w3c.github.io/selection-api/#selection-interface

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200218/658763b6/attachment.htm>


More information about the webkit-unassigned mailing list