diff --git a/source b/source index fd018b599ac..f5dc14a9e30 100644 --- a/source +++ b/source @@ -1773,8 +1773,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute data-x="control">controls or U+0020 SPACE).
An HTML element can have specific HTML element insertion steps, HTML element - post-connection steps, and HTML element removing steps, all defined for the - element's local name.
+ post-connection steps, HTML element removing steps, and HTML element moving + steps all defined for the element's local + name.The insertion steps for the HTML Standard, given insertedNode, are defined as the following:
@@ -1861,6 +1862,29 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute popover algorithm given removedNode, false, false, and false. +The moving steps for the HTML Standard, given + movedNode, are defined as the following:
+ +If movedNode is an element whose namespace is the HTML namespace, and this + standard defines HTML element moving steps for movedNode's local name, then run the corresponding HTML + element moving steps given movedNode.
If movedNode is a form-associated element or the ancestor of a + form-associated element, then:
+ +If the form-associated element's parser inserted flag is set, + then return.
Reset the form owner of the form-associated element.
A node is inserted into a document when the insertion steps are invoked @@ -3218,6 +3242,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
append()
methodappendChild()
methodcloneNode()
methodmoveBefore()
methodimportNode()
methodpreventDefault()
methodid
attributeThe source
HTML element insertion
- steps, given insertedNode, are:
The source
HTML element insertion steps, given
+ insertedNode, are:
If insertedNode's parent is a media element that has no HTMLSourceElement : HTMLElement {
mutation for the
img
element.
The source
HTML element removing
- steps, given removedNode and oldParent, are:
The source
HTML element moving steps, given movedNode and
+ oldParent, are:
If movedNode's next sibling was an img
element and
+ oldParent is a picture
element, then, count this as a relevant mutation for the img
element.
The source
HTML element removing steps, given removedNode
+ and oldParent, are:
If removedNode's next sibling was an img
element and
@@ -29297,8 +29332,8 @@ interface HTMLImageElement : HTMLElement {
page layout from shifting around after the image loads.
The img
HTML element insertion
- steps, given insertedNode, are:
The img
HTML element insertion steps, given insertedNode,
+ are:
If insertedNode's parent is a picture
element, then, count this as
@@ -29306,8 +29341,16 @@ interface HTMLImageElement : HTMLElement {
insertedNode.
The img
HTML element removing
- steps, given removedNode and oldParent, are:
The img
HTML element moving steps, given movedNode and
+ oldParent, are:
If oldParent is a picture
element, then, count this as a
+ relevant mutation for movedNode.
The img
HTML element removing steps, given movedNode and
+ oldParent, are:
If oldParent is a picture
element, then, count this as a
@@ -30807,9 +30850,9 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...
The element's referrerpolicy
attribute's
state is changed.
The img
or source
HTML element insertion steps or
- HTML element removing steps count the mutation as a relevant mutation.
The img
or source
HTML element insertion steps,
+ HTML element removing steps, and HTML element moving steps count the
+ mutation as a relevant mutation.
The element's parent is a picture
element and a source
element
that is a previous sibling has its srcset
, MediaError {
other node is the node after pointer. Initially, let pointer be the position between the candidate node and the
next node, if there are any, or the end of the list, if it is the last node.
As nodes are inserted and removed into the media element, +
As nodes are inserted, removed, and moved into the media element, pointer must be updated as follows:
select
element's selectedness setting algorithm.The option
HTML element moving steps, given movedNode and
+ oldParent, are:
Run the option
HTML element removing steps given
+ movedNode and oldParent.
Run the option
HTML element insertion steps given
+ movedNode.
The optgroup
HTML element removing
steps, given removedNode and oldParent, are:
The optgroup
HTML element moving steps, given movedNode
+ and oldParent, are:
Run the optgroup
HTML element removing steps given
+ movedNode and oldParent.
If an option
element in the list of
options asks for a reset, then run that
select
element's selectedness setting algorithm.
form
attribute and an element with an ID is inserted
into or removed from the
- Document
, then the user agent must reset the form owner of that
- form-associated element.
+ Document
, or its HTML element moving steps are run, then the user agent
+ must reset the form owner of that form-associated element.
- The form owner is also reset by the HTML Standard's insertion steps and removing steps.
+The form owner is also reset by the HTML element insertion steps, + HTML element removing steps, and HTML element moving steps.
To reset the form owner of a form-associated element element:
@@ -72128,6 +72191,7 @@ document.body.append(parent); data-x="concept-custom-element-definition-lifecycle-callbacks">lifecycle callbacksconnectedCallback
",
"disconnectedCallback
", "adoptedCallback
",
+ "connectedMoveCallback
",
"attributeChangedCallback
",
"formAssociatedCallback
",
"formDisabledCallback
",
@@ -72810,7 +72874,10 @@ customElements.define("x-foo", class extends HTMLElement {
When it becomes disconnected, its disconnectedCallback
is called, with no arguments.
When it is adopted into a new document, its When it is moved, its connectedMoveCallback
is called, with no arguments.
When it is adopted into a new document, its adoptedCallback
is called, given the old document and new document as
arguments.
If callbackName is "connectedMoveCallback
" and
+ callback is null, then:
+
+
Let disconnectedCallback be the value of the entry in definition's
+ lifecycle callbacks
+ with key "disconnectedCallback
".
Let connectedCallback be the value of the entry in definition's
+ lifecycle callbacks
+ with key "connectedCallback
".
If connectedCallback and disconnectedCallback are null, then + return.
Set callback to the following steps:
+If disconnectedCallback is not null, then call + disconnectedCallback with no arguments.
If connectedCallback is not null, then call + connectedCallback with no arguments.
If callback is null, then return.