WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
211343
Page::editableElementsInRect() should return root editable elements
https://bugs.webkit.org/show_bug.cgi?id=211343
Summary
Page::editableElementsInRect() should return root editable elements
Daniel Bates
Reported
2020-05-02 12:58:41 PDT
Consider a page with the following markup: <body contenteditable='true' style="margin: 0"><div style='width: 200px; height: 200px; background-color: blue'>Hello World</div></body> In the rect {10, 10, 20, 20} the <div> is hit and is editable, but Page::editableElementsInRect() return 0 elements because the <div> is not a root editable element: it is a child of a root editable element (<body>). For non form controls, Page::editableElementsInRect() is most meaningful if it returns the root editable element for each hit editable element.
Attachments
Patch
(6.67 KB, patch)
2020-05-02 13:12 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2020-05-02 13:03:40 PDT
<
rdar://problem/60015801
>
Daniel Bates
Comment 2
2020-05-02 13:12:55 PDT
Created
attachment 398295
[details]
Patch
Daniel Bates
Comment 3
2020-05-02 14:21:23 PDT
Comment on
attachment 398295
[details]
Patch Clearing flags on attachment: 398295 Committed
r261054
: <
https://trac.webkit.org/changeset/261054
>
Daniel Bates
Comment 4
2020-05-02 14:21:25 PDT
All reviewed patches have been landed. Closing bug.
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