Skip to content

Commit

Permalink
Update packages/svelte/src/compiler/phases/1-parse/state/element.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Dec 14, 2024
1 parent 3f71653 commit e079744
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e079744

Please sign in to comment.