Create an almost-correct form_owner() for convenience

This commit is contained in:
Manish Goregaokar 2014-10-11 16:44:48 +05:30
parent 834df4e211
commit c92d58980c
2 changed files with 32 additions and 2 deletions

View file

@ -410,3 +410,7 @@ impl<'a> FormSubmitter<'a> {
}
}
}
pub trait FormOwner<'a> {
fn form_owner(self) -> Option<JSRef<'a, HTMLFormElement>>;
}