diff --git a/dom.bs b/dom.bs index 4f6234ead..f3821bd6f 100644 --- a/dom.bs +++ b/dom.bs @@ -30,7 +30,9 @@ type: interface text: WebGLContextEvent urlPrefix: https://tc39.github.io/ecma262/#; spec: ECMASCRIPT text: Construct; url: sec-construct; type: abstract-op - text: Realm; url: realm; type: dfn + type: dfn + text: Realm; url: realm + text: surrounding agent; url: surrounding-agent urlPrefix: https://w3c.github.io/hr-time/#; spec: HR-TIME type:typedef; urlPrefix: dom-; text: DOMHighResTimeStamp type:dfn; text: time origin; url: dfn-time-origin @@ -2273,16 +2275,14 @@ steps:
Each unit of related similar-origin browsing contexts has a -signal slot list (a list of slots). Unless stated otherwise it is empty. -[[!HTML]] +
Each similar-origin window agent has signal slots +(a set of slots), which is initially empty. [[!HTML]]
To signal a slot change, for a slot slot, run these steps:
If slot is not in unit of related similar-origin browsing contexts' - signal slot list, append slot to - unit of related similar-origin browsing contexts' signal slot list. +
Append slot to slot's relevant agent's + signal slots.
Each unit of related similar-origin browsing contexts has a +
Each similar-origin window agent has a mutation observer compound microtask queued flag, which is initially unset. [[!HTML]] -
Each unit of related similar-origin browsing contexts also has a -mutation observer list (a list of zero or more {{MutationObserver}} -objects), which is initially empty. +
Each similar-origin window agent also has +mutation observers (a set of zero or more +{{MutationObserver}} objects), which is initially empty.
To queue a mutation observer compound microtask, run these steps: @@ -3280,17 +3280,16 @@ objects), which is initially empty.
Let notifyList be a clone of - unit of related similar-origin browsing contexts' mutation observer list. +
Let notifySet be a clone of the surrounding agent's + mutation observers. -
Let signalList be a clone of - unit of related similar-origin browsing contexts' signal slot list. +
Let signalSet be a clone of the surrounding agent's + signal slots. -
Empty unit of related similar-origin browsing contexts' - signal slot list. +
Empty the surrounding agent's signal slots.
For each mo of notifyList, +
For each mo of notifySet, execute a compound microtask subtask to run these steps: [[!HTML]]
For each slot of signalList, fire an event +
For each slot of signalSet, fire an event
named slotchange
, with its {{Event/bubbles}} attribute set to true, at
slot.
Let mo be a new {{MutationObserver}} object whose callback is callback. -
Append mo to - unit of related similar-origin browsing contexts' mutation observer list. +
Append mo to mo's relevant agent's + mutation observers.
Return mo.