diff --git a/dom.bs b/dom.bs index 2344646f..1232ce20 100644 --- a/dom.bs +++ b/dom.bs @@ -1360,15 +1360,15 @@ property of the event being dispatched.

To dispatch an event to a -target, with an optional legacy target override flag and an optional -legacyOutputDidListenersThrowFlag, run these steps: +target, with an optional legacy target override flag (default false) and an +optional legacyOutputDidListenersThrowFlag, run these steps:

  1. Set event's dispatch flag.

  2. Let targetOverride be target, if legacy target override flag - is not given, and target's associated Document otherwise. + is true, and target's associated Document otherwise. [[!HTML]]

    legacy target override flag is only used by HTML and only when @@ -1743,7 +1743,8 @@ and an optional legacyOutputDidListenersThrowFlag, run these steps:

    To fire an event named e at target, optionally using an eventConstructor, with a description of how IDL attributes are to be -initialized, and a legacy target override flag, run these steps: +initialized, an optional boolean legacy target override flag (default false), and an +optional {{EventTarget}} relatedTarget:

    1. If eventConstructor is not given, then let eventConstructor be @@ -1754,14 +1755,17 @@ initialized, and a legacy target override flag, run these steps:

    2. Initialize event's {{Event/type}} attribute to e. +

    3. If relatedTarget is given, then set event's relatedTarget to relatedTarget. +

    4. Initialize any other IDL attributes of event as described in the invocation of this algorithm.

      This also allows for the {{Event/isTrusted}} attribute to be set to false. -

    5. Return the result of dispatching event at target, with - legacy target override flag set if set. +

    6. Return the result of dispatching event at target with + legacy target override flag.

    @@ -4936,7 +4940,8 @@ and an optional document docume shadow root's mode, true, node's shadow root's serializable, node's shadow root's delegates focus, node's - shadow root's slot assignment, and + shadow root's slot assignment, node's + shadow root's reference target, and shadowRootRegistry.
  3. Set copy's shadow root's declarative @@ -6553,6 +6558,7 @@ interface ShadowRoot : DocumentFragment { readonly attribute boolean clonable; readonly attribute boolean serializable; readonly attribute Element host; + attribute DOMString? referenceTarget; attribute EventHandler onslotchange; }; @@ -6590,6 +6596,9 @@ It is initially set to false.

    Shadow roots have an associated serializable (a boolean). It is initially set to false.

    +

    Shadow roots have an associated reference target +(null or a string). It is initially set to null. +

    Shadow roots have an associated custom element registry (null or a {{CustomElementRegistry}} object). It is initially null.

    @@ -6628,6 +6637,12 @@ null if event's composed flag is unset and shadow roo

    The host getter steps are to return this's host. +

    The referenceTarget getter steps are to return +this's reference target. + +

    The {{ShadowRoot/referenceTarget}} setter +steps are to set this's reference target to the given value. +


    The onslotchange attribute is an @@ -6762,6 +6777,7 @@ dictionary ShadowRootInit { SlotAssignmentMode slotAssignment = "named"; boolean clonable = false; boolean serializable = false; + DOMString? referenceTarget = null; CustomElementRegistry? customElementRegistry; }; @@ -7738,7 +7754,8 @@ are: init["{{ShadowRootInit/mode}}"], init["{{ShadowRootInit/clonable}}"], init["{{ShadowRootInit/serializable}}"], init["{{ShadowRootInit/delegatesFocus}}"], - init["{{ShadowRootInit/slotAssignment}}"], and registry. + init["{{ShadowRootInit/slotAssignment}}"], + init["{{ShadowRootInit/referenceTarget}}"], and registry.

  4. Return this's shadow root.

@@ -7748,7 +7765,8 @@ are:

To attach a shadow root, given an element element, a string mode, a boolean clonable, a boolean serializable, a boolean delegatesFocus, a string -slotAssignment, and null or a {{CustomElementRegistry}} object registry: +slotAssignment, null or a string referenceTarget, and null or a +{{CustomElementRegistry}} object registry:

  1. If element's namespace is not the HTML namespace, @@ -7822,6 +7840,8 @@ a boolean serializable, a boolean delegatesFocus, a string

  2. Set shadow's serializable to serializable. +

  3. Set shadow's reference target to referenceTarget. +

  4. Set shadow's custom element registry to registry.