Rename fn get_form_datum to form_datum

This commit is contained in:
Keith Yeung 2016-04-11 08:56:37 -04:00
parent 814afd6537
commit 2d503c8281
2 changed files with 2 additions and 2 deletions

View file

@ -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);
} }
} }

View file

@ -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