summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/invokers/invoketarget-generic-eventtarget-crash.tentative.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/semantics/invokers/invoketarget-generic-eventtarget-crash.tentative.html')
-rw-r--r--testing/web-platform/tests/html/semantics/invokers/invoketarget-generic-eventtarget-crash.tentative.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/invokers/invoketarget-generic-eventtarget-crash.tentative.html b/testing/web-platform/tests/html/semantics/invokers/invoketarget-generic-eventtarget-crash.tentative.html
new file mode 100644
index 0000000000..b2179640dd
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/invokers/invoketarget-generic-eventtarget-crash.tentative.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<meta charset="utf-8" />
+<meta name="author" title="Keith Cirkel" href="mailto:wpt@keithcirkel.co.uk" />
+<link rel="help" href="https://open-ui.org/components/invokers.explainer/" />
+<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>