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, 3 insertions, 3 deletions
diff --git a/src/machine.rs b/src/machine.rs
index 80b37d6..4300f45 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -763,12 +763,12 @@ pub fn consume<R: Reader, E: Emitter<R>>(
State::BeforeAttributeValue => match slf.read_char()? {
Some(whitespace_pat!()) => Ok(ControlToken::Continue),
Some('"') => {
- slf.emitter.init_attribute_value(&slf.reader);
+ slf.emitter.init_attribute_value(&slf.reader, true);
slf.state = State::AttributeValueDoubleQuoted;
Ok(ControlToken::Continue)
}
Some('\'') => {
- slf.emitter.init_attribute_value(&slf.reader);
+ slf.emitter.init_attribute_value(&slf.reader, true);
slf.state = State::AttributeValueSingleQuoted;
Ok(ControlToken::Continue)
}
@@ -779,7 +779,7 @@ pub fn consume<R: Reader, E: Emitter<R>>(
Ok(ControlToken::Continue)
}
c => {
- slf.emitter.init_attribute_value(&slf.reader);
+ slf.emitter.init_attribute_value(&slf.reader, false);
slf.state = State::AttributeValueUnquoted;
slf.unread_char(c);
Ok(ControlToken::Continue)