Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore HTMLTableCellElement's abbr and scope properties #3972

Merged
merged 2 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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