<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/csp-violations.js"></script>
<meta http-equiv="Content-Security-Policy"
      content="require-trusted-types-for 'script'; connect-src 'none';">
<body>
  <script>
    const policy = trustedTypes.createPolicy("dummy", { createHTML: x => x });
    const input = `<p>${'A'.repeat(100)}</p>`;
    function createShadowRoot() {
      return document.createElement('div').att