mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
Auto merge of #11020 - ConnorGBrewster:fix_button_formsubmitter_methods, r=KiChjang
Fix formsubmitter methods for buttons Fixes #11015 Fixes #11014 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11020) <!-- Reviewable:end -->
This commit is contained in:
commit
15c5c81b1f
1 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue