aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConnor Brewster <brewsterc@my.caspercollege.edu>2016-05-04 16:39:41 -0600
committerConnor Brewster <brewsterc@my.caspercollege.edu>2016-05-04 16:39:41 -0600
commit169af6f35e499cdb8dbf1819b4bee54eb22a2f3d (patch)
tree60d9f330c28f42054bd29fa29e9900a4213611d5
parentb4f573db1a4a054f7f991ac19c299a5a10aabad8 (diff)
downloadservo-169af6f35e499cdb8dbf1819b4bee54eb22a2f3d.tar.gz
servo-169af6f35e499cdb8dbf1819b4bee54eb22a2f3d.zip
fix formsubmitter methods for buttons
-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())
}
}
}