mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implement HTMLFormElement.requestSubmit()Also includes a fix for reentrant form submission behavior
This commit is contained in:
parent
19b36bd795
commit
8194da2752
8 changed files with 143 additions and 80 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue