diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-30 18:54:39 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-12-05 02:52:36 +0100 |
commit | 042409a2c40bb997739326928eab7d0430cec50b (patch) | |
tree | f7566682a4a75d24dc33924fa7f985c68605558f /src/machine.rs | |
parent | fff865a98aa288930d6e363f03ad57570e429e92 (diff) |
spans: fix spans for quoted attribute values
Diffstat (limited to 'src/machine.rs')
-rw-r--r-- | src/machine.rs | 6 |
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) |