Skip to content

Commit 2b3db3f

Browse files
authored
Update packages/svelte/src/compiler/phases/1-parse/utils/html.js
1 parent e1418d4 commit 2b3db3f

File tree

1 file changed

+1
-0
lines changed
  • packages/svelte/src/compiler/phases/1-parse/utils

1 file changed

+1
-0
lines changed

packages/svelte/src/compiler/phases/1-parse/utils/html.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ function validate_code(code) {
121121

122122
// based on http://developers.whatwg.org/syntax.html#syntax-tag-omission
123123

124+
// while `input` is also an interactive element, it is never moved by the browser, so we don't need to check for it
124125
const interactive_elements = new Set(['a', 'button', 'iframe', 'embed', 'select', 'textarea']);
125126

126127
/** @type {Record<string, Set<string>>} */

0 commit comments

Comments
 (0)