Skip to content

Commit 1c00324

Browse files
committed
Add MathMLElement interface and mixins ElementCSSInlineStyle, HTMLOrForeignElement
1 parent 4765448 commit 1c00324

17 files changed

+1455
-140
lines changed

crates/web-sys/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ LockManager = []
790790
LockManagerSnapshot = []
791791
LockMode = []
792792
LockOptions = []
793+
MathMlElement = ["Element", "EventTarget", "Node"]
793794
MediaCapabilities = []
794795
MediaCapabilitiesInfo = []
795796
MediaConfiguration = []

crates/web-sys/src/features/gen_HtmlButtonElement.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ extern "C" {
1212
#[doc = ""]
1313
#[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
1414
pub type HtmlButtonElement;
15-
# [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = autofocus)]
16-
#[doc = "Getter for the `autofocus` field of this object."]
17-
#[doc = ""]
18-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"]
19-
#[doc = ""]
20-
#[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
21-
pub fn autofocus(this: &HtmlButtonElement) -> bool;
22-
# [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = autofocus)]
23-
#[doc = "Setter for the `autofocus` field of this object."]
24-
#[doc = ""]
25-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"]
26-
#[doc = ""]
27-
#[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
28-
pub fn set_autofocus(this: &HtmlButtonElement, value: bool);
2915
# [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = disabled)]
3016
#[doc = "Getter for the `disabled` field of this object."]
3117
#[doc = ""]

crates/web-sys/src/features/gen_HtmlElement.rs

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ extern "C" {
8282
#[doc = ""]
8383
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
8484
pub fn set_dir(this: &HtmlElement, value: &str);
85-
#[cfg(feature = "DomStringMap")]
86-
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = dataset)]
87-
#[doc = "Getter for the `dataset` field of this object."]
88-
#[doc = ""]
89-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset)"]
90-
#[doc = ""]
91-
#[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `HtmlElement`*"]
92-
pub fn dataset(this: &HtmlElement) -> DomStringMap;
9385
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = innerText)]
9486
#[doc = "Getter for the `innerText` field of this object."]
9587
#[doc = ""]
@@ -132,20 +124,6 @@ extern "C" {
132124
#[doc = ""]
133125
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
134126
pub fn set_inert(this: &HtmlElement, value: bool);
135-
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = tabIndex)]
136-
#[doc = "Getter for the `tabIndex` field of this object."]
137-
#[doc = ""]
138-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"]
139-
#[doc = ""]
140-
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
141-
pub fn tab_index(this: &HtmlElement) -> i32;
142-
# [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = tabIndex)]
143-
#[doc = "Setter for the `tabIndex` field of this object."]
144-
#[doc = ""]
145-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"]
146-
#[doc = ""]
147-
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
148-
pub fn set_tab_index(this: &HtmlElement, value: i32);
149127
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = accessKey)]
150128
#[doc = "Getter for the `accessKey` field of this object."]
151129
#[doc = ""]
@@ -230,14 +208,6 @@ extern "C" {
230208
#[doc = ""]
231209
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
232210
pub fn set_spellcheck(this: &HtmlElement, value: bool);
233-
#[cfg(feature = "CssStyleDeclaration")]
234-
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = style)]
235-
#[doc = "Getter for the `style` field of this object."]
236-
#[doc = ""]
237-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)"]
238-
#[doc = ""]
239-
#[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `HtmlElement`*"]
240-
pub fn style(this: &HtmlElement) -> CssStyleDeclaration;
241211
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetParent)]
242212
#[doc = "Getter for the `offsetParent` field of this object."]
243213
#[doc = ""]
@@ -315,6 +285,14 @@ extern "C" {
315285
#[doc = ""]
316286
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
317287
pub fn set_onpaste(this: &HtmlElement, value: Option<&::js_sys::Function>);
288+
#[cfg(feature = "CssStyleDeclaration")]
289+
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = style)]
290+
#[doc = "Getter for the `style` field of this object."]
291+
#[doc = ""]
292+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)"]
293+
#[doc = ""]
294+
#[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `HtmlElement`*"]
295+
pub fn style(this: &HtmlElement) -> CssStyleDeclaration;
318296
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onabort)]
319297
#[doc = "Getter for the `onabort` field of this object."]
320298
#[doc = ""]
@@ -1477,6 +1455,42 @@ extern "C" {
14771455
#[doc = ""]
14781456
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
14791457
pub fn set_onwebkittransitionend(this: &HtmlElement, value: Option<&::js_sys::Function>);
1458+
#[cfg(feature = "DomStringMap")]
1459+
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = dataset)]
1460+
#[doc = "Getter for the `dataset` field of this object."]
1461+
#[doc = ""]
1462+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset)"]
1463+
#[doc = ""]
1464+
#[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `HtmlElement`*"]
1465+
pub fn dataset(this: &HtmlElement) -> DomStringMap;
1466+
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = autofocus)]
1467+
#[doc = "Getter for the `autofocus` field of this object."]
1468+
#[doc = ""]
1469+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/autofocus)"]
1470+
#[doc = ""]
1471+
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
1472+
pub fn autofocus(this: &HtmlElement) -> bool;
1473+
# [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLElement" , js_name = autofocus)]
1474+
#[doc = "Setter for the `autofocus` field of this object."]
1475+
#[doc = ""]
1476+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/autofocus)"]
1477+
#[doc = ""]
1478+
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
1479+
pub fn set_autofocus(this: &HtmlElement, value: bool) -> Result<(), JsValue>;
1480+
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = tabIndex)]
1481+
#[doc = "Getter for the `tabIndex` field of this object."]
1482+
#[doc = ""]
1483+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"]
1484+
#[doc = ""]
1485+
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
1486+
pub fn tab_index(this: &HtmlElement) -> i32;
1487+
# [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = tabIndex)]
1488+
#[doc = "Setter for the `tabIndex` field of this object."]
1489+
#[doc = ""]
1490+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"]
1491+
#[doc = ""]
1492+
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
1493+
pub fn set_tab_index(this: &HtmlElement, value: i32);
14801494
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onerror)]
14811495
#[doc = "Getter for the `onerror` field of this object."]
14821496
#[doc = ""]

crates/web-sys/src/features/gen_HtmlInputElement.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,6 @@ extern "C" {
5454
#[doc = ""]
5555
#[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"]
5656
pub fn set_autocomplete(this: &HtmlInputElement, value: &str);
57-
# [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = autofocus)]
58-
#[doc = "Getter for the `autofocus` field of this object."]
59-
#[doc = ""]
60-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"]
61-
#[doc = ""]
62-
#[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"]
63-
pub fn autofocus(this: &HtmlInputElement) -> bool;
64-
# [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = autofocus)]
65-
#[doc = "Setter for the `autofocus` field of this object."]
66-
#[doc = ""]
67-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"]
68-
#[doc = ""]
69-
#[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"]
70-
pub fn set_autofocus(this: &HtmlInputElement, value: bool);
7157
# [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultChecked)]
7258
#[doc = "Getter for the `defaultChecked` field of this object."]
7359
#[doc = ""]

crates/web-sys/src/features/gen_HtmlSelectElement.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ extern "C" {
1212
#[doc = ""]
1313
#[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
1414
pub type HtmlSelectElement;
15-
# [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = autofocus)]
16-
#[doc = "Getter for the `autofocus` field of this object."]
17-
#[doc = ""]
18-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"]
19-
#[doc = ""]
20-
#[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
21-
pub fn autofocus(this: &HtmlSelectElement) -> bool;
22-
# [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = autofocus)]
23-
#[doc = "Setter for the `autofocus` field of this object."]
24-
#[doc = ""]
25-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"]
26-
#[doc = ""]
27-
#[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
28-
pub fn set_autofocus(this: &HtmlSelectElement, value: bool);
2915
# [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = autocomplete)]
3016
#[doc = "Getter for the `autocomplete` field of this object."]
3117
#[doc = ""]

crates/web-sys/src/features/gen_HtmlTextAreaElement.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,6 @@ extern "C" {
2626
#[doc = ""]
2727
#[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
2828
pub fn set_autocomplete(this: &HtmlTextAreaElement, value: &str);
29-
# [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = autofocus)]
30-
#[doc = "Getter for the `autofocus` field of this object."]
31-
#[doc = ""]
32-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"]
33-
#[doc = ""]
34-
#[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
35-
pub fn autofocus(this: &HtmlTextAreaElement) -> bool;
36-
# [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autofocus)]
37-
#[doc = "Setter for the `autofocus` field of this object."]
38-
#[doc = ""]
39-
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"]
40-
#[doc = ""]
41-
#[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
42-
pub fn set_autofocus(this: &HtmlTextAreaElement, value: bool);
4329
# [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = cols)]
4430
#[doc = "Getter for the `cols` field of this object."]
4531
#[doc = ""]

0 commit comments

Comments
 (0)