diff --git a/src/compiler/parse/state/tag.ts b/src/compiler/parse/state/tag.ts index 3ed65940f2..a5d934e3c1 100644 --- a/src/compiler/parse/state/tag.ts +++ b/src/compiler/parse/state/tag.ts @@ -473,7 +473,7 @@ function read_attribute_value(parser: Parser) { let value; try { - const characters = quote_mark ? [quote_mark] : [...whitespace_characters, '/>', '"', '"', '=', '<', '>', '`']; + const characters = quote_mark ? [quote_mark] : [...whitespace_characters, '/>', '"', '\'', '=', '<', '>', '`']; value = read_sequence(parser, () => characters.some(c => parser.match(c))); } catch (error) { if (error.code === 'parse-error') {