Skip to main content

web_sys/features/
gen_HtmlAnchorElement.rs

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 = "HTMLAnchorElement",
14        typescript_type = "HTMLAnchorElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlAnchorElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
22    pub type HtmlAnchorElement;
23    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "target")]
24    #[doc = "Getter for the `target` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
29    pub fn target(this: &HtmlAnchorElement) -> ::alloc::string::String;
30    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "target")]
31    #[doc = "Setter for the `target` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
36    pub fn set_target(this: &HtmlAnchorElement, value: &str);
37    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "download")]
38    #[doc = "Getter for the `download` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
43    pub fn download(this: &HtmlAnchorElement) -> ::alloc::string::String;
44    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "download")]
45    #[doc = "Setter for the `download` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
50    pub fn set_download(this: &HtmlAnchorElement, value: &str);
51    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "ping")]
52    #[doc = "Getter for the `ping` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/ping)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
57    pub fn ping(this: &HtmlAnchorElement) -> ::alloc::string::String;
58    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "ping")]
59    #[doc = "Setter for the `ping` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/ping)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
64    pub fn set_ping(this: &HtmlAnchorElement, value: &str);
65    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "rel")]
66    #[doc = "Getter for the `rel` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
71    pub fn rel(this: &HtmlAnchorElement) -> ::alloc::string::String;
72    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "rel")]
73    #[doc = "Setter for the `rel` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
78    pub fn set_rel(this: &HtmlAnchorElement, value: &str);
79    #[wasm_bindgen(
80        method,
81        getter,
82        js_class = "HTMLAnchorElement",
83        js_name = "referrerPolicy"
84    )]
85    #[doc = "Getter for the `referrerPolicy` field of this object."]
86    #[doc = ""]
87    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
90    pub fn referrer_policy(this: &HtmlAnchorElement) -> ::alloc::string::String;
91    #[wasm_bindgen(
92        method,
93        setter,
94        js_class = "HTMLAnchorElement",
95        js_name = "referrerPolicy"
96    )]
97    #[doc = "Setter for the `referrerPolicy` field of this object."]
98    #[doc = ""]
99    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"]
100    #[doc = ""]
101    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
102    pub fn set_referrer_policy(this: &HtmlAnchorElement, value: &str);
103    #[cfg(feature = "DomTokenList")]
104    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "relList")]
105    #[doc = "Getter for the `relList` field of this object."]
106    #[doc = ""]
107    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/relList)"]
108    #[doc = ""]
109    #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAnchorElement`*"]
110    pub fn rel_list(this: &HtmlAnchorElement) -> DomTokenList;
111    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "hreflang")]
112    #[doc = "Getter for the `hreflang` field of this object."]
113    #[doc = ""]
114    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hreflang)"]
115    #[doc = ""]
116    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
117    pub fn hreflang(this: &HtmlAnchorElement) -> ::alloc::string::String;
118    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "hreflang")]
119    #[doc = "Setter for the `hreflang` field of this object."]
120    #[doc = ""]
121    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hreflang)"]
122    #[doc = ""]
123    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
124    pub fn set_hreflang(this: &HtmlAnchorElement, value: &str);
125    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "type")]
126    #[doc = "Getter for the `type` field of this object."]
127    #[doc = ""]
128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/type)"]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
131    pub fn type_(this: &HtmlAnchorElement) -> ::alloc::string::String;
132    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "type")]
133    #[doc = "Setter for the `type` field of this object."]
134    #[doc = ""]
135    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/type)"]
136    #[doc = ""]
137    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
138    pub fn set_type(this: &HtmlAnchorElement, value: &str);
139    #[wasm_bindgen(
140        catch,
141        method,
142        getter,
143        js_class = "HTMLAnchorElement",
144        js_name = "text"
145    )]
146    #[doc = "Getter for the `text` field of this object."]
147    #[doc = ""]
148    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/text)"]
149    #[doc = ""]
150    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
151    pub fn text(this: &HtmlAnchorElement) -> Result<::alloc::string::String, JsValue>;
152    #[wasm_bindgen(
153        catch,
154        method,
155        setter,
156        js_class = "HTMLAnchorElement",
157        js_name = "text"
158    )]
159    #[doc = "Setter for the `text` field of this object."]
160    #[doc = ""]
161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/text)"]
162    #[doc = ""]
163    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
164    pub fn set_text(this: &HtmlAnchorElement, value: &str) -> Result<(), JsValue>;
165    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "coords")]
166    #[doc = "Getter for the `coords` field of this object."]
167    #[doc = ""]
168    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/coords)"]
169    #[doc = ""]
170    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
171    pub fn coords(this: &HtmlAnchorElement) -> ::alloc::string::String;
172    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "coords")]
173    #[doc = "Setter for the `coords` field of this object."]
174    #[doc = ""]
175    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/coords)"]
176    #[doc = ""]
177    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
178    pub fn set_coords(this: &HtmlAnchorElement, value: &str);
179    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "charset")]
180    #[doc = "Getter for the `charset` field of this object."]
181    #[doc = ""]
182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/charset)"]
183    #[doc = ""]
184    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
185    pub fn charset(this: &HtmlAnchorElement) -> ::alloc::string::String;
186    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "charset")]
187    #[doc = "Setter for the `charset` field of this object."]
188    #[doc = ""]
189    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/charset)"]
190    #[doc = ""]
191    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
192    pub fn set_charset(this: &HtmlAnchorElement, value: &str);
193    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "name")]
194    #[doc = "Getter for the `name` field of this object."]
195    #[doc = ""]
196    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/name)"]
197    #[doc = ""]
198    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
199    pub fn name(this: &HtmlAnchorElement) -> ::alloc::string::String;
200    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "name")]
201    #[doc = "Setter for the `name` field of this object."]
202    #[doc = ""]
203    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/name)"]
204    #[doc = ""]
205    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
206    pub fn set_name(this: &HtmlAnchorElement, value: &str);
207    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "rev")]
208    #[doc = "Getter for the `rev` field of this object."]
209    #[doc = ""]
210    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rev)"]
211    #[doc = ""]
212    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
213    pub fn rev(this: &HtmlAnchorElement) -> ::alloc::string::String;
214    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "rev")]
215    #[doc = "Setter for the `rev` field of this object."]
216    #[doc = ""]
217    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rev)"]
218    #[doc = ""]
219    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
220    pub fn set_rev(this: &HtmlAnchorElement, value: &str);
221    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "shape")]
222    #[doc = "Getter for the `shape` field of this object."]
223    #[doc = ""]
224    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/shape)"]
225    #[doc = ""]
226    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
227    pub fn shape(this: &HtmlAnchorElement) -> ::alloc::string::String;
228    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "shape")]
229    #[doc = "Setter for the `shape` field of this object."]
230    #[doc = ""]
231    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/shape)"]
232    #[doc = ""]
233    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
234    pub fn set_shape(this: &HtmlAnchorElement, value: &str);
235    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "href")]
236    #[doc = "Getter for the `href` field of this object."]
237    #[doc = ""]
238    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href)"]
239    #[doc = ""]
240    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
241    pub fn href(this: &HtmlAnchorElement) -> ::alloc::string::String;
242    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "href")]
243    #[doc = "Setter for the `href` field of this object."]
244    #[doc = ""]
245    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href)"]
246    #[doc = ""]
247    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
248    pub fn set_href(this: &HtmlAnchorElement, value: &str);
249    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "origin")]
250    #[doc = "Getter for the `origin` field of this object."]
251    #[doc = ""]
252    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/origin)"]
253    #[doc = ""]
254    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
255    pub fn origin(this: &HtmlAnchorElement) -> ::alloc::string::String;
256    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "protocol")]
257    #[doc = "Getter for the `protocol` field of this object."]
258    #[doc = ""]
259    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/protocol)"]
260    #[doc = ""]
261    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
262    pub fn protocol(this: &HtmlAnchorElement) -> ::alloc::string::String;
263    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "protocol")]
264    #[doc = "Setter for the `protocol` field of this object."]
265    #[doc = ""]
266    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/protocol)"]
267    #[doc = ""]
268    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
269    pub fn set_protocol(this: &HtmlAnchorElement, value: &str);
270    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "username")]
271    #[doc = "Getter for the `username` field of this object."]
272    #[doc = ""]
273    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)"]
274    #[doc = ""]
275    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
276    pub fn username(this: &HtmlAnchorElement) -> ::alloc::string::String;
277    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "username")]
278    #[doc = "Setter for the `username` field of this object."]
279    #[doc = ""]
280    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)"]
281    #[doc = ""]
282    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
283    pub fn set_username(this: &HtmlAnchorElement, value: &str);
284    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "password")]
285    #[doc = "Getter for the `password` field of this object."]
286    #[doc = ""]
287    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password)"]
288    #[doc = ""]
289    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
290    pub fn password(this: &HtmlAnchorElement) -> ::alloc::string::String;
291    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "password")]
292    #[doc = "Setter for the `password` field of this object."]
293    #[doc = ""]
294    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password)"]
295    #[doc = ""]
296    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
297    pub fn set_password(this: &HtmlAnchorElement, value: &str);
298    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "host")]
299    #[doc = "Getter for the `host` field of this object."]
300    #[doc = ""]
301    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/host)"]
302    #[doc = ""]
303    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
304    pub fn host(this: &HtmlAnchorElement) -> ::alloc::string::String;
305    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "host")]
306    #[doc = "Setter for the `host` field of this object."]
307    #[doc = ""]
308    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/host)"]
309    #[doc = ""]
310    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
311    pub fn set_host(this: &HtmlAnchorElement, value: &str);
312    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "hostname")]
313    #[doc = "Getter for the `hostname` field of this object."]
314    #[doc = ""]
315    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hostname)"]
316    #[doc = ""]
317    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
318    pub fn hostname(this: &HtmlAnchorElement) -> ::alloc::string::String;
319    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "hostname")]
320    #[doc = "Setter for the `hostname` field of this object."]
321    #[doc = ""]
322    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hostname)"]
323    #[doc = ""]
324    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
325    pub fn set_hostname(this: &HtmlAnchorElement, value: &str);
326    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "port")]
327    #[doc = "Getter for the `port` field of this object."]
328    #[doc = ""]
329    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/port)"]
330    #[doc = ""]
331    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
332    pub fn port(this: &HtmlAnchorElement) -> ::alloc::string::String;
333    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "port")]
334    #[doc = "Setter for the `port` field of this object."]
335    #[doc = ""]
336    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/port)"]
337    #[doc = ""]
338    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
339    pub fn set_port(this: &HtmlAnchorElement, value: &str);
340    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "pathname")]
341    #[doc = "Getter for the `pathname` field of this object."]
342    #[doc = ""]
343    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname)"]
344    #[doc = ""]
345    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
346    pub fn pathname(this: &HtmlAnchorElement) -> ::alloc::string::String;
347    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "pathname")]
348    #[doc = "Setter for the `pathname` field of this object."]
349    #[doc = ""]
350    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname)"]
351    #[doc = ""]
352    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
353    pub fn set_pathname(this: &HtmlAnchorElement, value: &str);
354    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "search")]
355    #[doc = "Getter for the `search` field of this object."]
356    #[doc = ""]
357    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/search)"]
358    #[doc = ""]
359    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
360    pub fn search(this: &HtmlAnchorElement) -> ::alloc::string::String;
361    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "search")]
362    #[doc = "Setter for the `search` field of this object."]
363    #[doc = ""]
364    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/search)"]
365    #[doc = ""]
366    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
367    pub fn set_search(this: &HtmlAnchorElement, value: &str);
368    #[wasm_bindgen(method, getter, js_class = "HTMLAnchorElement", js_name = "hash")]
369    #[doc = "Getter for the `hash` field of this object."]
370    #[doc = ""]
371    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"]
372    #[doc = ""]
373    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
374    pub fn hash(this: &HtmlAnchorElement) -> ::alloc::string::String;
375    #[wasm_bindgen(method, setter, js_class = "HTMLAnchorElement", js_name = "hash")]
376    #[doc = "Setter for the `hash` field of this object."]
377    #[doc = ""]
378    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"]
379    #[doc = ""]
380    #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"]
381    pub fn set_hash(this: &HtmlAnchorElement, value: &str);
382}