Let header IDs have their original case

This commit is contained in:
Juno Takano 2025-12-24 06:33:13 -03:00
commit 6aa6b596f6

View file

@ -37,7 +37,7 @@ impl Header {
Some(next_lexeme) Some(next_lexeme)
if !config.ascii_dom_ids || next_lexeme.next.is_ascii() => if !config.ascii_dom_ids || next_lexeme.next.is_ascii() =>
{ {
next_lexeme.next.to_lowercase() next_lexeme.next.clone()
}, },
_ => String::from("h"), _ => String::from("h"),
}; };