summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/1026714.html
blob: 465d62942d43b0d1729144b6d95e4e9e46f650c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<body onload="f()">
  <div></div>
  <style>
    div { color: blue; }
  </style>
  <script>
    function f() {
      // This should not leak.
      var div = document.querySelector("div");
      var shadow = div.createShadowRoot();
      shadow.innerHTML = '<div><style scoped>p { color: green; }</style>';
    }
  </script>
</body>