Skip to content

Commit

Permalink
Restore HTMLTableCellElement's abbr and scope properties (#3972)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleslie authored Jul 28, 2024
1 parent 240fbd2 commit 69f9fe5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
28 changes: 28 additions & 0 deletions crates/web-sys/src/features/gen_HtmlTableCellElement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""]
Expand Down
4 changes: 4 additions & 0 deletions crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 69f9fe5

Please sign in to comment.