WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
118803
document.elementFromPoint doesn't work if text nodes are attached on a ShadowRoot
https://bugs.webkit.org/show_bug.cgi?id=118803
Summary
document.elementFromPoint doesn't work if text nodes are attached on a Shadow...
Ryosuke Niwa
Reported
2013-07-17 11:03:24 PDT
Consider merging
https://chromium.googlesource.com/chromium/blink/+/1b5e6d8d09e59fb25df0319e48af4fb05493856a
In TreeScope::elementFromPoint, - nodeFromPoint can return a Text node which is a child of a ShadowRoot. We should search ancestors of the ShadowRoot in this case. - ancestorInThisScope returns this ShadowRoot if |this| is passed. We should handle such case.
Attachments
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2013-07-17 14:19:54 PDT
I don't think the problem happens in WebKit because of no Shadow DOM API.
Ryosuke Niwa
Comment 2
2016-04-11 01:50:32 PDT
We should check if this is still broken or not.
Radar WebKit Bug Importer
Comment 3
2016-05-06 19:11:23 PDT
<
rdar://problem/26153844
>
Ryosuke Niwa
Comment 4
2016-10-05 16:22:19 PDT
Fixed in
https://bugs.webkit.org/show_bug.cgi?id=162882
instead.
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