1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "HtmlElement",
9 extends = "Element",
10 extends = "Node",
11 extends = "EventTarget",
12 extends = "::js_sys::Object",
13 js_name = "HTMLFormElement",
14 typescript_type = "HTMLFormElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `HtmlFormElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
22 pub type HtmlFormElement;
23 #[wasm_bindgen(
24 method,
25 getter,
26 js_class = "HTMLFormElement",
27 js_name = "acceptCharset"
28 )]
29 #[doc = "Getter for the `acceptCharset` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
34 pub fn accept_charset(this: &HtmlFormElement) -> ::alloc::string::String;
35 #[wasm_bindgen(
36 method,
37 setter,
38 js_class = "HTMLFormElement",
39 js_name = "acceptCharset"
40 )]
41 #[doc = "Setter for the `acceptCharset` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
46 pub fn set_accept_charset(this: &HtmlFormElement, value: &str);
47 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "action")]
48 #[doc = "Getter for the `action` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
53 pub fn action(this: &HtmlFormElement) -> ::alloc::string::String;
54 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "action")]
55 #[doc = "Setter for the `action` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
60 pub fn set_action(this: &HtmlFormElement, value: &str);
61 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "autocomplete")]
62 #[doc = "Getter for the `autocomplete` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
67 pub fn autocomplete(this: &HtmlFormElement) -> ::alloc::string::String;
68 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "autocomplete")]
69 #[doc = "Setter for the `autocomplete` field of this object."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
74 pub fn set_autocomplete(this: &HtmlFormElement, value: &str);
75 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "enctype")]
76 #[doc = "Getter for the `enctype` field of this object."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
81 pub fn enctype(this: &HtmlFormElement) -> ::alloc::string::String;
82 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "enctype")]
83 #[doc = "Setter for the `enctype` field of this object."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
88 pub fn set_enctype(this: &HtmlFormElement, value: &str);
89 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "encoding")]
90 #[doc = "Getter for the `encoding` field of this object."]
91 #[doc = ""]
92 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"]
93 #[doc = ""]
94 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
95 pub fn encoding(this: &HtmlFormElement) -> ::alloc::string::String;
96 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "encoding")]
97 #[doc = "Setter for the `encoding` field of this object."]
98 #[doc = ""]
99 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
102 pub fn set_encoding(this: &HtmlFormElement, value: &str);
103 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "method")]
104 #[doc = "Getter for the `method` field of this object."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
109 pub fn method(this: &HtmlFormElement) -> ::alloc::string::String;
110 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "method")]
111 #[doc = "Setter for the `method` field of this object."]
112 #[doc = ""]
113 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"]
114 #[doc = ""]
115 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
116 pub fn set_method(this: &HtmlFormElement, value: &str);
117 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "name")]
118 #[doc = "Getter for the `name` field of this object."]
119 #[doc = ""]
120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
123 pub fn name(this: &HtmlFormElement) -> ::alloc::string::String;
124 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "name")]
125 #[doc = "Setter for the `name` field of this object."]
126 #[doc = ""]
127 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
130 pub fn set_name(this: &HtmlFormElement, value: &str);
131 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "noValidate")]
132 #[doc = "Getter for the `noValidate` field of this object."]
133 #[doc = ""]
134 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"]
135 #[doc = ""]
136 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
137 pub fn no_validate(this: &HtmlFormElement) -> bool;
138 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "noValidate")]
139 #[doc = "Setter for the `noValidate` field of this object."]
140 #[doc = ""]
141 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"]
142 #[doc = ""]
143 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
144 pub fn set_no_validate(this: &HtmlFormElement, value: bool);
145 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "target")]
146 #[doc = "Getter for the `target` field of this object."]
147 #[doc = ""]
148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
151 pub fn target(this: &HtmlFormElement) -> ::alloc::string::String;
152 #[wasm_bindgen(method, setter, js_class = "HTMLFormElement", js_name = "target")]
153 #[doc = "Setter for the `target` field of this object."]
154 #[doc = ""]
155 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
158 pub fn set_target(this: &HtmlFormElement, value: &str);
159 #[cfg(feature = "HtmlCollection")]
160 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "elements")]
161 #[doc = "Getter for the `elements` field of this object."]
162 #[doc = ""]
163 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements)"]
164 #[doc = ""]
165 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFormElement`*"]
166 pub fn elements(this: &HtmlFormElement) -> HtmlCollection;
167 #[wasm_bindgen(method, getter, js_class = "HTMLFormElement", js_name = "length")]
168 #[doc = "Getter for the `length` field of this object."]
169 #[doc = ""]
170 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/length)"]
171 #[doc = ""]
172 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
173 pub fn length(this: &HtmlFormElement) -> i32;
174 #[wasm_bindgen(method, js_class = "HTMLFormElement", js_name = "checkValidity")]
175 #[doc = "The `checkValidity()` method."]
176 #[doc = ""]
177 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/checkValidity)"]
178 #[doc = ""]
179 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
180 pub fn check_validity(this: &HtmlFormElement) -> bool;
181 #[wasm_bindgen(method, js_class = "HTMLFormElement", js_name = "reportValidity")]
182 #[doc = "The `reportValidity()` method."]
183 #[doc = ""]
184 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity)"]
185 #[doc = ""]
186 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
187 pub fn report_validity(this: &HtmlFormElement) -> bool;
188 #[wasm_bindgen(catch, method, js_class = "HTMLFormElement", js_name = "requestSubmit")]
189 #[doc = "The `requestSubmit()` method."]
190 #[doc = ""]
191 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"]
192 #[doc = ""]
193 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
194 pub fn request_submit(this: &HtmlFormElement) -> Result<(), JsValue>;
195 #[wasm_bindgen(catch, method, js_class = "HTMLFormElement", js_name = "requestSubmit")]
196 #[doc = "The `requestSubmit()` method."]
197 #[doc = ""]
198 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"]
199 #[doc = ""]
200 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
201 pub fn request_submit_with_submitter(
202 this: &HtmlFormElement,
203 submitter: Option<&HtmlElement>,
204 ) -> Result<(), JsValue>;
205 #[wasm_bindgen(method, js_class = "HTMLFormElement")]
206 #[doc = "The `reset()` method."]
207 #[doc = ""]
208 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reset)"]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
211 pub fn reset(this: &HtmlFormElement);
212 #[wasm_bindgen(catch, method, js_class = "HTMLFormElement")]
213 #[doc = "The `submit()` method."]
214 #[doc = ""]
215 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit)"]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
218 pub fn submit(this: &HtmlFormElement) -> Result<(), JsValue>;
219 #[wasm_bindgen(method, js_class = "HTMLFormElement", indexing_getter)]
220 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
221 #[doc = ""]
222 #[doc = ""]
223 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
224 pub fn get_with_index(this: &HtmlFormElement, index: u32) -> Option<Element>;
225 #[wasm_bindgen(method, js_class = "HTMLFormElement", indexing_getter)]
226 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
227 #[doc = ""]
228 #[doc = ""]
229 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
230 pub fn get_with_name(this: &HtmlFormElement, name: &str) -> Option<::js_sys::Object>;
231}