mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -605,8 +605,10 @@ impl HTMLInputElement {
|
|||
}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#constructing-the-form-data-set
|
||||
/// Steps range from 3.1 to 3.7 which related to the HTMLInputElement
|
||||
/// Steps range from 3.1 to 3.7 (specific to HTMLInputElement)
|
||||
pub fn form_datum(&self, submitter: Option<FormSubmitter>) -> Option<FormDatum> {
|
||||
// 3.1: disabled state check is in get_unclean_dataset
|
||||
|
||||
// Step 3.2
|
||||
let ty = self.type_();
|
||||
// Step 3.4
|
||||
|
@ -634,7 +636,7 @@ impl HTMLInputElement {
|
|||
|
||||
}
|
||||
|
||||
// Step 3.6
|
||||
// Step 3.9
|
||||
Some(FormDatum {
|
||||
ty: DOMString::from(&*ty), // FIXME(ajeffrey): Convert directly from Atoms to DOMStrings
|
||||
name: name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue