mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Rename fn get_form_datum to form_datum
This commit is contained in:
parent
814afd6537
commit
2d503c8281
2 changed files with 2 additions and 2 deletions
|
@ -414,7 +414,7 @@ impl HTMLFormElement {
|
||||||
HTMLElementTypeId::HTMLInputElement => {
|
HTMLElementTypeId::HTMLInputElement => {
|
||||||
let input = child.downcast::<HTMLInputElement>().unwrap();
|
let input = child.downcast::<HTMLInputElement>().unwrap();
|
||||||
// Step 3.2-3.7
|
// Step 3.2-3.7
|
||||||
if let Some(datum) = input.get_form_datum(submitter) {
|
if let Some(datum) = input.form_datum(submitter) {
|
||||||
data_set.push(datum);
|
data_set.push(datum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -596,7 +596,7 @@ impl HTMLInputElement {
|
||||||
|
|
||||||
/// https://html.spec.whatwg.org/multipage/#constructing-the-form-data-set
|
/// 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 which related to the HTMLInputElement
|
||||||
pub fn get_form_datum(&self, submitter: Option<FormSubmitter>) -> Option<FormDatum> {
|
pub fn form_datum(&self, submitter: Option<FormSubmitter>) -> Option<FormDatum> {
|
||||||
// Step 3.2
|
// Step 3.2
|
||||||
let ty = self.type_();
|
let ty = self.type_();
|
||||||
// Step 3.4
|
// Step 3.4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue