diff options
| author | Mica White <botahamec@outlook.com> | 2026-09-27 16:39:45 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-09-27 16:39:45 -0400 |
| commit | 67083043f5da93c447468578c49ffec1a679f1cc (patch) | |
| tree | 83424ebe7efefce539db245b6960dc520c7b66ce /src/parse.rs | |
| parent | 35f6fc17d0c98f424e01904b8856cf42c80bcfd3 (diff) | |
Fix diagnostics
Diffstat (limited to 'src/parse.rs')
| -rw-r--r-- | src/parse.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parse.rs b/src/parse.rs index b2e5116..64bbd36 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -247,7 +247,6 @@ fn parse_element<'a>( lowercase_tag_name, .. } if is_end && stack.contains(&lowercase_tag_name) => { - tokens.next().expect("a token"); break; } TokenType::Tag { is_end, .. } if is_end => { @@ -255,7 +254,7 @@ fn parse_element<'a>( children.push(Node::StrayEndTag(*token)) } TokenType::Tag { .. } => { - children.push(parse_element(tokens, &[], arena).expect("an element")); + children.push(parse_element(tokens, &stack, arena).expect("an element")); } } } |
