Skip to content
Permalink
Browse files

fix formsubmitter methods for buttons

  • Loading branch information...
cbrewster committed May 4, 2016
1 parent b4f573d commit 169af6f35e499cdb8dbf1819b4bee54eb22a2f3d
Showing with 6 additions and 6 deletions.
  1. +6 −6 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())
}
}
}

0 comments on commit 169af6f

Please sign in to comment.
You can’t perform that action at this time.