t => {
    var shadow = document.querySelector('#block4').attachShadow({"mode":"closed"});
    shadow.innerHTML = "<a id='block4a' onclick='void(0)'>Click!</a>";
    var a = shadow.querySelector('#block4a');
    a.addEventListener('securitypolicyviolation', t.step_func_done(e => {
      assert_equals(e.blockedURI, "inline");
      assert_equals(e.target, a);
    }));
    a.click();
  }, "Correct targeting inside shadow tree (inline handler).");
</script>

<!-- Inline event handler inside Shadow DOM -->
<div