diff --git a/split/ui-events.bs b/split/ui-events.bs index d7a4fd9..b66cde1 100644 --- a/split/ui-events.bs +++ b/split/ui-events.bs @@ -534,731 +534,6 @@ with the following supplemental additions:
- None of the event types associated with the {{MutationEvent}} interface are - designated as cancelable. This stems from the fact that it is very difficult - to make use of existing DOM interfaces which cause document modifications if - any change to the document might or might not take place due to cancelation - of the resulting event. Although this is still a desired capability, it was - decided that it would be better left until the addition of transactions into - the DOM. -
- - Many single modifications of the tree can cause multiple mutation events to - be dispatched. Rather than attempt to specify the ordering of mutation - events due to every possible modification of the tree, the ordering of these - events is left to the implementation. - -- The {{MutationEvent}} interface was introduced in DOM Level 2 Events, but - has not yet been completely and interoperably implemented across user - agents. In addition, there have been critiques that the interface, as - designed, introduces a performance and implementation challenge. -
-
- DOM4 [[!DOM]] provides a new mechanism using a
- MutationObserver
interface which addresses the use cases that
- mutation events solve, but in a more performant manner. Thus, this
- specification describes mutation events for reference and completeness of
- legacy behavior, but deprecates the use of the {{MutationEvent}}
- interface.
-
Introduced in DOM Level 2, deprecated in this - specification
- - TheMutationEvent
interface provides specific contextual
- information associated with Mutation events.
-
- To create an instance of the MutationEvent
interface, use
- the {{Document/createEvent()}} method call.
-
- - [Exposed=Window] - interface MutationEvent : Event { - // attrChangeType - const unsigned short MODIFICATION = 1; - const unsigned short ADDITION = 2; - const unsigned short REMOVAL = 3; - - readonly attribute Node? relatedNode; - readonly attribute DOMString prevValue; - readonly attribute DOMString newValue; - readonly attribute DOMString attrName; - readonly attribute unsigned short attrChange; - - undefined initMutationEvent(DOMString typeArg, - optional boolean bubblesArg = false, - optional boolean cancelableArg = false, - optional Node? relatedNodeArg = null, - optional DOMString prevValueArg = "", - optional DOMString newValueArg = "", - optional DOMString attrNameArg = "", - optional unsigned short attrChangeArg = 0); - }; -- -
Attr
was modified in place.
- Attr
was just added.
- Attr
was just removed.
- relatedNode
MUST be used to identify a secondary
- node related to a mutation event. For example, if a mutation
- event is dispatched to a node indicating that its parent has
- changed, the relatedNode
will be the changed
- parent. If an event is instead dispatched to a subtree
- indicating a node was changed within it, the
- relatedNode
MUST be the changed node. In the case
- of the DOMAttrModified
event, it indicates the
- Attr
node which was modified, added, or removed.
-
- The un-initialized value of this attribute MUST be
- null
.
- prevValue
indicates the previous value of the
- Attr
node in DOMAttrModified
events, and of
- the CharacterData
node in
- DOMCharacterDataModified
events.
-
- The un-initialized value of this attribute MUST be
- ""
(the empty string).
- newValue
indicates the new value of the
- Attr
node in DOMAttrModified
events, and of
- the CharacterData
node in
- DOMCharacterDataModified
events.
-
- The un-initialized value of this attribute MUST be
- ""
(the empty string).
- attrName
indicates the name of the changed
- Attr
node in a DOMAttrModified
event.
-
- The un-initialized value of this attribute MUST be
- ""
(the empty string).
- attrChange
indicates the type of change which
- triggered the DOMAttrModified
event. The values can be
- MODIFICATION
, ADDITION
, or
- REMOVAL
.
-
- The un-initialized value of this attribute MUST be
- 0
.
-
- - There is no defined constant for the attrChange value of 0 (the - un-initialized value). -
-MutationEvent
object.
- This method has the same behavior as {{Event/initEvent()}}.
-
- relatedNode
.
- prevValue
. This value MAY be the empty string.
- newValue
.
- This value MAY be the empty string.
- attrName
.
- This value MAY be the empty string.
- attrChange
.
- This value MAY be 0
.
- Type | -DOMAttrModified |
-
---|---|
Interface | -{{MutationEvent}} | -
Sync / Async | -Sync | -
Bubbles | -Yes | -
Trusted Targets | -Element |
-
Cancelable | -No | -
Composed | -No | -
Default action | -None | -
Context (trusted events) |
-
-
|
-
Attr.value
has been modified and after an
- Attr
node has been added to or removed from an
- Element
. The event target of this event MUST be
- the Element
node where the change occurred. It is
- implementation dependent whether this event type occurs when the
- children of the Attr
node are changed in ways that do
- not affect the value of Attr.value
.
-
-
- The DOMAttrModified
event type is defined in this
- specification for reference and completeness, but this specification
- deprecates the use of this event type.
-
Type | -DOMCharacterDataModified |
-
---|---|
Interface | -{{MutationEvent}} | -
Sync / Async | -Sync | -
Bubbles | -Yes | -
Trusted Targets | -Text , Comment , ProcessingInstruction |
-
Cancelable | -No | -
Composed | -No | -
Default action | -None | -
Context (trusted events) |
-
-
|
-
CharacterData.data
or
- ProcessingInstruction.data
have been modified, but the
- node itself has not been inserted or deleted. The event
- target of this event MUST be the CharacterData
node
- or the ProcessingInstruction
node.
-
-
- The DOMCharacterDataModified
event type is defined in this
- specification for reference and completeness, but this specification
- deprecates the use of this event type.
-
Type | -DOMNodeInserted |
-
---|---|
Interface | -{{MutationEvent}} | -
Sync / Async | -Sync | -
Bubbles | -Yes | -
Trusted Targets | -Element , Attr , Text , Comment , DocumentType ,
- ProcessingInstruction |
-
Cancelable | -No | -
Composed | -No | -
Default action | -None | -
Context (trusted events) |
-
-
|
-
Attr
node has been added as a child of another
- node. A user agent MAY dispatch this event when an
- Attr
node has been added to an Element
- node (see note below). This
- event MUST be dispatched after the insertion has taken place. The
- event target of this event MUST be the node being inserted.
-
-
- For detecting attribute insertion, use the DOMAttrModified
- event type instead.
-
- The DOMNodeInserted
event type is defined in this
- specification for reference and completeness, but this specification
- deprecates the use of this event type.
-
Type | -DOMNodeInsertedIntoDocument |
-
---|---|
Interface | -{{MutationEvent}} | -
Sync / Async | -Sync | -
Bubbles | -No | -
Trusted Targets | -Element , Attr , Text , Comment , DocumentType ,
- ProcessingInstruction |
-
Cancelable | -No | -
Composed | -No | -
Default action | -None | -
Context (trusted events) |
-
-
|
-
Attr
node as part of an
- Element
's subtree. This event MUST be dispatched after
- the insertion has taken place. The event target of this event
- MUST be the node being inserted. If the node is being directly
- inserted, the event type DOMNodeInserted
MUST occur before
- this event type.
-
-
- The DOMNodeInsertedIntoDocument
event type is defined in this
- specification for reference and completeness, but this specification
- deprecates the use of this event type.
-
Type | -DOMNodeRemoved |
-
---|---|
Interface | -{{MutationEvent}} | -
Sync / Async | -Sync | -
Bubbles | -Yes | -
Trusted Targets | -Element , Attr , Text , Comment , DocumentType ,
- ProcessingInstruction |
-
Cancelable | -No | -
Composed | -No | -
Default action | -None | -
Context (trusted events) |
-
-
|
-
Attr
node is being removed from its parent node. A
- user agent MAY dispatch this event when an Attr
- node is being removed from its ownerElement
(see note below). This event MUST be
- dispatched before the removal takes place. The event target
- of this event MUST be the node being removed.
-
-
- For reliably detecting attribute removal, use the
- DOMAttrModified
event type instead.
-
- The DOMNodeRemoved
event type is defined in this
- specification for reference and completeness, but this specification
- deprecates the use of this event type.
-
Type | -DOMNodeRemovedFromDocument |
-
---|---|
Interface | -{{MutationEvent}} | -
Sync / Async | -Sync | -
Bubbles | -No | -
Trusted Targets | -Element , Attr , Text , Comment , DocumentType ,
- ProcessingInstruction |
-
Cancelable | -No | -
Composed | -No | -
Default action | -None | -
Context (trusted events) |
-
-
|
-
Attr
node as part of an
- Element
's subtree. This event MUST be dispatched before
- the removal takes place. The event target of this event type
- MUST be the node being removed. If the node is being directly
- removed, the event type DOMNodeRemoved
MUST occur before this
- event type.
-
-
- For reliably detecting attribute removal, use the
- DOMAttrModified
event type instead.
-
- The DOMNodeRemovedFromDocument
event type is defined in this
- specification for reference and completeness, but this specification
- deprecates the use of this event type.
-
Type | -DOMSubtreeModified |
-
---|---|
Interface | -{{MutationEvent}} | -
Sync / Async | -Sync | -
Bubbles | -Yes | -
Trusted Targets | -Window , Document , DocumentFragment , Element , Attr
- |
-
Cancelable | -No | -
Composed | -No | -
Default action | -None | -
Context (trusted events) |
-
-
|
-
- The DOMSubtreeModified
event type is defined in this
- specification for reference and completeness, but this specification
- deprecates the use of this event type.
-
initEvent
and
- initMutationEvent
.
+ initUIEvent
.