Make hidden input _charset_ check case insensitive

This commit is contained in:
Vincent Ricard 2020-10-09 18:05:52 +02:00
parent 14fd2e56e6
commit fa57ba5ca9
3 changed files with 3 additions and 7 deletions

View file

@ -1759,7 +1759,7 @@ impl HTMLInputElement {
// Step 5.10: it's a hidden field named _charset_
InputType::Hidden => {
if name == "_charset_" {
if name.to_ascii_lowercase() == "_charset_" {
return vec![FormDatum {
ty: ty.clone(),
name: name,