Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf-8" />
<meta name="author" title="Keith Cirkel" href="mailto:wpt@keithcirkel.co.uk" />
<div id="invoker"></div>
<script type="module">
const invokeEvent = new InvokeEvent('invoke', { bubbles: true });
document.body.addEventListener('invoke', e => {
e.invoker.toString();
});
invoker.addEventListener('invoke', e => {
e.invoker.toString();
});
invoker.dispatchEvent(invokeEvent);
await Promise.resolve();
invokeEvent.invoker.toString();
</script>