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.
<rdar://problem/72638106>