From 06e7da8266706b8de1e075b0c2734cd65768dff4 Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Fri, 26 Jul 2024 13:55:00 +0200 Subject: [PATCH] obselete / incorrect (those are not autoclosed, and the invalid ones handled later) --- packages/svelte/src/html-tree-validation.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/svelte/src/html-tree-validation.js b/packages/svelte/src/html-tree-validation.js index 295fa688a9..c7f2554966 100644 --- a/packages/svelte/src/html-tree-validation.js +++ b/packages/svelte/src/html-tree-validation.js @@ -52,20 +52,6 @@ const autoclosing_children = { th: { direct: ['td', 'th', 'tr'] } }; -const interactive_elements = [ - // while `input` is also an interactive element, it is never moved by the browser, so we don't need to check for it - 'a', - 'button', - 'iframe', - 'embed', - 'select', - 'textarea' -]; - -for (const interactive_element of interactive_elements) { - autoclosing_children[interactive_element] = { descendant: interactive_elements }; -} - /** * Returns true if the tag is either the last in the list of siblings and will be autoclosed, * or not allowed inside the parent tag such that it will auto-close it. The latter results