Implement form control mutability, rename FormOwner -> FormControl

This commit is contained in:
Manish Goregaokar 2014-11-15 11:18:10 +05:30
parent 2c2d741b1f
commit 7d51a543d8
3 changed files with 19 additions and 4 deletions

View file

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