aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/machine.rs b/src/machine.rs
index 509dae5..159a8a0 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -790,6 +790,8 @@ where
},
State::AttributeValueDoubleQuoted => match slf.read_char()? {
Some('"') => {
+ slf.emitter
+ .terminate_attribute_value(slf.reader.position() - 1);
slf.state = State::AfterAttributeValueQuoted;
Ok(ControlToken::Continue)
}
@@ -814,6 +816,8 @@ where
},
State::AttributeValueSingleQuoted => match slf.read_char()? {
Some('\'') => {
+ slf.emitter
+ .terminate_attribute_value(slf.reader.position() - 1);
slf.state = State::AfterAttributeValueQuoted;
Ok(ControlToken::Continue)
}
@@ -838,6 +842,8 @@ where
},
State::AttributeValueUnquoted => match slf.read_char()? {
Some(whitespace_pat!()) => {
+ slf.emitter
+ .terminate_attribute_value(slf.reader.position() - 1);
slf.state = State::BeforeAttributeName;
Ok(ControlToken::Continue)
}