custom_element/
html_constructors.rs

1/// These are all the valid HTMLElement constructors, exported
2/// for convenience. These can be used to created cutomized built-in
3/// custom elements.
4#[allow(missing_docs)]
5pub mod constructors {
6    use js_sys::Function;
7    use wasm_bindgen::prelude::*;
8
9    #[wasm_bindgen]
10    extern "C" {
11        /// Constructor for the [`web_sys::HTMLAnchorElement`]
12        #[wasm_bindgen(js_name = HTMLAnchorElement, js_namespace = window)]
13        pub static HTML_ANCHOR_ELEMENT_CONSTRUCTOR: Function;
14
15        /// Constructor for the [`web_sys::HTMLAreaElement`]
16        #[wasm_bindgen(js_name = HTMLAreaElement, js_namespace = window)]
17        pub static HTML_AREA_ELEMENT_CONSTRUCTOR: Function;
18
19        /// Constructor for the [`web_sys::HTMLAudioElement`]
20        #[wasm_bindgen(js_name = HTMLAudioElement, js_namespace = window)]
21        pub static HTML_AUDIO_ELEMENT_CONSTRUCTOR: Function;
22
23        /// Constructor for the [`web_sys::HTMLBRElement`]
24        #[wasm_bindgen(js_name = HTMLBRElement, js_namespace = window)]
25        pub static HTML_BR_ELEMENT_CONSTRUCTOR: Function;
26
27        /// Constructor for the [`web_sys::HTMLBaseElement`]
28        #[wasm_bindgen(js_name = HTMLBaseElement, js_namespace = window)]
29        pub static HTML_BASE_ELEMENT_CONSTRUCTOR: Function;
30
31        /// Constructor for the [`web_sys::HTMLBodyElement`]
32        #[wasm_bindgen(js_name = HTMLBodyElement, js_namespace = window)]
33        pub static HTML_BODY_ELEMENT_CONSTRUCTOR: Function;
34
35        /// Constructor for the [`web_sys::HTMLButtonElement`]
36        #[wasm_bindgen(js_name = HTMLButtonElement, js_namespace = window)]
37        pub static HTML_BUTTON_ELEMENT_CONSTRUCTOR: Function;
38
39        /// Constructor for the [`web_sys::HTMLCanvasElement`]
40        #[wasm_bindgen(js_name = HTMLCanvasElement, js_namespace = window)]
41        pub static HTML_CANVAS_ELEMENT_CONSTRUCTOR: Function;
42
43        /// Constructor for the [`web_sys::HTMLDListElement`]
44        #[wasm_bindgen(js_name = HTMLDListElement, js_namespace = window)]
45        pub static HTML_D_LIST_ELEMENT_CONSTRUCTOR: Function;
46
47        /// Constructor for the [`web_sys::HTMLDataElement`]
48        #[wasm_bindgen(js_name = HTMLDataElement, js_namespace = window)]
49        pub static HTML_DATA_ELEMENT_CONSTRUCTOR: Function;
50
51        /// Constructor for the [`web_sys::HTMLDataListElement`]
52        #[wasm_bindgen(js_name = HTMLDataListElement, js_namespace = window)]
53        pub static HTML_DATA_LIST_ELEMENT_CONSTRUCTOR: Function;
54
55        /// Constructor for the [`web_sys::HTMLDetailsElement`]
56        #[wasm_bindgen(js_name = HTMLDetailsElement, js_namespace = window)]
57        pub static HTML_DETAILS_ELEMENT_CONSTRUCTOR: Function;
58
59        /// Constructor for the [`web_sys::HTMLDialogElement`]
60        #[wasm_bindgen(js_name = HTMLDialogElement, js_namespace = window)]
61        pub static HTML_DIALOG_ELEMENT_CONSTRUCTOR: Function;
62
63        /// Constructor for the [`web_sys::HTMLDirectoryElement`]
64        #[wasm_bindgen(js_name = HTMLDirectoryElement, js_namespace = window)]
65        pub static HTML_DIRECTORY_ELEMENT_CONSTRUCTOR: Function;
66
67        /// Constructor for the [`web_sys::HTMLDivElement`]
68        #[wasm_bindgen(js_name = HTMLDivElement, js_namespace = window)]
69        pub static HTML_DIV_ELEMENT_CONSTRUCTOR: Function;
70
71        /// Constructor for the [`web_sys::HTMLDocument`]
72        #[wasm_bindgen(js_name = HTMLDocument, js_namespace = window)]
73        pub static HTML_DOCUMENT_CONSTRUCTOR: Function;
74
75        /// Constructor for the [`web_sys::HTMLElement`]
76        #[wasm_bindgen(js_name = HTMLElement, js_namespace = window)]
77        pub static HTML_ELEMENT_CONSTRUCTOR: Function;
78
79        /// Constructor for the [`web_sys::HTMLEmbedElement`]
80        #[wasm_bindgen(js_name = HTMLEmbedElement, js_namespace = window)]
81        pub static HTML_EMBED_ELEMENT_CONSTRUCTOR: Function;
82
83        /// Constructor for the [`web_sys::HTMLFieldSetElement`]
84        #[wasm_bindgen(js_name = HTMLFieldSetElement, js_namespace = window)]
85        pub static HTML_FIELD_SET_ELEMENT_CONSTRUCTOR: Function;
86
87        /// Constructor for the [`web_sys::HTMLFontElement`]
88        #[wasm_bindgen(js_name = HTMLFontElement, js_namespace = window)]
89        pub static HTML_FONT_ELEMENT_CONSTRUCTOR: Function;
90
91        /// Constructor for the [`web_sys::HTMLFormElement`]
92        #[wasm_bindgen(js_name = HTMLFormElement, js_namespace = window)]
93        pub static HTML_FORM_ELEMENT_CONSTRUCTOR: Function;
94
95        /// Constructor for the [`web_sys::HTMLFrameElement`]
96        #[wasm_bindgen(js_name = HTMLFrameElement, js_namespace = window)]
97        pub static HTML_FRAME_ELEMENT_CONSTRUCTOR: Function;
98
99        /// Constructor for the [`web_sys::HTMLFrameSetElement`]
100        #[wasm_bindgen(js_name = HTMLFrameSetElement, js_namespace = window)]
101        pub static HTML_FRAME_SET_ELEMENT_CONSTRUCTOR: Function;
102
103        /// Constructor for the [`web_sys::HTMLHRElement`]
104        #[wasm_bindgen(js_name = HTMLHRElement, js_namespace = window)]
105        pub static HTML_HR_ELEMENT_CONSTRUCTOR: Function;
106
107        /// Constructor for the [`web_sys::HTMLHeadElement`]
108        #[wasm_bindgen(js_name = HTMLHeadElement, js_namespace = window)]
109        pub static HTML_HEAD_ELEMENT_CONSTRUCTOR: Function;
110
111        /// Constructor for the [`web_sys::HTMLHeadingElement`]
112        #[wasm_bindgen(js_name = HTMLHeadingElement, js_namespace = window)]
113        pub static HTML_HEADING_ELEMENT_CONSTRUCTOR: Function;
114
115        /// Constructor for the [`web_sys::HTMLHtmlElement`]
116        #[wasm_bindgen(js_name = HTMLHtmlElement, js_namespace = window)]
117        pub static HTML_HTML_ELEMENT_CONSTRUCTOR: Function;
118
119        /// Constructor for the [`web_sys::HTMLIFrameElement`]
120        #[wasm_bindgen(js_name = HTMLIFrameElement, js_namespace = window)]
121        pub static HTML_IFRAME_ELEMENT_CONSTRUCTOR: Function;
122
123        /// Constructor for the [`web_sys::HTMLImageElement`]
124        #[wasm_bindgen(js_name = HTMLImageElement, js_namespace = window)]
125        pub static HTML_IMAGE_ELEMENT_CONSTRUCTOR: Function;
126
127        /// Constructor for the [`web_sys::HTMLInputElement`]
128        #[wasm_bindgen(js_name = HTMLInputElement, js_namespace = window)]
129        pub static HTML_INPUT_ELEMENT_CONSTRUCTOR: Function;
130
131        /// Constructor for the [`web_sys::HTMLLIElement`]
132        #[wasm_bindgen(js_name = HTMLLIElement, js_namespace = window)]
133        pub static HTML_LI_ELEMENT_CONSTRUCTOR: Function;
134
135        /// Constructor for the [`web_sys::HTMLLabelElement`]
136        #[wasm_bindgen(js_name = HTMLLabelElement, js_namespace = window)]
137        pub static HTML_LABEL_ELEMENT_CONSTRUCTOR: Function;
138
139        /// Constructor for the [`web_sys::HTMLLegendElement`]
140        #[wasm_bindgen(js_name = HTMLLegendElement, js_namespace = window)]
141        pub static HTML_LEGEND_ELEMENT_CONSTRUCTOR: Function;
142
143        /// Constructor for the [`web_sys::HTMLLinkElement`]
144        #[wasm_bindgen(js_name = HTMLLinkElement, js_namespace = window)]
145        pub static HTML_LINK_ELEMENT_CONSTRUCTOR: Function;
146
147        /// Constructor for the [`web_sys::HTMLMapElement`]
148        #[wasm_bindgen(js_name = HTMLMapElement, js_namespace = window)]
149        pub static HTML_MAP_ELEMENT_CONSTRUCTOR: Function;
150
151        /// Constructor for the [`web_sys::HTMLMarqueeElement`]
152        #[wasm_bindgen(js_name = HTMLMarqueeElement, js_namespace = window)]
153        pub static HTML_MARQUEE_ELEMENT_CONSTRUCTOR: Function;
154
155        /// Constructor for the [`web_sys::HTMLMediaElement`]
156        #[wasm_bindgen(js_name = HTMLMediaElement, js_namespace = window)]
157        pub static HTML_MEDIA_ELEMENT_CONSTRUCTOR: Function;
158
159        /// Constructor for the [`web_sys::HTMLMenuElement`]
160        #[wasm_bindgen(js_name = HTMLMenuElement, js_namespace = window)]
161        pub static HTML_MENU_ELEMENT_CONSTRUCTOR: Function;
162
163        /// Constructor for the [`web_sys::HTMLMetaElement`]
164        #[wasm_bindgen(js_name = HTMLMetaElement, js_namespace = window)]
165        pub static HTML_META_ELEMENT_CONSTRUCTOR: Function;
166
167        /// Constructor for the [`web_sys::HTMLMeterElement`]
168        #[wasm_bindgen(js_name = HTMLMeterElement, js_namespace = window)]
169        pub static HTML_METER_ELEMENT_CONSTRUCTOR: Function;
170
171        /// Constructor for the [`web_sys::HTMLModElement`]
172        #[wasm_bindgen(js_name = HTMLModElement, js_namespace = window)]
173        pub static HTML_MOD_ELEMENT_CONSTRUCTOR: Function;
174
175        /// Constructor for the [`web_sys::HTMLOListElement`]
176        #[wasm_bindgen(js_name = HTMLOListElement, js_namespace = window)]
177        pub static HTML_OLIST_ELEMENT_CONSTRUCTOR: Function;
178
179        /// Constructor for the [`web_sys::HTMLObjectElement`]
180        #[wasm_bindgen(js_name = HTMLObjectElement, js_namespace = window)]
181        pub static HTML_OBJECT_ELEMENT_CONSTRUCTOR: Function;
182
183        /// Constructor for the [`web_sys::HTMLOptGroupElement`]
184        #[wasm_bindgen(js_name = HTMLOptGroupElement, js_namespace = window)]
185        pub static HTML_OPT_GROUP_ELEMENT_CONSTRUCTOR: Function;
186
187        /// Constructor for the [`web_sys::HTMLOptionElement`]
188        #[wasm_bindgen(js_name = HTMLOptionElement, js_namespace = window)]
189        pub static HTML_OPTION_ELEMENT_CONSTRUCTOR: Function;
190
191        /// Constructor for the [`web_sys::HTMLOutputElement`]
192        #[wasm_bindgen(js_name = HTMLOutputElement, js_namespace = window)]
193        pub static HTML_OUTPUT_ELEMENT_CONSTRUCTOR: Function;
194
195        /// Constructor for the [`web_sys::HTMLParagraphElement`]
196        #[wasm_bindgen(js_name = HTMLParagraphElement, js_namespace = window)]
197        pub static HTML_PARAGRAPH_ELEMENT_CONSTRUCTOR: Function;
198
199        /// Constructor for the [`web_sys::HTMLParamElement`]
200        #[wasm_bindgen(js_name = HTMLParamElement, js_namespace = window)]
201        pub static HTML_PARAM_ELEMENT_CONSTRUCTOR: Function;
202
203        /// Constructor for the [`web_sys::HTMLPictureElement`]
204        #[wasm_bindgen(js_name = HTMLPictureElement, js_namespace = window)]
205        pub static HTML_PICTURE_ELEMENT_CONSTRUCTOR: Function;
206
207        /// Constructor for the [`web_sys::HTMLPreElement`]
208        #[wasm_bindgen(js_name = HTMLPreElement, js_namespace = window)]
209        pub static HTML_PRE_ELEMENT_CONSTRUCTOR: Function;
210
211        /// Constructor for the [`web_sys::HTMLProgressElement`]
212        #[wasm_bindgen(js_name = HTMLProgressElement, js_namespace = window)]
213        pub static HTML_PROGRESS_ELEMENT_CONSTRUCTOR: Function;
214
215        /// Constructor for the [`web_sys::HTMLQuoteElement`]
216        #[wasm_bindgen(js_name = HTMLQuoteElement, js_namespace = window)]
217        pub static HTML_QUOTE_ELEMENT_CONSTRUCTOR: Function;
218
219        /// Constructor for the [`web_sys::HTMLScriptElement`]
220        #[wasm_bindgen(js_name = HTMLScriptElement, js_namespace = window)]
221        pub static HTML_SCRIPT_ELEMENT_CONSTRUCTOR: Function;
222
223        /// Constructor for the [`web_sys::HTMLSelectElement`]
224        #[wasm_bindgen(js_name = HTMLSelectElement, js_namespace = window)]
225        pub static HTML_SELECT_ELEMENT_CONSTRUCTOR: Function;
226
227        /// Constructor for the [`web_sys::HTMLSlotElement`]
228        #[wasm_bindgen(js_name = HTMLSlotElement, js_namespace = window)]
229        pub static HTML_SLOT_ELEMENT_CONSTRUCTOR: Function;
230
231        /// Constructor for the [`web_sys::HTMLSourceElement`]
232        #[wasm_bindgen(js_name = HTMLSourceElement, js_namespace = window)]
233        pub static HTML_SOURCE_ELEMENT_CONSTRUCTOR: Function;
234
235        /// Constructor for the [`web_sys::HTMLSpanElement`]
236        #[wasm_bindgen(js_name = HTMLSpanElement, js_namespace = window)]
237        pub static HTML_SPAN_ELEMENT_CONSTRUCTOR: Function;
238
239        /// Constructor for the [`web_sys::HTMLStyleElement`]
240        #[wasm_bindgen(js_name = HTMLStyleElement, js_namespace = window)]
241        pub static HTML_STYLE_ELEMENT_CONSTRUCTOR: Function;
242
243        /// Constructor for the [`web_sys::HTMLTableCaptionElement`]
244        #[wasm_bindgen(js_name = HTMLTableCaptionElement, js_namespace = window)]
245        pub static HTML_TABLE_CAPTION_ELEMENT_CONSTRUCTOR: Function;
246
247        /// Constructor for the [`web_sys::HTMLTableCellElement`]
248        #[wasm_bindgen(js_name = HTMLTableCellElement, js_namespace = window)]
249        pub static HTML_TABLE_CELL_ELEMENT_CONSTRUCTOR: Function;
250
251        /// Constructor for the [`web_sys::HTMLTableColElement`]
252        #[wasm_bindgen(js_name = HTMLTableColElement, js_namespace = window)]
253        pub static HTML_TABLE_COL_ELEMENT_CONSTRUCTOR: Function;
254
255        /// Constructor for the [`web_sys::HTMLTableElement`]
256        #[wasm_bindgen(js_name = HTMLTableElement, js_namespace = window)]
257        pub static HTML_TABLE_ELEMENT_CONSTRUCTOR: Function;
258
259        /// Constructor for the [`web_sys::HTMLTableRowElement`]
260        #[wasm_bindgen(js_name = HTMLTableRowElement, js_namespace = window)]
261        pub static HTML_TABLE_ROW_ELEMENT_CONSTRUCTOR: Function;
262
263        /// Constructor for the [`web_sys::HTMLTableSectionElement`]
264        #[wasm_bindgen(js_name = HTMLTableSectionElement, js_namespace = window)]
265        pub static HTML_TABLE_SECTION_ELEMENT_CONSTRUCTOR: Function;
266
267        /// Constructor for the [`web_sys::HTMLTemplateElement`]
268        #[wasm_bindgen(js_name = HTMLTemplateElement, js_namespace = window)]
269        pub static HTML_TEMPLATE_ELEMENT_CONSTRUCTOR: Function;
270
271        /// Constructor for the [`web_sys::HTMLTextAreaElement`]
272        #[wasm_bindgen(js_name = HTMLTextAreaElement, js_namespace = window)]
273        pub static HTML_TEXTAREA_ELEMENT_CONSTRUCTOR: Function;
274
275        /// Constructor for the [`web_sys::HTMLTimeElement`]
276        #[wasm_bindgen(js_name = HTMLTimeElement, js_namespace = window)]
277        pub static HTML_TIME_ELEMENT_CONSTRUCTOR: Function;
278
279        /// Constructor for the [`web_sys::HTMLTitleElement`]
280        #[wasm_bindgen(js_name = HTMLTitleElement, js_namespace = window)]
281        pub static HTML_TITLE_ELEMENT_CONSTRUCTOR: Function;
282
283        /// Constructor for the [`web_sys::HTMLTrackElement`]
284        #[wasm_bindgen(js_name = HTMLTrackElement, js_namespace = window)]
285        pub static HTML_TRACK_ELEMENT_CONSTRUCTOR: Function;
286
287        /// Constructor for the [`web_sys::HTMLUListElement`]
288        #[wasm_bindgen(js_name = HTMLUListElement, js_namespace = window)]
289        pub static HTML_U_LIST_ELEMENT_CONSTRUCTOR: Function;
290
291        /// Constructor for the [`web_sys::HTMLUnknownElement`]
292        #[wasm_bindgen(js_name = HTMLUnknownElement, js_namespace = window)]
293        pub static HTML_UNKNOWN_ELEMENT_CONSTRUCTOR: Function;
294
295        /// Constructor for the [`web_sys::HTMLVideoElement`]
296        #[wasm_bindgen(js_name = HTMLVideoElement, js_namespace = window)]
297        pub static HTML_VIDEO_ELEMENT_CONSTRUCTOR: Function;
298    }
299}