Restore HTMLTableCellElement's abbr and scope properties (#3972)

This commit is contained in:
Will Leslie 2024-07-28 12:53:30 -07:00 committed by GitHub
parent 240fbd2473
commit 69f9fe56ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 35 additions and 0 deletions

View File

@ -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.

View File

@ -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 = ""]

View File

@ -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 {