diff --git a/html/semantics/invokers/idlharness.tentative.html b/html/semantics/invokers/idlharness.tentative.html index 8a86a5aaa1811b5..e52ab063f841ff8 100644 --- a/html/semantics/invokers/idlharness.tentative.html +++ b/html/semantics/invokers/idlharness.tentative.html @@ -10,7 +10,7 @@ diff --git a/html/semantics/invokers/invokeelement-interface.tentative.html b/html/semantics/invokers/invokeelement-interface.tentative.html index 5adacadabb4dcec..6821adf71fee0c0 100644 --- a/html/semantics/invokers/invokeelement-interface.tentative.html +++ b/html/semantics/invokers/invokeelement-interface.tentative.html @@ -5,89 +5,84 @@ - +
diff --git a/html/semantics/invokers/invokeevent-dispatch-shadow.tentative.html b/html/semantics/invokers/invokeevent-dispatch-shadow.tentative.html index 1ecff887608842b..fb2a113994f7627 100644 --- a/html/semantics/invokers/invokeevent-dispatch-shadow.tentative.html +++ b/html/semantics/invokers/invokeevent-dispatch-shadow.tentative.html @@ -25,7 +25,7 @@ let hostEventTarget = null; let hostEventInvoker = null; slot.addEventListener( - "invoke", + "command", (e) => { childEvent = e; childEventTarget = e.target; @@ -34,7 +34,7 @@ { once: true }, ); host.addEventListener( - "invoke", + "command", (e) => { hostEvent = e; hostEventTarget = e.target; @@ -42,13 +42,13 @@ }, { once: true }, ); - const event = new InvokeEvent("invoke", { + const event = new CommandEvent("command", { bubbles: true, invoker: slot, composed: true, }); slot.dispatchEvent(event); - assert_true(childEvent instanceof InvokeEvent, "slot saw invoke event"); + assert_true(childEvent instanceof CommandEvent, "slot saw invoke event"); assert_equals( childEventTarget, slot, @@ -74,7 +74,7 @@ host, "invoker is retargeted to shadowroot host", ); - }, "InvokeEvent propagates across shadow boundaries retargeting invoker"); + }, "CommandEvent propagates across shadow boundaries retargeting invoker"); test(function (t) { const host = document.createElement("div"); @@ -83,12 +83,13 @@ const shadow = host.attachShadow({ mode: "open" }); const button = shadow.appendChild(document.createElement("button")); const invokee = host.appendChild(document.createElement("div")); - button.invokeTargetElement = invokee; + button.commandForElement = invokee; + button.command = 'test-command'; let event = null; let eventTarget = null; let eventInvoker = null; invokee.addEventListener( - "invoke", + "command", (e) => { event = e; eventTarget = e.target; @@ -97,8 +98,8 @@ { once: true }, ); button.click(); - assert_true(event instanceof InvokeEvent); + assert_true(event instanceof CommandEvent); assert_equals(eventTarget, invokee, "target is invokee"); assert_equals(eventInvoker, host, "invoker is host"); - }, "cross shadow InvokeEvent retargets invoker to host element"); + }, "cross shadow CommandEvent retargets invoker to host element"); diff --git a/html/semantics/invokers/invokeevent-interface.tentative.html b/html/semantics/invokers/invokeevent-interface.tentative.html index 0cfb4d5ee5f59e8..500c05f88a106a8 100644 --- a/html/semantics/invokers/invokeevent-interface.tentative.html +++ b/html/semantics/invokers/invokeevent-interface.tentative.html @@ -14,112 +14,112 @@
- + +
diff --git a/html/semantics/invokers/invoketarget-fullscreen-behavior.tentative.html b/html/semantics/invokers/invoketarget-fullscreen-behavior.tentative.html index 2e2c5f683f0e841..1210b8637deef91 100644 --- a/html/semantics/invokers/invoketarget-fullscreen-behavior.tentative.html +++ b/html/semantics/invokers/invoketarget-fullscreen-behavior.tentative.html @@ -12,65 +12,47 @@
Fullscreen content - +
- + - +
Details Contents
- + diff --git a/html/semantics/invokers/invoketarget-on-details-invalid-behavior.tentative.html b/html/semantics/invokers/invoketarget-on-details-invalid-behavior.tentative.html index d5e90af9c0e4324..3a4e86e9f2c9012 100644 --- a/html/semantics/invokers/invoketarget-on-details-invalid-behavior.tentative.html +++ b/html/semantics/invokers/invoketarget-on-details-invalid-behavior.tentative.html @@ -11,16 +11,17 @@
Details Contents
- + diff --git a/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative.html b/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative.html index 9f73e092b0342d4..9cf1e530b3d1769 100644 --- a/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative.html +++ b/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative.html @@ -11,43 +11,39 @@ - + - + diff --git a/html/semantics/invokers/invoketarget-on-dialog-invalid-behavior.tentative.html b/html/semantics/invokers/invoketarget-on-dialog-invalid-behavior.tentative.html index af84c22594a47e3..8ea5066dd7449f0 100644 --- a/html/semantics/invokers/invoketarget-on-dialog-invalid-behavior.tentative.html +++ b/html/semantics/invokers/invoketarget-on-dialog-invalid-behavior.tentative.html @@ -11,21 +11,22 @@ - + - + - +
- +
- +
- +
- + diff --git a/html/semantics/invokers/invoketarget-on-video-behavior.tentative.html b/html/semantics/invokers/invoketarget-on-video-behavior.tentative.html index d15d6f95841b7be..e395281ee31fd84 100644 --- a/html/semantics/invokers/invoketarget-on-video-behavior.tentative.html +++ b/html/semantics/invokers/invoketarget-on-video-behavior.tentative.html @@ -11,38 +11,20 @@ - +