|
|
|
@ -121,6 +121,7 @@ function validate_code(code) {
|
|
|
|
|
|
|
|
|
|
|
|
// based on http://developers.whatwg.org/syntax.html#syntax-tag-omission
|
|
|
|
// based on http://developers.whatwg.org/syntax.html#syntax-tag-omission
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// while `input` is also an interactive element, it is never moved by the browser, so we don't need to check for it
|
|
|
|
const interactive_elements = new Set(['a', 'button', 'iframe', 'embed', 'select', 'textarea']);
|
|
|
|
const interactive_elements = new Set(['a', 'button', 'iframe', 'embed', 'select', 'textarea']);
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {Record<string, Set<string>>} */
|
|
|
|
/** @type {Record<string, Set<string>>} */
|
|
|
|
|