Bug 118803
Summary: | document.elementFromPoint doesn't work if text nodes are attached on a ShadowRoot | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | DOM | Assignee: | 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 |
Ryosuke Niwa
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
I don't think the problem happens in WebKit because of no Shadow DOM API.
Ryosuke Niwa
We should check if this is still broken or not.
Radar WebKit Bug Importer
<rdar://problem/26153844>
Ryosuke Niwa
Fixed in https://bugs.webkit.org/show_bug.cgi?id=162882 instead.