Bug 118803 - document.elementFromPoint doesn't work if text nodes are attached on a ShadowRoot
Summary: document.elementFromPoint doesn't work if text nodes are attached on a Shadow...
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: BlinkMergeCandidate, InRadar
Depends on:
Blocks: 148695
  Show dependency treegraph
Reported: 2013-07-17 11:03 PDT by Ryosuke Niwa
Modified: 2016-10-05 16:22 PDT (History)
7 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 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.
Comment 1 Kent Tamura 2013-07-17 14:19:54 PDT
I don't think the problem happens in WebKit because of no Shadow DOM API.
Comment 2 Ryosuke Niwa 2016-04-11 01:50:32 PDT
We should check if this is still broken or not.
Comment 3 Radar WebKit Bug Importer 2016-05-06 19:11:23 PDT
Comment 4 Ryosuke Niwa 2016-10-05 16:22:19 PDT
Fixed in https://bugs.webkit.org/show_bug.cgi?id=162882 instead.