diff --git a/source b/source index 38287a433ad..d786bc1fa5e 100644 --- a/source +++ b/source @@ -2072,24 +2072,24 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
A node A is inserted into a node B when the insertion steps are invoked with - A as the argument and A's new parent is B. Similarly, a node A is removed from a node B when the - removing steps are invoked with A as the - removedNode argument and B as the oldParent argument.
+ A as the first argument and A's new parent is B. Similarly, a + node A is removed from a node B when + the removing steps are invoked with A as + the removedNode argument and B as the oldParent argument.A node is inserted into a document when the insertion - steps are invoked with it as the argument and it is now in a document tree. - Analogously, a node is - removed from a document when the removing - steps are invoked with it as the argument and it is now no longer in a document - tree.
+ steps are invoked with it as the first argument and it is now in a document + tree. Analogously, a node is removed from a document when the removing steps are invoked with it as the argument and it + is now no longer in a document tree.A node becomes connected when the insertion steps are invoked with it as the argument and it - is now connected. Analogously, a node insertion steps are invoked with it as the first argument + and it is now connected. Analogously, a node becomes disconnected when the removing steps are invoked with it as the argument and it is now no longer connected.
@@ -2098,12 +2098,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute connected and its shadow-including root has a browsing context. A node becomes browsing-context connected when the insertion steps are invoked with it as the argument and it - is now browsing-context connected. A node becomes browsing-context disconnected either when the removing steps are invoked with it as the argument and it - is now no longer browsing-context connected, or when its shadow-including - root no longer has a browsing context. + data-x="concept-node-insert-ext">insertion steps are invoked with it as the first argument + and it is now browsing-context connected. A node becomes browsing-context disconnected either + when the removing steps are invoked with it as the + argument and it is now no longer browsing-context connected, or when its + shadow-including root no longer has a browsing + context.The user agent must run the update a style
block algorithm whenever
- one of the following conditions occur:
To run the insertion steps for a
+ style
element with style and deferredStepsQueue, the user
+ agent must act as follows:
If style is on the stack of open elements, then abort those + steps.
If style is not connected, then abort those steps.
Enqueue the steps to update + style to deferredStepsQueue.
Additionally, the user agent must run the update a style
block
+ algorithm whenever one of the following conditions occur:
The element is not on the stack of open elements of an HTML - parser or XML parser, and it becomes connected or disconnected.
The element's child text content change steps run.
When a script
element that is not marked as being "parser-inserted"
- experiences one of the events listed in the following list, the user agent must
- immediately prepare the script
- element:
To run the insertion steps for a
+ script
element with script and deferredStepsQueue, the user
+ agent must act as follows:
If script is marked as being "parser-inserted", then + abort those steps.
script
element becomes connected.If script is not connected, then abort those steps.
script
element is connected and a node or document fragment is
- inserted into the script
element, after any
- script
elements inserted at that time.Enqueue the steps to prepare + script to deferredStepsQueue.
script
element is connected and has a src
attribute set where previously the element had no such
- attribute.To run the children added steps for a
+ script
element with script and deferredStepsQueue, the user
+ agent must run the insertion steps with
+ script and deferredStepsQueue.
Additionally, when a script
element that is not marked as being
+ "parser-inserted" is connected and has a src
attribute set where previously the element had no such
+ attribute, the user agent must immediately prepare the script
element.
To prepare a script, the user agent must act as follows: