mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -405,6 +405,12 @@ impl HTMLInputElement {
|
|||
self.input_type.get()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_submit_button(&self) -> bool {
|
||||
let input_type = self.input_type.get();
|
||||
input_type == InputType::Submit || input_type == InputType::Image
|
||||
}
|
||||
|
||||
pub fn disable_sanitization(&self) {
|
||||
self.sanitization_flag.set(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue