You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ed/algorithms/html.json
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6967,13 +6967,16 @@
6967
6967
},
6968
6968
{
6969
6969
"html": "The <code id=\"the-source-element:the-source-element-16\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-source-element\">source</a></code> <a id=\"the-source-element:html-element-insertion-steps\" href=\"https://html.spec.whatwg.org/multipage/infrastructure.html#html-element-insertion-steps\">HTML element insertion steps</a>, given\n <var>insertedNode</var>, are:",
6970
-
"rationale": "if",
6970
+
"rationale": "let",
6971
6971
"steps": [
6972
6972
{
6973
-
"html": "<p>If <var>insertedNode</var>'s parent is a <a id=\"the-source-element:media-element-7\" href=\"https://html.spec.whatwg.org/multipage/media.html#media-element\">media element</a> that has no <code id=\"the-source-element:attr-media-src-2\"><a href=\"https://html.spec.whatwg.org/multipage/media.html#attr-media-src\">src</a></code> attribute and whose <code id=\"the-source-element:dom-media-networkstate\"><a href=\"https://html.spec.whatwg.org/multipage/media.html#dom-media-networkstate\">networkState</a></code> has the value <code id=\"the-source-element:dom-media-network_empty\"><a href=\"https://html.spec.whatwg.org/multipage/media.html#dom-media-network_empty\">NETWORK_EMPTY</a></code>, then invoke that <a id=\"the-source-element:media-element-8\" href=\"https://html.spec.whatwg.org/multipage/media.html#media-element\">media\n element</a>'s <a href=\"https://html.spec.whatwg.org/multipage/media.html#concept-media-load-algorithm\" id=\"the-source-element:concept-media-load-algorithm-2\">resource selection\n algorithm</a>.</p>"
6973
+
"html": "<p>Let <var>parent</var> be <var>insertedNode</var>'s <a id=\"the-source-element:parent\" href=\"https://dom.spec.whatwg.org/#concept-tree-parent\" data-x-internal=\"parent\">parent</a>.</p>"
6974
+
},
6975
+
{
6976
+
"html": "<p>If <var>parent</var> is a <a id=\"the-source-element:media-element-7\" href=\"https://html.spec.whatwg.org/multipage/media.html#media-element\">media element</a> that has no <code id=\"the-source-element:attr-media-src-2\"><a href=\"https://html.spec.whatwg.org/multipage/media.html#attr-media-src\">src</a></code> attribute and whose <code id=\"the-source-element:dom-media-networkstate\"><a href=\"https://html.spec.whatwg.org/multipage/media.html#dom-media-networkstate\">networkState</a></code> has the value <code id=\"the-source-element:dom-media-network_empty\"><a href=\"https://html.spec.whatwg.org/multipage/media.html#dom-media-network_empty\">NETWORK_EMPTY</a></code>, then invoke that <a id=\"the-source-element:media-element-8\" href=\"https://html.spec.whatwg.org/multipage/media.html#media-element\">media\n element</a>'s <a href=\"https://html.spec.whatwg.org/multipage/media.html#concept-media-load-algorithm\" id=\"the-source-element:concept-media-load-algorithm-2\">resource selection\n algorithm</a>.</p>"
6974
6977
},
6975
6978
{
6976
-
"html": "<p>If <var>insertedNode</var>'s next sibling is an <code id=\"the-source-element:the-img-element-8\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element and its parent is\n a <code id=\"the-source-element:the-picture-element-9\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element\">picture</a></code> element, then, count this as a <a href=\"https://html.spec.whatwg.org/multipage/images.html#relevant-mutations\" id=\"the-source-element:relevant-mutations\">relevant\n mutation</a> for the <code id=\"the-source-element:the-img-element-9\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element.</p>"
6979
+
"html": "<p>If <var>parent</var>is a <code id=\"the-source-element:the-picture-element-9\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element\">picture</a></code> element, then <a href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"the-source-element:list-iterate\" data-x-internal=\"list-iterate\">for each</a> <var>child</var> of <var>parent</var>'s <a href=\"https://dom.spec.whatwg.org/#concept-tree-child\" id=\"the-source-element:concept-tree-child\" data-x-internal=\"concept-tree-child\">children</a>, if <var>child</var> is an <code id=\"the-source-element:the-img-element-8\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element,\n then count this as a <a href=\"https://html.spec.whatwg.org/multipage/images.html#relevant-mutations\" id=\"the-source-element:relevant-mutations\">relevant mutation</a> for\n <var>child</var>.</p>"
6977
6980
}
6978
6981
]
6979
6982
},
@@ -6982,7 +6985,7 @@
6982
6985
"rationale": "if",
6983
6986
"steps": [
6984
6987
{
6985
-
"html": "<p>If <var>movedNode</var>'s next sibling was an <code id=\"the-source-element:the-img-element-10\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element and\n <var>oldParent</var> is a <code id=\"the-source-element:the-picture-element-10\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element\">picture</a></code> element,then, count this as a <a href=\"https://html.spec.whatwg.org/multipage/images.html#relevant-mutations\" id=\"the-source-element:relevant-mutations-2\">relevant mutation</a> for the <code id=\"the-source-element:the-img-element-11\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element.</p>"
6988
+
"html": "<p>If <var>oldParent</var> is a <code id=\"the-source-element:the-picture-element-10\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element\">picture</a></code> element, then <a href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"the-source-element:list-iterate-2\" data-x-internal=\"list-iterate\">for each</a> <var>child</var> of <var>oldParent</var>'s <a href=\"https://dom.spec.whatwg.org/#concept-tree-child\" id=\"the-source-element:concept-tree-child-2\" data-x-internal=\"concept-tree-child\">children</a>, if <var>child</var> is an <code id=\"the-source-element:the-img-element-9\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element,\n then count this as a <a href=\"https://html.spec.whatwg.org/multipage/images.html#relevant-mutations\" id=\"the-source-element:relevant-mutations-2\">relevant mutation</a> for\n <var>child</var>.</p>"
6986
6989
}
6987
6990
]
6988
6991
},
@@ -6991,7 +6994,7 @@
6991
6994
"rationale": "if",
6992
6995
"steps": [
6993
6996
{
6994
-
"html": "<p>If <var>removedNode</var>'s next sibling was an <code id=\"the-source-element:the-img-element-12\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element and\n <var>oldParent</var> is a <code id=\"the-source-element:the-picture-element-11\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element\">picture</a></code> element,then, count this as a <a href=\"https://html.spec.whatwg.org/multipage/images.html#relevant-mutations\" id=\"the-source-element:relevant-mutations-3\">relevant mutation</a> for the <code id=\"the-source-element:the-img-element-13\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element.</p>"
6997
+
"html": "<p>If <var>oldParent</var> is a <code id=\"the-source-element:the-picture-element-11\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element\">picture</a></code> element, then <a href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"the-source-element:list-iterate-3\" data-x-internal=\"list-iterate\">for each</a> <var>child</var> of <var>oldParent</var>'s <a href=\"https://dom.spec.whatwg.org/#concept-tree-child\" id=\"the-source-element:concept-tree-child-3\" data-x-internal=\"concept-tree-child\">children</a>, if <var>child</var> is an <code id=\"the-source-element:the-img-element-10\"><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element\">img</a></code> element,\n then count this as a <a href=\"https://html.spec.whatwg.org/multipage/images.html#relevant-mutations\" id=\"the-source-element:relevant-mutations-3\">relevant mutation</a> for\n <var>child</var>.</p>"
0 commit comments