WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
286941
Enable document.caretPositionFromPoint() by default
https://bugs.webkit.org/show_bug.cgi?id=286941
Summary
Enable document.caretPositionFromPoint() by default
Rob Buis
Reported
2025-02-03 10:56:58 PST
Enable caretPositionFromPoint() by default, it was implemented in
https://bugs.webkit.org/show_bug.cgi?id=172137
.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-02-03 11:03:15 PST
<
rdar://problem/144101675
>
Anne van Kesteren
Comment 2
2025-02-10 02:41:41 PST
Does this work well for SVG? In
https://github.com/WebKit/WebKit/pull/39814
I ran into an issue that when SVG is inside a shadow tree and you attempt to hit test it, you don't get the host element back. I suspect this API has the same flaw and could thus be used to detect shadow trees. Please make sure this is tested before enabling.
Anne van Kesteren
Comment 3
2025-02-11 23:33:40 PST
See
bug 287472
for the issue with SVG, I very much expect it would impact this API as well and I don't think we should enable it with that bug in place.
Anne van Kesteren
Comment 4
2025-02-18 23:42:54 PST
I found another issue with media elements:
bug 287796
.
Aditya Keerthi
Comment 5
2025-08-06 19:11:49 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/49043
EWS
Comment 6
2025-08-07 07:40:26 PDT
Committed
298336@main
(8a14a6497b6d): <
https://commits.webkit.org/298336@main
> Reviewed commits have been landed. Closing PR #49043 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug