Bug 220132

Summary: Web Inspector: Search in Element tab should match elements in closed Shadow DOM
Product: WebKit Reporter: Tim Guan-tin Chien [:timdream] <timdream>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: All   
Attachments:
Description Flags
only matches <script> none

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>