From 6ab605b5ff92b220cac18f0b8e5a18eb1a9fa15e Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Sun, 16 Mar 2025 13:22:35 -0400 Subject: [PATCH 1/3] Fix source insertion/moving/removing steps --- source | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/source b/source index 904af003371..6f7a010d971 100644 --- a/source +++ b/source @@ -29179,34 +29179,42 @@ interface HTMLSourceElement : HTMLElement { insertedNode, are:

    -
  1. If insertedNode's parent is a media element that has no

    Let parent be insertedNode's parent.

  2. + +
  3. If parent is a media element that has no src attribute and whose networkState has the value NETWORK_EMPTY, then invoke that media element's resource selection algorithm.

  4. -
  5. If insertedNode's next sibling is an img element and its parent is - a picture element, then, count this as a relevant - mutation for the img element.

  6. +
  7. If parent is a picture element, then for each child of parent's children, if child is an img + element, then count this as a relevant mutation for + child.

The source HTML element moving steps, given movedNode and oldParent, are:

    -
  1. 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.

  2. +
  3. If oldParent is a picture element, then for each child of oldParent's children, if child is an img element, + then count this as a relevant mutation for + child.

The source HTML element removing steps, given removedNode and oldParent, are:

    -
  1. If removedNode's next sibling was an img element and - oldParent is a picture element, then, count this as a relevant mutation for the img element.

  2. +
  3. If oldParent is a picture element, then for each child of oldParent's children, if child is an img element, + then count this as a relevant mutation for + child.

The IDL attributes Date: Sun, 16 Mar 2025 13:57:51 -0400 Subject: [PATCH 2/3] specfmt --- source | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source b/source index 6f7a010d971..6bc74799e18 100644 --- a/source +++ b/source @@ -29189,9 +29189,9 @@ interface HTMLSourceElement : HTMLElement { algorithm.

  • If parent is a picture element, then for each child of parent's children, if child is an img - element, then count this as a relevant mutation for + iterate">for each child of parent's children, if child is an img element, + then count this as a relevant mutation for child.

  • From 9707652d7fc34b9a3ed32772bba5b547cddf9724 Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Sun, 16 Mar 2025 23:27:03 -0400 Subject: [PATCH 3/3] Fix trailing a --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 6bc74799e18..f6dbc3199ac 100644 --- a/source +++ b/source @@ -29189,7 +29189,7 @@ interface HTMLSourceElement : HTMLElement { algorithm.

  • If parent is a picture element, then for each child of parent's for each child of parent's children, if child is an img element, then count this as a relevant mutation for child.