Include <button type=submit> data whilst constructing the form dataset

This commit is contained in:
Manish Goregaokar 2016-05-23 11:48:09 +05:30
parent 6b039612ba
commit 102cdaa7cc
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
3 changed files with 46 additions and 5 deletions

View file

@ -548,7 +548,12 @@ impl HTMLFormElement {
data_set.push(datum);
}
}
HTMLElementTypeId::HTMLButtonElement |
HTMLElementTypeId::HTMLButtonElement => {
let button = child.downcast::<HTMLButtonElement>().unwrap();
if let Some(datum) = button.form_datum(submitter) {
data_set.push(datum);
}
}
HTMLElementTypeId::HTMLObjectElement => {
// Unimplemented
()