From ee8ab781672e7ab608e74a5b605eb189828f0afe Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 26 Sep 2023 08:22:21 +0200 Subject: fix(tokenizer): don't lowercase temp chars in ScriptDataEndTagName This bug resulted in e.g. "` tag. + #### Breaking changes * Byte offsets were moved out of the `Token` enum into a new `Trace` enum. diff --git a/src/tokenizer/machine.rs b/src/tokenizer/machine.rs index 944eb01..100f645 100644 --- a/src/tokenizer/machine.rs +++ b/src/tokenizer/machine.rs @@ -428,7 +428,7 @@ where } Some(x) if x.is_ascii_alphabetic() => { slf.push_tag_name(ctostr!(x.to_ascii_lowercase())); - slf.temporary_buffer.push(x.to_ascii_lowercase()); + slf.temporary_buffer.push(x); Ok(ControlToken::Continue) } c => { -- cgit v1.2.3