Skip to content

Commit

Permalink
Add missing HtmlFormElement::request_submit method
Browse files Browse the repository at this point in the history
  • Loading branch information
sciguy16 committed Dec 19, 2023
1 parent 185e9db commit a3275a2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions crates/web-sys/src/features/gen_HtmlFormElement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,23 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
pub fn report_validity(this: &HtmlFormElement) -> bool;
# [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = requestSubmit)]
#[doc = "The `requestSubmit()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
pub fn request_submit(this: &HtmlFormElement) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = requestSubmit)]
#[doc = "The `requestSubmit()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
pub fn request_submit_with_submitter(
this: &HtmlFormElement,
submitter: Option<&HtmlElement>,
) -> Result<(), JsValue>;
# [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = reset)]
#[doc = "The `reset()` method."]
#[doc = ""]
Expand Down
2 changes: 2 additions & 0 deletions crates/web-sys/webidls/enabled/HTMLFormElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ interface HTMLFormElement : HTMLElement {

[Throws]
undefined submit();
[Throws]
undefined requestSubmit(optional HTMLElement? submitter = null);
[CEReactions]
undefined reset();
boolean checkValidity();
Expand Down

0 comments on commit a3275a2

Please sign in to comment.