k();
    a.parentNode.removeChild(a);
    t.done();
  }, "Inline event handlers for elements disconnected after triggering target the document.");
</script>

<!-- Disconnected in a DocumentFragment -->
<script nonce="abc">
  async_test(t => {
    var f = new DocumentFragment();
    var d = document.createElement('div');
    d.setAttribute('onclick', 'void(0)');
    d.addEventListener('securitypolicyviolation', t.unreached_func());
    f.appendChild(d);
    d.click();
    t.done();
  }, "Inline event handler