File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
test/web-platform-tests/to-upstream/dom/nodes Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < title > querySelector on multi-level query selecting</ title >
3+ < meta charset ="utf-8 ">
4+ < script src ="/resources/testharness.js "> </ script >
5+ < script src ="/resources/testharnessreport.js "> </ script >
6+ <!-- Regression test for https://github.com/jsdom/jsdom/issues/#3928 -->
7+
8+ < div >
9+ < span id ="span1 "> Actions</ span >
10+ < ul >
11+ < li >
12+ < a href ="/ ">
13+ < span id ="span2 "> Link</ span >
14+ </ a >
15+ </ li >
16+ </ ul >
17+ </ div >
18+
19+ < script >
20+ "use strict" ;
21+
22+ test ( ( ) => {
23+ const target = document . getElementById ( "span2" ) ;
24+ const anchor = document . querySelector ( "a" ) ;
25+ const span = anchor . querySelector ( "span" ) ;
26+ assert_equals ( span , target ) ;
27+ } ) ;
28+ </ script >
You can’t perform that action at this time.
0 commit comments