html/generated/
rp.rs

1pub mod element {
2    /// The HTML `<rp>` element
3    ///
4    /// [MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp)
5    #[doc(alias = "rp")]
6    #[non_exhaustive]
7    #[derive(PartialEq, Clone, Default)]
8    pub struct RubyFallbackParenthesis {
9        sys: html_sys::text::RubyFallbackParenthesis,
10    }
11    impl RubyFallbackParenthesis {
12        /// Create a new builder
13        pub fn builder() -> super::builder::RubyFallbackParenthesisBuilder {
14            super::builder::RubyFallbackParenthesisBuilder::new(Default::default())
15        }
16    }
17    impl RubyFallbackParenthesis {
18        /// Access the element's `data-*` properties
19        pub fn data_map(&self) -> &html_sys::DataMap {
20            &self.sys.data_map
21        }
22        /// Mutably access the element's `data-*` properties
23        pub fn data_map_mut(&mut self) -> &mut html_sys::DataMap {
24            &mut self.sys.data_map
25        }
26    }
27    impl RubyFallbackParenthesis {
28        /// Get the value of the `role` attribute
29        pub fn role(&self) -> std::option::Option<&str> {
30            self.sys.role.as_deref()
31        }
32        /// Set the value of the `role` attribute
33        pub fn set_role(
34            &mut self,
35            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
36        ) {
37            self.sys.role = value.map(|v| v.into());
38        }
39        /// Get the value of the `aria-activedescendant` attribute
40        pub fn aria_active_descendant_element(&self) -> std::option::Option<&str> {
41            self.sys.aria_active_descendant_element.as_deref()
42        }
43        /// Set the value of the `aria-activedescendant` attribute
44        pub fn set_aria_active_descendant_element(
45            &mut self,
46            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
47        ) {
48            self.sys.aria_active_descendant_element = value.map(|v| v.into());
49        }
50        /// Get the value of the `aria-atomic` attribute
51        pub fn aria_atomic(&self) -> bool {
52            self.sys.aria_atomic
53        }
54        /// Set the value of the `aria-atomic` attribute
55        pub fn set_aria_atomic(&mut self, value: bool) {
56            self.sys.aria_atomic = value;
57        }
58        /// Get the value of the `aria-autocomplete` attribute
59        pub fn aria_auto_complete(&self) -> std::option::Option<&str> {
60            self.sys.aria_auto_complete.as_deref()
61        }
62        /// Set the value of the `aria-autocomplete` attribute
63        pub fn set_aria_auto_complete(
64            &mut self,
65            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
66        ) {
67            self.sys.aria_auto_complete = value.map(|v| v.into());
68        }
69        /// Get the value of the `aria-brailleroledescription` attribute
70        pub fn aria_braille_role_description(&self) -> std::option::Option<&str> {
71            self.sys.aria_braille_role_description.as_deref()
72        }
73        /// Set the value of the `aria-brailleroledescription` attribute
74        pub fn set_aria_braille_role_description(
75            &mut self,
76            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
77        ) {
78            self.sys.aria_braille_role_description = value.map(|v| v.into());
79        }
80        /// Get the value of the `aria-busy` attribute
81        pub fn aria_busy(&self) -> bool {
82            self.sys.aria_busy
83        }
84        /// Set the value of the `aria-busy` attribute
85        pub fn set_aria_busy(&mut self, value: bool) {
86            self.sys.aria_busy = value;
87        }
88        /// Get the value of the `aria-checked` attribute
89        pub fn aria_checked(&self) -> std::option::Option<&str> {
90            self.sys.aria_checked.as_deref()
91        }
92        /// Set the value of the `aria-checked` attribute
93        pub fn set_aria_checked(
94            &mut self,
95            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
96        ) {
97            self.sys.aria_checked = value.map(|v| v.into());
98        }
99        /// Get the value of the `aria-colcount` attribute
100        pub fn aria_col_count(&self) -> std::option::Option<i64> {
101            self.sys.aria_col_count
102        }
103        /// Set the value of the `aria-colcount` attribute
104        pub fn set_aria_col_count(&mut self, value: std::option::Option<i64>) {
105            self.sys.aria_col_count = value;
106        }
107        /// Get the value of the `aria-colindex` attribute
108        pub fn aria_col_index(&self) -> std::option::Option<i64> {
109            self.sys.aria_col_index
110        }
111        /// Set the value of the `aria-colindex` attribute
112        pub fn set_aria_col_index(&mut self, value: std::option::Option<i64>) {
113            self.sys.aria_col_index = value;
114        }
115        /// Get the value of the `aria-colindextext` attribute
116        pub fn aria_col_index_text(&self) -> std::option::Option<&str> {
117            self.sys.aria_col_index_text.as_deref()
118        }
119        /// Set the value of the `aria-colindextext` attribute
120        pub fn set_aria_col_index_text(
121            &mut self,
122            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
123        ) {
124            self.sys.aria_col_index_text = value.map(|v| v.into());
125        }
126        /// Get the value of the `aria-colspan` attribute
127        pub fn aria_col_span(&self) -> std::option::Option<i64> {
128            self.sys.aria_col_span
129        }
130        /// Set the value of the `aria-colspan` attribute
131        pub fn set_aria_col_span(&mut self, value: std::option::Option<i64>) {
132            self.sys.aria_col_span = value;
133        }
134        /// Get the value of the `aria-controls` attribute
135        pub fn aria_controls_elements(&self) -> std::option::Option<&str> {
136            self.sys.aria_controls_elements.as_deref()
137        }
138        /// Set the value of the `aria-controls` attribute
139        pub fn set_aria_controls_elements(
140            &mut self,
141            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
142        ) {
143            self.sys.aria_controls_elements = value.map(|v| v.into());
144        }
145        /// Get the value of the `aria-current` attribute
146        pub fn aria_current(&self) -> std::option::Option<&str> {
147            self.sys.aria_current.as_deref()
148        }
149        /// Set the value of the `aria-current` attribute
150        pub fn set_aria_current(
151            &mut self,
152            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
153        ) {
154            self.sys.aria_current = value.map(|v| v.into());
155        }
156        /// Get the value of the `aria-describedby` attribute
157        pub fn aria_described_by_elements(&self) -> std::option::Option<&str> {
158            self.sys.aria_described_by_elements.as_deref()
159        }
160        /// Set the value of the `aria-describedby` attribute
161        pub fn set_aria_described_by_elements(
162            &mut self,
163            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
164        ) {
165            self.sys.aria_described_by_elements = value.map(|v| v.into());
166        }
167        /// Get the value of the `aria-description` attribute
168        pub fn aria_description(&self) -> std::option::Option<&str> {
169            self.sys.aria_description.as_deref()
170        }
171        /// Set the value of the `aria-description` attribute
172        pub fn set_aria_description(
173            &mut self,
174            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
175        ) {
176            self.sys.aria_description = value.map(|v| v.into());
177        }
178        /// Get the value of the `aria-details` attribute
179        pub fn aria_details_elements(&self) -> std::option::Option<&str> {
180            self.sys.aria_details_elements.as_deref()
181        }
182        /// Set the value of the `aria-details` attribute
183        pub fn set_aria_details_elements(
184            &mut self,
185            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
186        ) {
187            self.sys.aria_details_elements = value.map(|v| v.into());
188        }
189        /// Get the value of the `aria-disabled` attribute
190        pub fn aria_disabled(&self) -> bool {
191            self.sys.aria_disabled
192        }
193        /// Set the value of the `aria-disabled` attribute
194        pub fn set_aria_disabled(&mut self, value: bool) {
195            self.sys.aria_disabled = value;
196        }
197        /// Get the value of the `aria-dropeffect` attribute
198        pub fn aria_drop_effect(&self) -> std::option::Option<&str> {
199            self.sys.aria_drop_effect.as_deref()
200        }
201        /// Set the value of the `aria-dropeffect` attribute
202        pub fn set_aria_drop_effect(
203            &mut self,
204            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
205        ) {
206            self.sys.aria_drop_effect = value.map(|v| v.into());
207        }
208        /// Get the value of the `aria-errormessage` attribute
209        pub fn aria_error_message_elements(&self) -> std::option::Option<&str> {
210            self.sys.aria_error_message_elements.as_deref()
211        }
212        /// Set the value of the `aria-errormessage` attribute
213        pub fn set_aria_error_message_elements(
214            &mut self,
215            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
216        ) {
217            self.sys.aria_error_message_elements = value.map(|v| v.into());
218        }
219        /// Get the value of the `aria-expanded` attribute
220        pub fn aria_expanded(&self) -> bool {
221            self.sys.aria_expanded
222        }
223        /// Set the value of the `aria-expanded` attribute
224        pub fn set_aria_expanded(&mut self, value: bool) {
225            self.sys.aria_expanded = value;
226        }
227        /// Get the value of the `aria-flowto` attribute
228        pub fn aria_flow_to_elements(&self) -> std::option::Option<&str> {
229            self.sys.aria_flow_to_elements.as_deref()
230        }
231        /// Set the value of the `aria-flowto` attribute
232        pub fn set_aria_flow_to_elements(
233            &mut self,
234            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
235        ) {
236            self.sys.aria_flow_to_elements = value.map(|v| v.into());
237        }
238        /// Get the value of the `aria-grabbed` attribute
239        pub fn aria_grabbed(&self) -> bool {
240            self.sys.aria_grabbed
241        }
242        /// Set the value of the `aria-grabbed` attribute
243        pub fn set_aria_grabbed(&mut self, value: bool) {
244            self.sys.aria_grabbed = value;
245        }
246        /// Get the value of the `aria-haspopup` attribute
247        pub fn aria_has_popup(&self) -> std::option::Option<&str> {
248            self.sys.aria_has_popup.as_deref()
249        }
250        /// Set the value of the `aria-haspopup` attribute
251        pub fn set_aria_has_popup(
252            &mut self,
253            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
254        ) {
255            self.sys.aria_has_popup = value.map(|v| v.into());
256        }
257        /// Get the value of the `aria-hidden` attribute
258        pub fn aria_hidden(&self) -> bool {
259            self.sys.aria_hidden
260        }
261        /// Set the value of the `aria-hidden` attribute
262        pub fn set_aria_hidden(&mut self, value: bool) {
263            self.sys.aria_hidden = value;
264        }
265        /// Get the value of the `aria-invalid` attribute
266        pub fn aria_invalid(&self) -> std::option::Option<&str> {
267            self.sys.aria_invalid.as_deref()
268        }
269        /// Set the value of the `aria-invalid` attribute
270        pub fn set_aria_invalid(
271            &mut self,
272            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
273        ) {
274            self.sys.aria_invalid = value.map(|v| v.into());
275        }
276        /// Get the value of the `aria-keyshortcuts` attribute
277        pub fn aria_key_shortcuts(&self) -> std::option::Option<&str> {
278            self.sys.aria_key_shortcuts.as_deref()
279        }
280        /// Set the value of the `aria-keyshortcuts` attribute
281        pub fn set_aria_key_shortcuts(
282            &mut self,
283            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
284        ) {
285            self.sys.aria_key_shortcuts = value.map(|v| v.into());
286        }
287        /// Get the value of the `aria-level` attribute
288        pub fn aria_level(&self) -> std::option::Option<i64> {
289            self.sys.aria_level
290        }
291        /// Set the value of the `aria-level` attribute
292        pub fn set_aria_level(&mut self, value: std::option::Option<i64>) {
293            self.sys.aria_level = value;
294        }
295        /// Get the value of the `aria-live` attribute
296        pub fn aria_live(&self) -> std::option::Option<&str> {
297            self.sys.aria_live.as_deref()
298        }
299        /// Set the value of the `aria-live` attribute
300        pub fn set_aria_live(
301            &mut self,
302            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
303        ) {
304            self.sys.aria_live = value.map(|v| v.into());
305        }
306        /// Get the value of the `aria-modal` attribute
307        pub fn aria_modal(&self) -> bool {
308            self.sys.aria_modal
309        }
310        /// Set the value of the `aria-modal` attribute
311        pub fn set_aria_modal(&mut self, value: bool) {
312            self.sys.aria_modal = value;
313        }
314        /// Get the value of the `aria-multiline` attribute
315        pub fn aria_multi_line(&self) -> bool {
316            self.sys.aria_multi_line
317        }
318        /// Set the value of the `aria-multiline` attribute
319        pub fn set_aria_multi_line(&mut self, value: bool) {
320            self.sys.aria_multi_line = value;
321        }
322        /// Get the value of the `aria-multiselectable` attribute
323        pub fn aria_multi_selectable(&self) -> bool {
324            self.sys.aria_multi_selectable
325        }
326        /// Set the value of the `aria-multiselectable` attribute
327        pub fn set_aria_multi_selectable(&mut self, value: bool) {
328            self.sys.aria_multi_selectable = value;
329        }
330        /// Get the value of the `aria-orientation` attribute
331        pub fn aria_orientation(&self) -> std::option::Option<&str> {
332            self.sys.aria_orientation.as_deref()
333        }
334        /// Set the value of the `aria-orientation` attribute
335        pub fn set_aria_orientation(
336            &mut self,
337            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
338        ) {
339            self.sys.aria_orientation = value.map(|v| v.into());
340        }
341        /// Get the value of the `aria-owns` attribute
342        pub fn aria_owns_elements(&self) -> std::option::Option<&str> {
343            self.sys.aria_owns_elements.as_deref()
344        }
345        /// Set the value of the `aria-owns` attribute
346        pub fn set_aria_owns_elements(
347            &mut self,
348            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
349        ) {
350            self.sys.aria_owns_elements = value.map(|v| v.into());
351        }
352        /// Get the value of the `aria-placeholder` attribute
353        pub fn aria_placeholder(&self) -> std::option::Option<&str> {
354            self.sys.aria_placeholder.as_deref()
355        }
356        /// Set the value of the `aria-placeholder` attribute
357        pub fn set_aria_placeholder(
358            &mut self,
359            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
360        ) {
361            self.sys.aria_placeholder = value.map(|v| v.into());
362        }
363        /// Get the value of the `aria-posinset` attribute
364        pub fn aria_pos_in_set(&self) -> std::option::Option<i64> {
365            self.sys.aria_pos_in_set
366        }
367        /// Set the value of the `aria-posinset` attribute
368        pub fn set_aria_pos_in_set(&mut self, value: std::option::Option<i64>) {
369            self.sys.aria_pos_in_set = value;
370        }
371        /// Get the value of the `aria-pressed` attribute
372        pub fn aria_pressed(&self) -> std::option::Option<&str> {
373            self.sys.aria_pressed.as_deref()
374        }
375        /// Set the value of the `aria-pressed` attribute
376        pub fn set_aria_pressed(
377            &mut self,
378            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
379        ) {
380            self.sys.aria_pressed = value.map(|v| v.into());
381        }
382        /// Get the value of the `aria-readonly` attribute
383        pub fn aria_read_only(&self) -> bool {
384            self.sys.aria_read_only
385        }
386        /// Set the value of the `aria-readonly` attribute
387        pub fn set_aria_read_only(&mut self, value: bool) {
388            self.sys.aria_read_only = value;
389        }
390        /// Get the value of the `aria-relevant` attribute
391        pub fn aria_relevant(&self) -> std::option::Option<&str> {
392            self.sys.aria_relevant.as_deref()
393        }
394        /// Set the value of the `aria-relevant` attribute
395        pub fn set_aria_relevant(
396            &mut self,
397            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
398        ) {
399            self.sys.aria_relevant = value.map(|v| v.into());
400        }
401        /// Get the value of the `aria-required` attribute
402        pub fn aria_required(&self) -> bool {
403            self.sys.aria_required
404        }
405        /// Set the value of the `aria-required` attribute
406        pub fn set_aria_required(&mut self, value: bool) {
407            self.sys.aria_required = value;
408        }
409        /// Get the value of the `aria-roledescription` attribute
410        pub fn aria_role_description(&self) -> std::option::Option<&str> {
411            self.sys.aria_role_description.as_deref()
412        }
413        /// Set the value of the `aria-roledescription` attribute
414        pub fn set_aria_role_description(
415            &mut self,
416            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
417        ) {
418            self.sys.aria_role_description = value.map(|v| v.into());
419        }
420        /// Get the value of the `aria-rowcount` attribute
421        pub fn aria_row_count(&self) -> std::option::Option<i64> {
422            self.sys.aria_row_count
423        }
424        /// Set the value of the `aria-rowcount` attribute
425        pub fn set_aria_row_count(&mut self, value: std::option::Option<i64>) {
426            self.sys.aria_row_count = value;
427        }
428        /// Get the value of the `aria-rowindex` attribute
429        pub fn aria_row_index(&self) -> std::option::Option<i64> {
430            self.sys.aria_row_index
431        }
432        /// Set the value of the `aria-rowindex` attribute
433        pub fn set_aria_row_index(&mut self, value: std::option::Option<i64>) {
434            self.sys.aria_row_index = value;
435        }
436        /// Get the value of the `aria-rowindextext` attribute
437        pub fn aria_row_index_text(&self) -> std::option::Option<&str> {
438            self.sys.aria_row_index_text.as_deref()
439        }
440        /// Set the value of the `aria-rowindextext` attribute
441        pub fn set_aria_row_index_text(
442            &mut self,
443            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
444        ) {
445            self.sys.aria_row_index_text = value.map(|v| v.into());
446        }
447        /// Get the value of the `aria-rowspan` attribute
448        pub fn aria_row_span(&self) -> std::option::Option<i64> {
449            self.sys.aria_row_span
450        }
451        /// Set the value of the `aria-rowspan` attribute
452        pub fn set_aria_row_span(&mut self, value: std::option::Option<i64>) {
453            self.sys.aria_row_span = value;
454        }
455        /// Get the value of the `aria-selected` attribute
456        pub fn aria_selected(&self) -> bool {
457            self.sys.aria_selected
458        }
459        /// Set the value of the `aria-selected` attribute
460        pub fn set_aria_selected(&mut self, value: bool) {
461            self.sys.aria_selected = value;
462        }
463        /// Get the value of the `aria-setsize` attribute
464        pub fn aria_set_size(&self) -> std::option::Option<i64> {
465            self.sys.aria_set_size
466        }
467        /// Set the value of the `aria-setsize` attribute
468        pub fn set_aria_set_size(&mut self, value: std::option::Option<i64>) {
469            self.sys.aria_set_size = value;
470        }
471        /// Get the value of the `aria-sort` attribute
472        pub fn aria_sort(&self) -> std::option::Option<&str> {
473            self.sys.aria_sort.as_deref()
474        }
475        /// Set the value of the `aria-sort` attribute
476        pub fn set_aria_sort(
477            &mut self,
478            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
479        ) {
480            self.sys.aria_sort = value.map(|v| v.into());
481        }
482        /// Get the value of the `aria-valuemax` attribute
483        pub fn aria_value_max(&self) -> std::option::Option<f64> {
484            self.sys.aria_value_max
485        }
486        /// Set the value of the `aria-valuemax` attribute
487        pub fn set_aria_value_max(&mut self, value: std::option::Option<f64>) {
488            self.sys.aria_value_max = value;
489        }
490        /// Get the value of the `aria-valuemin` attribute
491        pub fn aria_value_min(&self) -> std::option::Option<f64> {
492            self.sys.aria_value_min
493        }
494        /// Set the value of the `aria-valuemin` attribute
495        pub fn set_aria_value_min(&mut self, value: std::option::Option<f64>) {
496            self.sys.aria_value_min = value;
497        }
498        /// Get the value of the `aria-valuenow` attribute
499        pub fn aria_value_now(&self) -> std::option::Option<f64> {
500            self.sys.aria_value_now
501        }
502        /// Set the value of the `aria-valuenow` attribute
503        pub fn set_aria_value_now(&mut self, value: std::option::Option<f64>) {
504            self.sys.aria_value_now = value;
505        }
506        /// Get the value of the `aria-valuetext` attribute
507        pub fn aria_value_text(&self) -> std::option::Option<&str> {
508            self.sys.aria_value_text.as_deref()
509        }
510        /// Set the value of the `aria-valuetext` attribute
511        pub fn set_aria_value_text(
512            &mut self,
513            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
514        ) {
515            self.sys.aria_value_text = value.map(|v| v.into());
516        }
517        /// Get the value of the `accesskey` attribute
518        pub fn access_key(&self) -> std::option::Option<&str> {
519            self.sys.access_key.as_deref()
520        }
521        /// Set the value of the `accesskey` attribute
522        pub fn set_access_key(
523            &mut self,
524            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
525        ) {
526            self.sys.access_key = value.map(|v| v.into());
527        }
528        /// Get the value of the `autocapitalize` attribute
529        pub fn auto_capitalize(&self) -> std::option::Option<&str> {
530            self.sys.auto_capitalize.as_deref()
531        }
532        /// Set the value of the `autocapitalize` attribute
533        pub fn set_auto_capitalize(
534            &mut self,
535            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
536        ) {
537            self.sys.auto_capitalize = value.map(|v| v.into());
538        }
539        /// Get the value of the `autofocus` attribute
540        pub fn autofocus(&self) -> bool {
541            self.sys.autofocus
542        }
543        /// Set the value of the `autofocus` attribute
544        pub fn set_autofocus(&mut self, value: bool) {
545            self.sys.autofocus = value;
546        }
547        /// Get the value of the `class` attribute
548        pub fn class(&self) -> std::option::Option<&str> {
549            self.sys.class.as_deref()
550        }
551        /// Set the value of the `class` attribute
552        pub fn set_class(
553            &mut self,
554            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
555        ) {
556            self.sys.class = value.map(|v| v.into());
557        }
558        /// Get the value of the `contenteditable` attribute
559        pub fn content_editable(&self) -> std::option::Option<&str> {
560            self.sys.content_editable.as_deref()
561        }
562        /// Set the value of the `contenteditable` attribute
563        pub fn set_content_editable(
564            &mut self,
565            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
566        ) {
567            self.sys.content_editable = value.map(|v| v.into());
568        }
569        /// Get the value of the `dir` attribute
570        pub fn direction(&self) -> std::option::Option<&str> {
571            self.sys.direction.as_deref()
572        }
573        /// Set the value of the `dir` attribute
574        pub fn set_direction(
575            &mut self,
576            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
577        ) {
578            self.sys.direction = value.map(|v| v.into());
579        }
580        /// Get the value of the `draggable` attribute
581        pub fn draggable(&self) -> bool {
582            self.sys.draggable
583        }
584        /// Set the value of the `draggable` attribute
585        pub fn set_draggable(&mut self, value: bool) {
586            self.sys.draggable = value;
587        }
588        /// Get the value of the `enterkeyhint` attribute
589        pub fn enter_key_hint(&self) -> std::option::Option<&str> {
590            self.sys.enter_key_hint.as_deref()
591        }
592        /// Set the value of the `enterkeyhint` attribute
593        pub fn set_enter_key_hint(
594            &mut self,
595            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
596        ) {
597            self.sys.enter_key_hint = value.map(|v| v.into());
598        }
599        /// Get the value of the `exportparts` attribute
600        pub fn export_parts(&self) -> std::option::Option<&str> {
601            self.sys.export_parts.as_deref()
602        }
603        /// Set the value of the `exportparts` attribute
604        pub fn set_export_parts(
605            &mut self,
606            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
607        ) {
608            self.sys.export_parts = value.map(|v| v.into());
609        }
610        /// Get the value of the `hidden` attribute
611        pub fn hidden(&self) -> std::option::Option<&str> {
612            self.sys.hidden.as_deref()
613        }
614        /// Set the value of the `hidden` attribute
615        pub fn set_hidden(
616            &mut self,
617            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
618        ) {
619            self.sys.hidden = value.map(|v| v.into());
620        }
621        /// Get the value of the `id` attribute
622        pub fn id(&self) -> std::option::Option<&str> {
623            self.sys.id.as_deref()
624        }
625        /// Set the value of the `id` attribute
626        pub fn set_id(
627            &mut self,
628            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
629        ) {
630            self.sys.id = value.map(|v| v.into());
631        }
632        /// Get the value of the `inert` attribute
633        pub fn inert(&self) -> bool {
634            self.sys.inert
635        }
636        /// Set the value of the `inert` attribute
637        pub fn set_inert(&mut self, value: bool) {
638            self.sys.inert = value;
639        }
640        /// Get the value of the `inputmode` attribute
641        pub fn input_mode(&self) -> std::option::Option<&str> {
642            self.sys.input_mode.as_deref()
643        }
644        /// Set the value of the `inputmode` attribute
645        pub fn set_input_mode(
646            &mut self,
647            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
648        ) {
649            self.sys.input_mode = value.map(|v| v.into());
650        }
651        /// Get the value of the `is` attribute
652        pub fn is_(&self) -> std::option::Option<&str> {
653            self.sys.is_.as_deref()
654        }
655        /// Set the value of the `is` attribute
656        pub fn set_is_(
657            &mut self,
658            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
659        ) {
660            self.sys.is_ = value.map(|v| v.into());
661        }
662        /// Get the value of the `itemid` attribute
663        pub fn item_id(&self) -> std::option::Option<&str> {
664            self.sys.item_id.as_deref()
665        }
666        /// Set the value of the `itemid` attribute
667        pub fn set_item_id(
668            &mut self,
669            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
670        ) {
671            self.sys.item_id = value.map(|v| v.into());
672        }
673        /// Get the value of the `itemprop` attribute
674        pub fn item_prop(&self) -> std::option::Option<&str> {
675            self.sys.item_prop.as_deref()
676        }
677        /// Set the value of the `itemprop` attribute
678        pub fn set_item_prop(
679            &mut self,
680            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
681        ) {
682            self.sys.item_prop = value.map(|v| v.into());
683        }
684        /// Get the value of the `itemref` attribute
685        pub fn item_ref(&self) -> std::option::Option<&str> {
686            self.sys.item_ref.as_deref()
687        }
688        /// Set the value of the `itemref` attribute
689        pub fn set_item_ref(
690            &mut self,
691            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
692        ) {
693            self.sys.item_ref = value.map(|v| v.into());
694        }
695        /// Get the value of the `itemscope` attribute
696        pub fn item_scope(&self) -> std::option::Option<&str> {
697            self.sys.item_scope.as_deref()
698        }
699        /// Set the value of the `itemscope` attribute
700        pub fn set_item_scope(
701            &mut self,
702            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
703        ) {
704            self.sys.item_scope = value.map(|v| v.into());
705        }
706        /// Get the value of the `itemtype` attribute
707        pub fn item_type(&self) -> std::option::Option<&str> {
708            self.sys.item_type.as_deref()
709        }
710        /// Set the value of the `itemtype` attribute
711        pub fn set_item_type(
712            &mut self,
713            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
714        ) {
715            self.sys.item_type = value.map(|v| v.into());
716        }
717        /// Get the value of the `lang` attribute
718        pub fn lang(&self) -> std::option::Option<&str> {
719            self.sys.lang.as_deref()
720        }
721        /// Set the value of the `lang` attribute
722        pub fn set_lang(
723            &mut self,
724            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
725        ) {
726            self.sys.lang = value.map(|v| v.into());
727        }
728        /// Get the value of the `nonce` attribute
729        pub fn nonce(&self) -> std::option::Option<&str> {
730            self.sys.nonce.as_deref()
731        }
732        /// Set the value of the `nonce` attribute
733        pub fn set_nonce(
734            &mut self,
735            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
736        ) {
737            self.sys.nonce = value.map(|v| v.into());
738        }
739        /// Get the value of the `part` attribute
740        pub fn part(&self) -> std::option::Option<&str> {
741            self.sys.part.as_deref()
742        }
743        /// Set the value of the `part` attribute
744        pub fn set_part(
745            &mut self,
746            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
747        ) {
748            self.sys.part = value.map(|v| v.into());
749        }
750        /// Get the value of the `slot` attribute
751        pub fn slot(&self) -> std::option::Option<&str> {
752            self.sys.slot.as_deref()
753        }
754        /// Set the value of the `slot` attribute
755        pub fn set_slot(
756            &mut self,
757            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
758        ) {
759            self.sys.slot = value.map(|v| v.into());
760        }
761        /// Get the value of the `spellcheck` attribute
762        pub fn spellcheck(&self) -> std::option::Option<&str> {
763            self.sys.spellcheck.as_deref()
764        }
765        /// Set the value of the `spellcheck` attribute
766        pub fn set_spellcheck(
767            &mut self,
768            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
769        ) {
770            self.sys.spellcheck = value.map(|v| v.into());
771        }
772        /// Get the value of the `style` attribute
773        pub fn style(&self) -> std::option::Option<&str> {
774            self.sys.style.as_deref()
775        }
776        /// Set the value of the `style` attribute
777        pub fn set_style(
778            &mut self,
779            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
780        ) {
781            self.sys.style = value.map(|v| v.into());
782        }
783        /// Get the value of the `tabindex` attribute
784        pub fn tab_index(&self) -> std::option::Option<i64> {
785            self.sys.tab_index
786        }
787        /// Set the value of the `tabindex` attribute
788        pub fn set_tab_index(&mut self, value: std::option::Option<i64>) {
789            self.sys.tab_index = value;
790        }
791        /// Get the value of the `title` attribute
792        pub fn title(&self) -> std::option::Option<&str> {
793            self.sys.title.as_deref()
794        }
795        /// Set the value of the `title` attribute
796        pub fn set_title(
797            &mut self,
798            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
799        ) {
800            self.sys.title = value.map(|v| v.into());
801        }
802        /// Get the value of the `translate` attribute
803        pub fn translate(&self) -> bool {
804            self.sys.translate
805        }
806        /// Set the value of the `translate` attribute
807        pub fn set_translate(&mut self, value: bool) {
808            self.sys.translate = value;
809        }
810    }
811    impl crate::Render for RubyFallbackParenthesis {
812        fn render(
813            &self,
814            f: &mut std::fmt::Formatter<'_>,
815            depth: usize,
816        ) -> std::fmt::Result {
817            write!(f, "{:level$}", "", level = depth * 4)?;
818            html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
819            write!(f, "{:level$}", "", level = depth * 4)?;
820            html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
821            Ok(())
822        }
823    }
824    impl std::fmt::Debug for RubyFallbackParenthesis {
825        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
826            crate::Render::render(self, f, 0)?;
827            Ok(())
828        }
829    }
830    impl std::fmt::Display for RubyFallbackParenthesis {
831        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
832            html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
833            html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
834            Ok(())
835        }
836    }
837    impl crate::HtmlElement for RubyFallbackParenthesis {}
838    impl std::convert::Into<html_sys::text::RubyFallbackParenthesis>
839    for RubyFallbackParenthesis {
840        fn into(self) -> html_sys::text::RubyFallbackParenthesis {
841            self.sys
842        }
843    }
844    impl From<html_sys::text::RubyFallbackParenthesis> for RubyFallbackParenthesis {
845        fn from(sys: html_sys::text::RubyFallbackParenthesis) -> Self {
846            Self { sys }
847        }
848    }
849}
850pub mod child {}
851pub mod builder {
852    /// A builder struct for RubyFallbackParenthesis
853    pub struct RubyFallbackParenthesisBuilder {
854        element: super::element::RubyFallbackParenthesis,
855    }
856    impl RubyFallbackParenthesisBuilder {
857        pub(crate) fn new(element: super::element::RubyFallbackParenthesis) -> Self {
858            Self { element }
859        }
860        /// Finish building the element
861        pub fn build(&mut self) -> super::element::RubyFallbackParenthesis {
862            self.element.clone()
863        }
864        /// Insert a `data-*` property
865        pub fn data(
866            &mut self,
867            data_key: impl Into<std::borrow::Cow<'static, str>>,
868            value: impl Into<std::borrow::Cow<'static, str>>,
869        ) -> &mut RubyFallbackParenthesisBuilder {
870            self.element.data_map_mut().insert(data_key.into(), value.into());
871            self
872        }
873        /// Set the value of the `role` attribute
874        pub fn role(
875            &mut self,
876            value: impl Into<std::borrow::Cow<'static, str>>,
877        ) -> &mut Self {
878            self.element.set_role(Some(value.into()));
879            self
880        }
881        /// Set the value of the `aria-activedescendant` attribute
882        pub fn aria_active_descendant_element(
883            &mut self,
884            value: impl Into<std::borrow::Cow<'static, str>>,
885        ) -> &mut Self {
886            self.element.set_aria_active_descendant_element(Some(value.into()));
887            self
888        }
889        /// Set the value of the `aria-atomic` attribute
890        pub fn aria_atomic(&mut self, value: bool) -> &mut Self {
891            self.element.set_aria_atomic(value);
892            self
893        }
894        /// Set the value of the `aria-autocomplete` attribute
895        pub fn aria_auto_complete(
896            &mut self,
897            value: impl Into<std::borrow::Cow<'static, str>>,
898        ) -> &mut Self {
899            self.element.set_aria_auto_complete(Some(value.into()));
900            self
901        }
902        /// Set the value of the `aria-brailleroledescription` attribute
903        pub fn aria_braille_role_description(
904            &mut self,
905            value: impl Into<std::borrow::Cow<'static, str>>,
906        ) -> &mut Self {
907            self.element.set_aria_braille_role_description(Some(value.into()));
908            self
909        }
910        /// Set the value of the `aria-busy` attribute
911        pub fn aria_busy(&mut self, value: bool) -> &mut Self {
912            self.element.set_aria_busy(value);
913            self
914        }
915        /// Set the value of the `aria-checked` attribute
916        pub fn aria_checked(
917            &mut self,
918            value: impl Into<std::borrow::Cow<'static, str>>,
919        ) -> &mut Self {
920            self.element.set_aria_checked(Some(value.into()));
921            self
922        }
923        /// Set the value of the `aria-colcount` attribute
924        pub fn aria_col_count(&mut self, value: i64) -> &mut Self {
925            self.element.set_aria_col_count(Some(value));
926            self
927        }
928        /// Set the value of the `aria-colindex` attribute
929        pub fn aria_col_index(&mut self, value: i64) -> &mut Self {
930            self.element.set_aria_col_index(Some(value));
931            self
932        }
933        /// Set the value of the `aria-colindextext` attribute
934        pub fn aria_col_index_text(
935            &mut self,
936            value: impl Into<std::borrow::Cow<'static, str>>,
937        ) -> &mut Self {
938            self.element.set_aria_col_index_text(Some(value.into()));
939            self
940        }
941        /// Set the value of the `aria-colspan` attribute
942        pub fn aria_col_span(&mut self, value: i64) -> &mut Self {
943            self.element.set_aria_col_span(Some(value));
944            self
945        }
946        /// Set the value of the `aria-controls` attribute
947        pub fn aria_controls_elements(
948            &mut self,
949            value: impl Into<std::borrow::Cow<'static, str>>,
950        ) -> &mut Self {
951            self.element.set_aria_controls_elements(Some(value.into()));
952            self
953        }
954        /// Set the value of the `aria-current` attribute
955        pub fn aria_current(
956            &mut self,
957            value: impl Into<std::borrow::Cow<'static, str>>,
958        ) -> &mut Self {
959            self.element.set_aria_current(Some(value.into()));
960            self
961        }
962        /// Set the value of the `aria-describedby` attribute
963        pub fn aria_described_by_elements(
964            &mut self,
965            value: impl Into<std::borrow::Cow<'static, str>>,
966        ) -> &mut Self {
967            self.element.set_aria_described_by_elements(Some(value.into()));
968            self
969        }
970        /// Set the value of the `aria-description` attribute
971        pub fn aria_description(
972            &mut self,
973            value: impl Into<std::borrow::Cow<'static, str>>,
974        ) -> &mut Self {
975            self.element.set_aria_description(Some(value.into()));
976            self
977        }
978        /// Set the value of the `aria-details` attribute
979        pub fn aria_details_elements(
980            &mut self,
981            value: impl Into<std::borrow::Cow<'static, str>>,
982        ) -> &mut Self {
983            self.element.set_aria_details_elements(Some(value.into()));
984            self
985        }
986        /// Set the value of the `aria-disabled` attribute
987        pub fn aria_disabled(&mut self, value: bool) -> &mut Self {
988            self.element.set_aria_disabled(value);
989            self
990        }
991        /// Set the value of the `aria-dropeffect` attribute
992        pub fn aria_drop_effect(
993            &mut self,
994            value: impl Into<std::borrow::Cow<'static, str>>,
995        ) -> &mut Self {
996            self.element.set_aria_drop_effect(Some(value.into()));
997            self
998        }
999        /// Set the value of the `aria-errormessage` attribute
1000        pub fn aria_error_message_elements(
1001            &mut self,
1002            value: impl Into<std::borrow::Cow<'static, str>>,
1003        ) -> &mut Self {
1004            self.element.set_aria_error_message_elements(Some(value.into()));
1005            self
1006        }
1007        /// Set the value of the `aria-expanded` attribute
1008        pub fn aria_expanded(&mut self, value: bool) -> &mut Self {
1009            self.element.set_aria_expanded(value);
1010            self
1011        }
1012        /// Set the value of the `aria-flowto` attribute
1013        pub fn aria_flow_to_elements(
1014            &mut self,
1015            value: impl Into<std::borrow::Cow<'static, str>>,
1016        ) -> &mut Self {
1017            self.element.set_aria_flow_to_elements(Some(value.into()));
1018            self
1019        }
1020        /// Set the value of the `aria-grabbed` attribute
1021        pub fn aria_grabbed(&mut self, value: bool) -> &mut Self {
1022            self.element.set_aria_grabbed(value);
1023            self
1024        }
1025        /// Set the value of the `aria-haspopup` attribute
1026        pub fn aria_has_popup(
1027            &mut self,
1028            value: impl Into<std::borrow::Cow<'static, str>>,
1029        ) -> &mut Self {
1030            self.element.set_aria_has_popup(Some(value.into()));
1031            self
1032        }
1033        /// Set the value of the `aria-hidden` attribute
1034        pub fn aria_hidden(&mut self, value: bool) -> &mut Self {
1035            self.element.set_aria_hidden(value);
1036            self
1037        }
1038        /// Set the value of the `aria-invalid` attribute
1039        pub fn aria_invalid(
1040            &mut self,
1041            value: impl Into<std::borrow::Cow<'static, str>>,
1042        ) -> &mut Self {
1043            self.element.set_aria_invalid(Some(value.into()));
1044            self
1045        }
1046        /// Set the value of the `aria-keyshortcuts` attribute
1047        pub fn aria_key_shortcuts(
1048            &mut self,
1049            value: impl Into<std::borrow::Cow<'static, str>>,
1050        ) -> &mut Self {
1051            self.element.set_aria_key_shortcuts(Some(value.into()));
1052            self
1053        }
1054        /// Set the value of the `aria-level` attribute
1055        pub fn aria_level(&mut self, value: i64) -> &mut Self {
1056            self.element.set_aria_level(Some(value));
1057            self
1058        }
1059        /// Set the value of the `aria-live` attribute
1060        pub fn aria_live(
1061            &mut self,
1062            value: impl Into<std::borrow::Cow<'static, str>>,
1063        ) -> &mut Self {
1064            self.element.set_aria_live(Some(value.into()));
1065            self
1066        }
1067        /// Set the value of the `aria-modal` attribute
1068        pub fn aria_modal(&mut self, value: bool) -> &mut Self {
1069            self.element.set_aria_modal(value);
1070            self
1071        }
1072        /// Set the value of the `aria-multiline` attribute
1073        pub fn aria_multi_line(&mut self, value: bool) -> &mut Self {
1074            self.element.set_aria_multi_line(value);
1075            self
1076        }
1077        /// Set the value of the `aria-multiselectable` attribute
1078        pub fn aria_multi_selectable(&mut self, value: bool) -> &mut Self {
1079            self.element.set_aria_multi_selectable(value);
1080            self
1081        }
1082        /// Set the value of the `aria-orientation` attribute
1083        pub fn aria_orientation(
1084            &mut self,
1085            value: impl Into<std::borrow::Cow<'static, str>>,
1086        ) -> &mut Self {
1087            self.element.set_aria_orientation(Some(value.into()));
1088            self
1089        }
1090        /// Set the value of the `aria-owns` attribute
1091        pub fn aria_owns_elements(
1092            &mut self,
1093            value: impl Into<std::borrow::Cow<'static, str>>,
1094        ) -> &mut Self {
1095            self.element.set_aria_owns_elements(Some(value.into()));
1096            self
1097        }
1098        /// Set the value of the `aria-placeholder` attribute
1099        pub fn aria_placeholder(
1100            &mut self,
1101            value: impl Into<std::borrow::Cow<'static, str>>,
1102        ) -> &mut Self {
1103            self.element.set_aria_placeholder(Some(value.into()));
1104            self
1105        }
1106        /// Set the value of the `aria-posinset` attribute
1107        pub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self {
1108            self.element.set_aria_pos_in_set(Some(value));
1109            self
1110        }
1111        /// Set the value of the `aria-pressed` attribute
1112        pub fn aria_pressed(
1113            &mut self,
1114            value: impl Into<std::borrow::Cow<'static, str>>,
1115        ) -> &mut Self {
1116            self.element.set_aria_pressed(Some(value.into()));
1117            self
1118        }
1119        /// Set the value of the `aria-readonly` attribute
1120        pub fn aria_read_only(&mut self, value: bool) -> &mut Self {
1121            self.element.set_aria_read_only(value);
1122            self
1123        }
1124        /// Set the value of the `aria-relevant` attribute
1125        pub fn aria_relevant(
1126            &mut self,
1127            value: impl Into<std::borrow::Cow<'static, str>>,
1128        ) -> &mut Self {
1129            self.element.set_aria_relevant(Some(value.into()));
1130            self
1131        }
1132        /// Set the value of the `aria-required` attribute
1133        pub fn aria_required(&mut self, value: bool) -> &mut Self {
1134            self.element.set_aria_required(value);
1135            self
1136        }
1137        /// Set the value of the `aria-roledescription` attribute
1138        pub fn aria_role_description(
1139            &mut self,
1140            value: impl Into<std::borrow::Cow<'static, str>>,
1141        ) -> &mut Self {
1142            self.element.set_aria_role_description(Some(value.into()));
1143            self
1144        }
1145        /// Set the value of the `aria-rowcount` attribute
1146        pub fn aria_row_count(&mut self, value: i64) -> &mut Self {
1147            self.element.set_aria_row_count(Some(value));
1148            self
1149        }
1150        /// Set the value of the `aria-rowindex` attribute
1151        pub fn aria_row_index(&mut self, value: i64) -> &mut Self {
1152            self.element.set_aria_row_index(Some(value));
1153            self
1154        }
1155        /// Set the value of the `aria-rowindextext` attribute
1156        pub fn aria_row_index_text(
1157            &mut self,
1158            value: impl Into<std::borrow::Cow<'static, str>>,
1159        ) -> &mut Self {
1160            self.element.set_aria_row_index_text(Some(value.into()));
1161            self
1162        }
1163        /// Set the value of the `aria-rowspan` attribute
1164        pub fn aria_row_span(&mut self, value: i64) -> &mut Self {
1165            self.element.set_aria_row_span(Some(value));
1166            self
1167        }
1168        /// Set the value of the `aria-selected` attribute
1169        pub fn aria_selected(&mut self, value: bool) -> &mut Self {
1170            self.element.set_aria_selected(value);
1171            self
1172        }
1173        /// Set the value of the `aria-setsize` attribute
1174        pub fn aria_set_size(&mut self, value: i64) -> &mut Self {
1175            self.element.set_aria_set_size(Some(value));
1176            self
1177        }
1178        /// Set the value of the `aria-sort` attribute
1179        pub fn aria_sort(
1180            &mut self,
1181            value: impl Into<std::borrow::Cow<'static, str>>,
1182        ) -> &mut Self {
1183            self.element.set_aria_sort(Some(value.into()));
1184            self
1185        }
1186        /// Set the value of the `aria-valuemax` attribute
1187        pub fn aria_value_max(&mut self, value: f64) -> &mut Self {
1188            self.element.set_aria_value_max(Some(value));
1189            self
1190        }
1191        /// Set the value of the `aria-valuemin` attribute
1192        pub fn aria_value_min(&mut self, value: f64) -> &mut Self {
1193            self.element.set_aria_value_min(Some(value));
1194            self
1195        }
1196        /// Set the value of the `aria-valuenow` attribute
1197        pub fn aria_value_now(&mut self, value: f64) -> &mut Self {
1198            self.element.set_aria_value_now(Some(value));
1199            self
1200        }
1201        /// Set the value of the `aria-valuetext` attribute
1202        pub fn aria_value_text(
1203            &mut self,
1204            value: impl Into<std::borrow::Cow<'static, str>>,
1205        ) -> &mut Self {
1206            self.element.set_aria_value_text(Some(value.into()));
1207            self
1208        }
1209        /// Set the value of the `accesskey` attribute
1210        pub fn access_key(
1211            &mut self,
1212            value: impl Into<std::borrow::Cow<'static, str>>,
1213        ) -> &mut Self {
1214            self.element.set_access_key(Some(value.into()));
1215            self
1216        }
1217        /// Set the value of the `autocapitalize` attribute
1218        pub fn auto_capitalize(
1219            &mut self,
1220            value: impl Into<std::borrow::Cow<'static, str>>,
1221        ) -> &mut Self {
1222            self.element.set_auto_capitalize(Some(value.into()));
1223            self
1224        }
1225        /// Set the value of the `autofocus` attribute
1226        pub fn autofocus(&mut self, value: bool) -> &mut Self {
1227            self.element.set_autofocus(value);
1228            self
1229        }
1230        /// Set the value of the `class` attribute
1231        pub fn class(
1232            &mut self,
1233            value: impl Into<std::borrow::Cow<'static, str>>,
1234        ) -> &mut Self {
1235            self.element.set_class(Some(value.into()));
1236            self
1237        }
1238        /// Set the value of the `contenteditable` attribute
1239        pub fn content_editable(
1240            &mut self,
1241            value: impl Into<std::borrow::Cow<'static, str>>,
1242        ) -> &mut Self {
1243            self.element.set_content_editable(Some(value.into()));
1244            self
1245        }
1246        /// Set the value of the `dir` attribute
1247        pub fn direction(
1248            &mut self,
1249            value: impl Into<std::borrow::Cow<'static, str>>,
1250        ) -> &mut Self {
1251            self.element.set_direction(Some(value.into()));
1252            self
1253        }
1254        /// Set the value of the `draggable` attribute
1255        pub fn draggable(&mut self, value: bool) -> &mut Self {
1256            self.element.set_draggable(value);
1257            self
1258        }
1259        /// Set the value of the `enterkeyhint` attribute
1260        pub fn enter_key_hint(
1261            &mut self,
1262            value: impl Into<std::borrow::Cow<'static, str>>,
1263        ) -> &mut Self {
1264            self.element.set_enter_key_hint(Some(value.into()));
1265            self
1266        }
1267        /// Set the value of the `exportparts` attribute
1268        pub fn export_parts(
1269            &mut self,
1270            value: impl Into<std::borrow::Cow<'static, str>>,
1271        ) -> &mut Self {
1272            self.element.set_export_parts(Some(value.into()));
1273            self
1274        }
1275        /// Set the value of the `hidden` attribute
1276        pub fn hidden(
1277            &mut self,
1278            value: impl Into<std::borrow::Cow<'static, str>>,
1279        ) -> &mut Self {
1280            self.element.set_hidden(Some(value.into()));
1281            self
1282        }
1283        /// Set the value of the `id` attribute
1284        pub fn id(
1285            &mut self,
1286            value: impl Into<std::borrow::Cow<'static, str>>,
1287        ) -> &mut Self {
1288            self.element.set_id(Some(value.into()));
1289            self
1290        }
1291        /// Set the value of the `inert` attribute
1292        pub fn inert(&mut self, value: bool) -> &mut Self {
1293            self.element.set_inert(value);
1294            self
1295        }
1296        /// Set the value of the `inputmode` attribute
1297        pub fn input_mode(
1298            &mut self,
1299            value: impl Into<std::borrow::Cow<'static, str>>,
1300        ) -> &mut Self {
1301            self.element.set_input_mode(Some(value.into()));
1302            self
1303        }
1304        /// Set the value of the `is` attribute
1305        pub fn is_(
1306            &mut self,
1307            value: impl Into<std::borrow::Cow<'static, str>>,
1308        ) -> &mut Self {
1309            self.element.set_is_(Some(value.into()));
1310            self
1311        }
1312        /// Set the value of the `itemid` attribute
1313        pub fn item_id(
1314            &mut self,
1315            value: impl Into<std::borrow::Cow<'static, str>>,
1316        ) -> &mut Self {
1317            self.element.set_item_id(Some(value.into()));
1318            self
1319        }
1320        /// Set the value of the `itemprop` attribute
1321        pub fn item_prop(
1322            &mut self,
1323            value: impl Into<std::borrow::Cow<'static, str>>,
1324        ) -> &mut Self {
1325            self.element.set_item_prop(Some(value.into()));
1326            self
1327        }
1328        /// Set the value of the `itemref` attribute
1329        pub fn item_ref(
1330            &mut self,
1331            value: impl Into<std::borrow::Cow<'static, str>>,
1332        ) -> &mut Self {
1333            self.element.set_item_ref(Some(value.into()));
1334            self
1335        }
1336        /// Set the value of the `itemscope` attribute
1337        pub fn item_scope(
1338            &mut self,
1339            value: impl Into<std::borrow::Cow<'static, str>>,
1340        ) -> &mut Self {
1341            self.element.set_item_scope(Some(value.into()));
1342            self
1343        }
1344        /// Set the value of the `itemtype` attribute
1345        pub fn item_type(
1346            &mut self,
1347            value: impl Into<std::borrow::Cow<'static, str>>,
1348        ) -> &mut Self {
1349            self.element.set_item_type(Some(value.into()));
1350            self
1351        }
1352        /// Set the value of the `lang` attribute
1353        pub fn lang(
1354            &mut self,
1355            value: impl Into<std::borrow::Cow<'static, str>>,
1356        ) -> &mut Self {
1357            self.element.set_lang(Some(value.into()));
1358            self
1359        }
1360        /// Set the value of the `nonce` attribute
1361        pub fn nonce(
1362            &mut self,
1363            value: impl Into<std::borrow::Cow<'static, str>>,
1364        ) -> &mut Self {
1365            self.element.set_nonce(Some(value.into()));
1366            self
1367        }
1368        /// Set the value of the `part` attribute
1369        pub fn part(
1370            &mut self,
1371            value: impl Into<std::borrow::Cow<'static, str>>,
1372        ) -> &mut Self {
1373            self.element.set_part(Some(value.into()));
1374            self
1375        }
1376        /// Set the value of the `slot` attribute
1377        pub fn slot(
1378            &mut self,
1379            value: impl Into<std::borrow::Cow<'static, str>>,
1380        ) -> &mut Self {
1381            self.element.set_slot(Some(value.into()));
1382            self
1383        }
1384        /// Set the value of the `spellcheck` attribute
1385        pub fn spellcheck(
1386            &mut self,
1387            value: impl Into<std::borrow::Cow<'static, str>>,
1388        ) -> &mut Self {
1389            self.element.set_spellcheck(Some(value.into()));
1390            self
1391        }
1392        /// Set the value of the `style` attribute
1393        pub fn style(
1394            &mut self,
1395            value: impl Into<std::borrow::Cow<'static, str>>,
1396        ) -> &mut Self {
1397            self.element.set_style(Some(value.into()));
1398            self
1399        }
1400        /// Set the value of the `tabindex` attribute
1401        pub fn tab_index(&mut self, value: i64) -> &mut Self {
1402            self.element.set_tab_index(Some(value));
1403            self
1404        }
1405        /// Set the value of the `title` attribute
1406        pub fn title(
1407            &mut self,
1408            value: impl Into<std::borrow::Cow<'static, str>>,
1409        ) -> &mut Self {
1410            self.element.set_title(Some(value.into()));
1411            self
1412        }
1413        /// Set the value of the `translate` attribute
1414        pub fn translate(&mut self, value: bool) -> &mut Self {
1415            self.element.set_translate(value);
1416            self
1417        }
1418    }
1419}