diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-11-15 11:18:10 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-05 18:32:11 -0800 |
commit | 7d51a543d8d04f9603ceb00d21faa298dda8b6c4 (patch) | |
tree | 58a0d4b4eba3b0f0d39d22550772d359f670fe62 /components/script/dom/htmlformelement.rs | |
parent | 2c2d741b1fbfdcf61c7b72501d1b0ec68d941bd2 (diff) | |
download | servo-7d51a543d8d04f9603ceb00d21faa298dda8b6c4.tar.gz servo-7d51a543d8d04f9603ceb00d21faa298dda8b6c4.zip |
Implement form control mutability, rename FormOwner -> FormControl
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r-- | components/script/dom/htmlformelement.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index a8461618db9..3ac799fdc04 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -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; } |