mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Include <button type=submit> data whilst constructing the form dataset
This commit is contained in:
parent
6b039612ba
commit
102cdaa7cc
3 changed files with 46 additions and 5 deletions
|
@ -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
|
||||
()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue