mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
hidden field named _charset_ now appears in FormData as UTF-8 to fix #25150
This commit is contained in:
parent
e8d677ad26
commit
7f41b1b294
4 changed files with 44 additions and 18 deletions
|
@ -55,7 +55,7 @@ impl FormData {
|
|||
form: Option<&HTMLFormElement>,
|
||||
) -> Fallible<DomRoot<FormData>> {
|
||||
if let Some(opt_form) = form {
|
||||
return match opt_form.get_form_dataset(None) {
|
||||
return match opt_form.get_form_dataset(None, None) {
|
||||
Some(form_datums) => Ok(FormData::new(Some(form_datums), global)),
|
||||
None => Err(Error::InvalidState),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue