Skip to content

Commit

Permalink
Add HtmlElement inert property (rustwasm#3557)
Browse files Browse the repository at this point in the history
  • Loading branch information
birktj authored Aug 11, 2023
1 parent 486238b commit ed43f54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/web-sys/src/features/gen_HtmlElement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn set_hidden(this: &HtmlElement, value: bool);
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = inert)]
#[doc = "Getter for the `inert` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn inert(this: &HtmlElement) -> bool;
# [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = inert)]
#[doc = "Setter for the `inert` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn set_inert(this: &HtmlElement, value: bool);
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = tabIndex)]
#[doc = "Getter for the `tabIndex` field of this object."]
#[doc = ""]
Expand Down
2 changes: 2 additions & 0 deletions crates/web-sys/webidls/enabled/HTMLElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ interface HTMLElement : Element {
// user interaction
[CEReactions, SetterThrows, Pure]
attribute boolean hidden;
[CEReactions]
attribute boolean inert;
[NeedsCallerType]
undefined click();
[CEReactions, SetterThrows, Pure]
Expand Down

0 comments on commit ed43f54

Please sign in to comment.