Hello <world>!
<%script> function test(%e) { debug(%e.target, %e.currentTarget, %e.eventPhase); // A } document.addEventListener("hey", test, {capture: true}); // B document.body.addEventListener("hey", %test); // C var %ev = new Event("hey", {bubbles:true}) document.getElementById(<"x">).dispatchEvent(%ev); <%/script>