Bug 220132 - Web Inspector: Search in Element tab should match elements in closed Shadow DOM
Summary: Web Inspector: Search in Element tab should match elements in closed Shadow DOM
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-12-23 16:37 PST by Tim Guan-tin Chien [:timdream]
Modified: 2020-12-23 16:37 PST (History)
2 users (show)

See Also:


Attachments
only matches <script> (609.39 KB, image/png)
2020-12-23 16:37 PST, Tim Guan-tin Chien [:timdream]
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Guan-tin Chien [:timdream] 2020-12-23 16:37:04 PST
Created attachment 416732 [details]
only matches <script>

STR:

1. Load this URL, which creates a closed Shadow DOM with a <span>

data:text/html,<script>window.onload = () => { let sr = document.body.attachShadow({mode: "closed"}); sr.innerHTML = "<span class=match>match me</span>";</script>

2. Open element inspector, click on <head>
3. Cmd+F and type "match"

Expected:

1. There should be two matches, <script> and the <span> in the closed Shadow DOM.

Actual:

1. It only matches <script> in the document DOM.

Note:

STP 116.
Comment 1 Radar WebKit Bug Importer 2020-12-23 16:37:29 PST
<rdar://problem/72638106>