diff options
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")); } } } |
