From 11f12721e23c57376a17afebf624ce71049ea80a Mon Sep 17 00:00:00 2001
From: Anthony Ramine 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 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,7 +2098,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute browsing context is non-null. 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 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 @@ -15193,8 +15193,21 @@ interface HTMLStyleElement : HTMLElement {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 return.
If style is not connected, then return.
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 children changed 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 + return.
script
element becomes connected.If script is not connected, then return.
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 changed 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: