aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-05 07:48:40 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-05 07:48:40 -0700
commit15c5c81b1f025ad66f9eb000d1ac583dadc510f9 (patch)
treece06a2afcc8ad6998d821f1e4be97e1c0db83f60
parent95a1f7668cba3e903b2cee73caef121d286e9c3c (diff)
parent169af6f35e499cdb8dbf1819b4bee54eb22a2f3d (diff)
downloadservo-15c5c81b1f025ad66f9eb000d1ac583dadc510f9.tar.gz
servo-15c5c81b1f025ad66f9eb000d1ac583dadc510f9.zip
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 -->
-rw-r--r--components/script/dom/htmlformelement.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 0e8b6174ab5..a1fdd34e82a 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -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())
}
}
}