mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
servo: Merge #11020 - Fix formsubmitter methods for buttons (from cbrewster:fix_button_formsubmitter_methods); r=KiChjang
Fixes #11015 Fixes #11014 Source-Repo: https://github.com/servo/servo Source-Revision: 15c5c81b1f025ad66f9eb000d1ac583dadc510f9
This commit is contained in:
parent
6059510586
commit
336550651a
@ -736,8 +736,8 @@ impl<'a> FormSubmitter<'a> {
|
||||
},
|
||||
FormSubmitter::ButtonElement(button_element) => {
|
||||
button_element.get_form_attribute(&atom!("formenctype"),
|
||||
|i| i.FormAction(),
|
||||
|f| f.Action())
|
||||
|i| i.FormEnctype(),
|
||||
|f| f.Enctype())
|
||||
}
|
||||
};
|
||||
match &*attr {
|
||||
@ -759,8 +759,8 @@ impl<'a> FormSubmitter<'a> {
|
||||
},
|
||||
FormSubmitter::ButtonElement(button_element) => {
|
||||
button_element.get_form_attribute(&atom!("formmethod"),
|
||||
|i| i.FormAction(),
|
||||
|f| f.Action())
|
||||
|i| i.FormMethod(),
|
||||
|f| f.Method())
|
||||
}
|
||||
};
|
||||
match &*attr {
|
||||
@ -780,8 +780,8 @@ impl<'a> FormSubmitter<'a> {
|
||||
},
|
||||
FormSubmitter::ButtonElement(button_element) => {
|
||||
button_element.get_form_attribute(&atom!("formtarget"),
|
||||
|i| i.FormAction(),
|
||||
|f| f.Action())
|
||||
|i| i.FormTarget(),
|
||||
|f| f.Target())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user