From 823f4bcb5a4d80b231c81503dbc7c71c209617e5 Mon Sep 17 00:00:00 2001
From: Timothy Gu To deactivate an event handler given an EventTarget
object
eventTarget and a string name that is the name of an event handler, take the following
- steps:
Let handlerMap be eventTarget's event handler @@ -89911,10 +89910,24 @@ dictionary PromiseRejectionEventInit : EventInit { null.
To erase all event listeners and handlers given an EventTarget
object
+ eventTarget, run these steps:
If eventTarget has an associated event handler map, then for each + name → eventHandler of eventTarget's associated event + handler map, deactivate an event handler given eventTarget and + name.
Remove all event listeners given eventTarget.
This algorithm is used to define document.open(type, replace)
.
To activate an event handler given an EventTarget
object
eventTarget and a string name that is the name of an event handler, take the following
- steps:
Let handlerMap be eventTarget's event handler
@@ -90929,6 +90942,9 @@ document.body.appendChild(frame)
If document is not an active document, then return
document. Let window be document's relevant global object. If document's origin is not same origin to the
origin of the responsible document specified by the entry
settings object, then throw a " Abort document. For each shadow-including inclusive descendant node of
- document, remove all event listeners with node.SecurityError
"
@@ -90983,7 +90999,10 @@ document.body.appendChild(frame)
Erase all event listeners and handlers given window.
Remove any tasks associated with document in any task source.
For the global object, create a new Window
object
- window.
For the global object, create a new Window
object and set
+ window to it.
For the global this binding, use document's browsing
context's associated WindowProxy
.