From 9f049bb4824f4081d5343c145b09566c300f834f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Mon, 25 Aug 2025 08:14:00 +0200 Subject: [PATCH 1/3] Update moveBefore() spec and BCD keys Spec changes were landed here: https://github.com/whatwg/dom/pull/1307 https://github.com/whatwg/html/pull/10657 --- features/move-before.yml | 5 ++++- features/move-before.yml.dist | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/features/move-before.yml b/features/move-before.yml index 57c116af414..37ba2410b0a 100644 --- a/features/move-before.yml +++ b/features/move-before.yml @@ -1,8 +1,11 @@ name: moveBefore() description: The `moveBefore()` DOM method relocates a node while preserving its state. For example, you can move the active element without losing focus, move an animated element without resetting the animation, or move an iframe without reloading its content. -spec: https://github.com/whatwg/dom/pull/1307 +spec: + - https://dom.spec.whatwg.org/#dom-parentnode-movebefore + - https://html.spec.whatwg.org/#preserving-custom-element-state-when-moved group: dom compat_features: + - api.CustomElementRegistry.define.connectedMoveCallback_lifecycle_callback - api.Document.moveBefore - api.DocumentFragment.moveBefore - api.Element.moveBefore diff --git a/features/move-before.yml.dist b/features/move-before.yml.dist index f65f65cf0c0..85768ddd5cd 100644 --- a/features/move-before.yml.dist +++ b/features/move-before.yml.dist @@ -8,6 +8,7 @@ status: chrome_android: "133" edge: "133" compat_features: + - api.CustomElementRegistry.define.connectedMoveCallback_lifecycle_callback - api.Document.moveBefore - api.DocumentFragment.moveBefore - api.Element.moveBefore From 602d9b46679a0c62556959ec733fc7f0692a3190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Thu, 28 Aug 2025 11:00:06 +0200 Subject: [PATCH 2/3] Update features/move-before.yml Co-authored-by: Daniel D. Beck --- features/move-before.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/move-before.yml b/features/move-before.yml index 37ba2410b0a..c663d7e0604 100644 --- a/features/move-before.yml +++ b/features/move-before.yml @@ -2,7 +2,7 @@ name: moveBefore() description: The `moveBefore()` DOM method relocates a node while preserving its state. For example, you can move the active element without losing focus, move an animated element without resetting the animation, or move an iframe without reloading its content. spec: - https://dom.spec.whatwg.org/#dom-parentnode-movebefore - - https://html.spec.whatwg.org/#preserving-custom-element-state-when-moved + - https://html.spec.whatwg.org/multipage/custom-elements.html#preserving-custom-element-state-when-moved group: dom compat_features: - api.CustomElementRegistry.define.connectedMoveCallback_lifecycle_callback From 00da426dba29e0397d1dc85efc9e92aa1c3913a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Thu, 28 Aug 2025 11:01:13 +0200 Subject: [PATCH 3/3] Remove defaultAllowlist entry --- scripts/specs.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/specs.ts b/scripts/specs.ts index e9806c9d649..65604d0a0c0 100644 --- a/scripts/specs.ts +++ b/scripts/specs.ts @@ -121,10 +121,6 @@ const defaultAllowlist: allowlistItem[] = [ "https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DocumentSubtitle/explainer.md", "Allowed because this is where the application-title meta tag is spec'd at the moment. Remove when https://github.com/whatwg/html/issues/8909 is fixed." ], - [ - "https://github.com/whatwg/dom/pull/1307", - "This is only place moveBefore() is spec'd. Remove this exception when https://github.com/whatwg/dom/pull/1307 merges." - ], [ "https://www.w3.org/TR/2018/SPSD-html5-20180327/embedded-content-0.html#synchronising-multiple-media-elements", "Allowed for the mediacontroller feature. This is the superseded HTML5 spec that still contains MediaController."