Implement HTMLFormElement.requestSubmit()Also includes a fix for reentrant form submission behavior

This commit is contained in:
Maxim Tsoy 2020-06-27 02:01:01 +02:00
parent 19b36bd795
commit 8194da2752
8 changed files with 143 additions and 80 deletions

View file

@ -77,6 +77,11 @@ impl HTMLButtonElement {
document,
)
}
#[inline]
pub fn is_submit_button(&self) -> bool {
self.button_type.get() == ButtonType::Submit
}
}
impl HTMLButtonElementMethods for HTMLButtonElement {