Skip to content

Commit eb252d3

Browse files
committed
fixes
1 parent 1b13438 commit eb252d3

File tree

1 file changed

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

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,15 @@ function validate_code(code) {
121121

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

124-
const interactive_elements = new Set(['a', 'button', 'iframe', 'embed', 'input', 'select', 'textarea', 'label']);
124+
const interactive_elements = new Set([
125+
'a',
126+
'button',
127+
'iframe',
128+
'embed',
129+
'input',
130+
'select',
131+
'textarea'
132+
]);
125133

126134
/** @type {Record<string, Set<string>>} */
127135
const disallowed_contents = {
@@ -142,7 +150,7 @@ const disallowed_contents = {
142150
tfoot: new Set(['tbody']),
143151
tr: new Set(['tr', 'tbody']),
144152
td: new Set(['td', 'th', 'tr']),
145-
th: new Set(['td', 'th', 'tr']),
153+
th: new Set(['td', 'th', 'tr'])
146154
};
147155

148156
for (const interactive_element of interactive_elements) {

0 commit comments

Comments
 (0)