From e079744c39058d01f774fef17fba9e68d53e0718 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 14 Dec 2024 09:01:10 -0500 Subject: [PATCH] Update packages/svelte/src/compiler/phases/1-parse/state/element.js --- packages/svelte/src/compiler/phases/1-parse/state/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/compiler/phases/1-parse/state/element.js b/packages/svelte/src/compiler/phases/1-parse/state/element.js index 0f600fffde5b..e9a1d0e8190b 100644 --- a/packages/svelte/src/compiler/phases/1-parse/state/element.js +++ b/packages/svelte/src/compiler/phases/1-parse/state/element.js @@ -336,7 +336,7 @@ export default function element(parser) { // Loose parsing mode if (!closed) { - // We may have eaten an opening `<` of the next element and treated is as an attribute... + // We may have eaten an opening `<` of the next element and treated it as an attribute... const last = element.attributes.at(-1); if (last?.type === 'Attribute' && last.name === '<') { parser.index = last.start;