mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Implement form control mutability, rename FormOwner -> FormControl
This commit is contained in:
parent
2c2d741b1f
commit
7d51a543d8
3 changed files with 19 additions and 4 deletions
|
@ -410,7 +410,7 @@ impl<'a> FormSubmitter<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait FormOwner<'a> : Copy {
|
||||
pub trait FormControl<'a> : Copy {
|
||||
fn form_owner(self) -> Option<Temporary<HTMLFormElement>>;
|
||||
fn get_form_attribute(self,
|
||||
attr: &Atom,
|
||||
|
@ -423,4 +423,6 @@ pub trait FormOwner<'a> : Copy {
|
|||
}
|
||||
}
|
||||
fn to_element(self) -> JSRef<'a, Element>;
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#concept-fe-mutable
|
||||
fn mutable(self) -> bool;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue