aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/machine.rs b/src/machine.rs
index c27708d..4f2d129 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -715,11 +715,15 @@ where
},
State::AttributeName => match slf.read_char()? {
c @ Some(whitespace_pat!() | '/' | '>') | c @ None => {
+ slf.emitter
+ .terminate_attribute_name(slf.position_before_match);
slf.state = State::AfterAttributeName;
slf.unread_char(c);
Ok(ControlToken::Continue)
}
Some('=') => {
+ slf.emitter
+ .terminate_attribute_name(slf.position_before_match);
slf.state = State::BeforeAttributeValue;
Ok(ControlToken::Continue)
}