<!DOCTYPE html>
<meta charset="utf-8">
<title>Change the scope of querySelectorAll</title>
<link rel="help" href="https://drafts.csswg.org/selectors/#the-scope-pseudo">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<!-- Regression test for https://github.com/jsdom/jsdom/issues/3906 -->

<script>
"use strict";

test(() => {
  const data = `<plist>
    <dict>
      <key id="target1">PayloadType</key>
      <string>Configuration</string>
      <key>P