Bug 118803

Summary: document.elementFromPoint doesn't work if text nodes are attached on a ShadowRoot
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, kling, koivisto, simon.fraser, tkent, tonikitoo, webkit-bug-importer
Priority: P2 Keywords: BlinkMergeCandidate, InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 148695    

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
<rdar://problem/26153844>
Comment 4 Ryosuke Niwa 2016-10-05 16:22:19 PDT
Fixed in https://bugs.webkit.org/show_bug.cgi?id=162882 instead.