diff --git a/CHANGELOG.md b/CHANGELOG.md index ed138fcfa97..827c76f6deb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,9 @@ * Support for iterable in WebIDL. Gives `entries`, `keys`, `values` methods for regular and asynchronous, as well as `for_each` for regular, iterables. [#3962](https://github.com/rustwasm/wasm-bindgen/pull/3962) +* Add bindings for `HTMLTableCellElement.abbr` and `scope` properties. + [#3972](https://github.com/rustwasm/wasm-bindgen/pull/3972) + ### Changed * Stabilize Web Share API. diff --git a/crates/web-sys/src/features/gen_HtmlTableCellElement.rs b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs index 0398abfdda0..9a4f0556e1d 100644 --- a/crates/web-sys/src/features/gen_HtmlTableCellElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs @@ -61,6 +61,34 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn cell_index(this: &HtmlTableCellElement) -> i32; + # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = abbr)] + #[doc = "Getter for the `abbr` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/abbr)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn abbr(this: &HtmlTableCellElement) -> String; + # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = abbr)] + #[doc = "Setter for the `abbr` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/abbr)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_abbr(this: &HtmlTableCellElement, value: &str); + # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = scope)] + #[doc = "Getter for the `scope` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/scope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn scope(this: &HtmlTableCellElement) -> String; + # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = scope)] + #[doc = "Setter for the `scope` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/scope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_scope(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] diff --git a/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl b/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl index ffb04d72a76..6e1209d17aa 100644 --- a/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl +++ b/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl @@ -21,6 +21,10 @@ interface HTMLTableCellElement : HTMLElement { [CEReactions, SetterThrows] attribute DOMString headers; readonly attribute long cellIndex; + [CEReactions] + attribute DOMString abbr; + [CEReactions] + attribute DOMString scope; }; partial interface HTMLTableCellElement {