Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix formsubmitter methods for buttons
  • Loading branch information
cbrewster committed May 4, 2016
1 parent b4f573d commit 169af6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/script/dom/htmlformelement.rs
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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())
}
}
}
Expand Down

0 comments on commit 169af6f

Please sign in to comment.