mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Make hidden input _charset_ check case insensitive
This commit is contained in:
parent
14fd2e56e6
commit
fa57ba5ca9
3 changed files with 3 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue