1from typing import Literal, Iterable, Mapping
2
3from ..attributes import GlobalAttrs, ButtonAttrs
4from ..base_attribute import BaseAttribute
5from ..base_element import BaseElement
6from ..base_types import Resolvable, StrLike
7
8# This file is generated by tools/generate_elements.py
9
10
11class button(BaseElement):
12 """
13 The 'button' element.
14 Description: Button control
15 Categories: flow phrasing interactive listed labelable submittable form-associated palpable
16 Parents: phrasing
17 Children: phrasing*
18 Interface: HTMLButtonElement
19 Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
20 """ # fmt: skip
21
22 tag = "button"
23 categories = [
24 "flow",
25 "phrasing",
26 "interactive",
27 "listed",
28 "labelable",
29 "submittable",
30 "form-associated",
31 "palpable",
32 ]
33
34 class hint(GlobalAttrs, ButtonAttrs):
35 """
36 Type hints for "button" attrs
37 This class holds functions which return BaseAttributes
38 Which you can add to your element attrs
39 """ # fmt: skip
40
41 pass
42
43 _ = hint
44
45 def __init__(
46 self,
47 attrs: Iterable[BaseAttribute]
48 | Mapping[str, Resolvable]
49 | Iterable[
50 BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable]
51 ]
52 | None = None,
53 id: StrLike | None = None,
54 class_: Resolvable | None = None,
55 disabled: bool | StrLike | None = None,
56 form: StrLike | None = None,
57 formaction: StrLike | None = None,
58 formenctype: Literal[
59 "application/x-www-form-urlencoded",
60 "multipart/form-data",
61 "text/plain",
62 ]
63 | StrLike
64 | None = None,
65 formmethod: Literal["GET", "POST", "dialog"] | StrLike | None = None,
66 formnovalidate: bool | StrLike | None = None,
67 formtarget: StrLike | None = None,
68 name: StrLike | None = None,
69 popovertarget: StrLike | None = None,
70 popovertargetaction: Literal["toggle", "show", "hide"]
71 | StrLike
72 | None = None,
73 type: Literal["submit", "reset", "button"] | StrLike | None = None,
74 value: StrLike | None = None,
75 accesskey: Resolvable | StrLike | None = None,
76 autocapitalize: Literal[
77 "on", "off", "none", "sentences", "words", "characters"
78 ]
79 | StrLike
80 | None = None,
81 autocorrect: Literal["on", "off"] | StrLike | None = None,
82 autofocus: bool | StrLike | None = None,
83 contenteditable: Literal["true", "plaintext-only", "false"]
84 | StrLike
85 | None = None,
86 dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None,
87 draggable: Literal["true", "false"] | StrLike | None = None,
88 enterkeyhint: Literal[
89 "enter", "done", "go", "next", "previous", "search", "send"
90 ]
91 | StrLike
92 | None = None,
93 hidden: Literal["until-found", "hidden", ""] | StrLike | None = None,
94 inert: bool | StrLike | None = None,
95 inputmode: Literal[
96 "none",
97 "text",
98 "tel",
99 "email",
100 "url",
101 "numeric",
102 "decimal",
103 "search",
104 ]
105 | StrLike
106 | None = None,
107 is_: StrLike | None = None,
108 itemid: StrLike | None = None,
109 itemprop: Resolvable | StrLike | None = None,
110 itemref: Resolvable | StrLike | None = None,
111 itemscope: bool | StrLike | None = None,
112 itemtype: Resolvable | StrLike | None = None,
113 lang: StrLike | None = None,
114 nonce: StrLike | None = None,
115 onauxclick: StrLike | None = None,
116 onbeforeinput: StrLike | None = None,
117 onbeforematch: StrLike | None = None,
118 onbeforetoggle: StrLike | None = None,
119 onblur: StrLike | None = None,
120 oncancel: StrLike | None = None,
121 oncanplay: StrLike | None = None,
122 oncanplaythrough: StrLike | None = None,
123 onchange: StrLike | None = None,
124 onclick: StrLike | None = None,
125 onclose: StrLike | None = None,
126 oncontextlost: StrLike | None = None,
127 oncontextmenu: StrLike | None = None,
128 oncontextrestored: StrLike | None = None,
129 oncopy: StrLike | None = None,
130 oncuechange: StrLike | None = None,
131 oncut: StrLike | None = None,
132 ondblclick: StrLike | None = None,
133 ondrag: StrLike | None = None,
134 ondragend: StrLike | None = None,
135 ondragenter: StrLike | None = None,
136 ondragleave: StrLike | None = None,
137 ondragover: StrLike | None = None,
138 ondragstart: StrLike | None = None,
139 ondrop: StrLike | None = None,
140 ondurationchange: StrLike | None = None,
141 onemptied: StrLike | None = None,
142 onended: StrLike | None = None,
143 onerror: StrLike | None = None,
144 onfocus: StrLike | None = None,
145 onformdata: StrLike | None = None,
146 oninput: StrLike | None = None,
147 oninvalid: StrLike | None = None,
148 onkeydown: StrLike | None = None,
149 onkeypress: StrLike | None = None,
150 onkeyup: StrLike | None = None,
151 onload: StrLike | None = None,
152 onloadeddata: StrLike | None = None,
153 onloadedmetadata: StrLike | None = None,
154 onloadstart: StrLike | None = None,
155 onmousedown: StrLike | None = None,
156 onmouseenter: StrLike | None = None,
157 onmouseleave: StrLike | None = None,
158 onmousemove: StrLike | None = None,
159 onmouseout: StrLike | None = None,
160 onmouseover: StrLike | None = None,
161 onmouseup: StrLike | None = None,
162 onpaste: StrLike | None = None,
163 onpause: StrLike | None = None,
164 onplay: StrLike | None = None,
165 onplaying: StrLike | None = None,
166 onprogress: StrLike | None = None,
167 onratechange: StrLike | None = None,
168 onreset: StrLike | None = None,
169 onresize: StrLike | None = None,
170 onscroll: StrLike | None = None,
171 onscrollend: StrLike | None = None,
172 onsecuritypolicyviolation: StrLike | None = None,
173 onseeked: StrLike | None = None,
174 onseeking: StrLike | None = None,
175 onselect: StrLike | None = None,
176 onslotchange: StrLike | None = None,
177 onstalled: StrLike | None = None,
178 onsubmit: StrLike | None = None,
179 onsuspend: StrLike | None = None,
180 ontimeupdate: StrLike | None = None,
181 ontoggle: StrLike | None = None,
182 onvolumechange: StrLike | None = None,
183 onwaiting: StrLike | None = None,
184 onwheel: StrLike | None = None,
185 popover: Literal["auto", "manual"] | StrLike | None = None,
186 slot: StrLike | None = None,
187 spellcheck: Literal["true", "false", ""] | StrLike | None = None,
188 style: Resolvable | Mapping[StrLike, StrLike] | None = None,
189 tabindex: int | StrLike | None = None,
190 title: StrLike | None = None,
191 translate: Literal["yes", "no"] | StrLike | None = None,
192 writingsuggestions: Literal["true", "false", ""]
193 | StrLike
194 | None = None,
195 children: list | None = None,
196 ) -> None:
197 """
198 Initialize 'button' (Button control) element.
199 Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
200
201 Args:
202 attrs:
203 A list or dictionary of attributes for the element
204
205 id:
206 The element's ID
207
208 class_:
209 Classes to which the element belongs
210
211 disabled:
212 Whether the form control is disabled
213
214 form:
215 Associates the element with a form element.
216 Value hint: ID*
217
218 formaction:
219 URL to use for form submission.
220 Value hint: Valid non-empty URL potentially surrounded by spaces
221
222 formenctype:
223 Entry list encoding type to use for form submission
224
225 formmethod:
226 Variant to use for form submission
227
228 formnovalidate:
229 Bypass form control validation for form submission
230
231 formtarget:
232 Navigable for form submission.
233 Value hint: Valid navigable target name or keyword
234
235 name:
236 Name of the element to use for form submission and in the form.elements API
237
238 popovertarget:
239 Targets a popover element to toggle, show, or hide.
240 Value hint: ID*
241
242 popovertargetaction:
243 Indicates whether a targeted popover element is to be toggled, shown, or hidden
244
245 type:
246 Type of button
247
248 value:
249 Value to be used for form submission
250
251 accesskey:
252 Keyboard shortcut to activate or focus element
253
254 autocapitalize:
255 Recommended autocapitalization behavior (for supported input methods)
256
257 autocorrect:
258 Recommended autocorrection behavior (for supported input methods)
259
260 autofocus:
261 Automatically focus the element when the page is loaded
262
263 contenteditable:
264 Whether the element is editable
265
266 dir:
267 The text directionality of the element
268
269 draggable:
270 Whether the element is draggable
271
272 enterkeyhint:
273 Hint for selecting an enter key action
274
275 hidden:
276 Whether the element is relevant
277
278 inert:
279 Whether the element is inert.
280
281 inputmode:
282 Hint for selecting an input modality
283
284 is_:
285 Creates a customized built-in element.
286 Value hint: Valid custom element name of a defined customized built-in element
287
288 itemid:
289 Global identifier for a microdata item.
290 Value hint: Valid URL potentially surrounded by spaces
291
292 itemprop:
293 Property names of a microdata item
294
295 itemref:
296 Referenced elements
297
298 itemscope:
299 Introduces a microdata item
300
301 itemtype:
302 Item types of a microdata item
303
304 lang:
305 Language of the element.
306 Value hint: Valid BCP 47 language tag or the empty string
307
308 nonce:
309 Cryptographic nonce used in Content Security Policy checks [CSP]
310
311 onauxclick:
312 auxclick event handler.
313 Value hint: Event handler content attribute
314
315 onbeforeinput:
316 beforeinput event handler.
317 Value hint: Event handler content attribute
318
319 onbeforematch:
320 beforematch event handler.
321 Value hint: Event handler content attribute
322
323 onbeforetoggle:
324 beforetoggle event handler.
325 Value hint: Event handler content attribute
326
327 onblur:
328 blur event handler.
329 Value hint: Event handler content attribute
330
331 oncancel:
332 cancel event handler.
333 Value hint: Event handler content attribute
334
335 oncanplay:
336 canplay event handler.
337 Value hint: Event handler content attribute
338
339 oncanplaythrough:
340 canplaythrough event handler.
341 Value hint: Event handler content attribute
342
343 onchange:
344 change event handler.
345 Value hint: Event handler content attribute
346
347 onclick:
348 click event handler.
349 Value hint: Event handler content attribute
350
351 onclose:
352 close event handler.
353 Value hint: Event handler content attribute
354
355 oncontextlost:
356 contextlost event handler.
357 Value hint: Event handler content attribute
358
359 oncontextmenu:
360 contextmenu event handler.
361 Value hint: Event handler content attribute
362
363 oncontextrestored:
364 contextrestored event handler.
365 Value hint: Event handler content attribute
366
367 oncopy:
368 copy event handler.
369 Value hint: Event handler content attribute
370
371 oncuechange:
372 cuechange event handler.
373 Value hint: Event handler content attribute
374
375 oncut:
376 cut event handler.
377 Value hint: Event handler content attribute
378
379 ondblclick:
380 dblclick event handler.
381 Value hint: Event handler content attribute
382
383 ondrag:
384 drag event handler.
385 Value hint: Event handler content attribute
386
387 ondragend:
388 dragend event handler.
389 Value hint: Event handler content attribute
390
391 ondragenter:
392 dragenter event handler.
393 Value hint: Event handler content attribute
394
395 ondragleave:
396 dragleave event handler.
397 Value hint: Event handler content attribute
398
399 ondragover:
400 dragover event handler.
401 Value hint: Event handler content attribute
402
403 ondragstart:
404 dragstart event handler.
405 Value hint: Event handler content attribute
406
407 ondrop:
408 drop event handler.
409 Value hint: Event handler content attribute
410
411 ondurationchange:
412 durationchange event handler.
413 Value hint: Event handler content attribute
414
415 onemptied:
416 emptied event handler.
417 Value hint: Event handler content attribute
418
419 onended:
420 ended event handler.
421 Value hint: Event handler content attribute
422
423 onerror:
424 error event handler.
425 Value hint: Event handler content attribute
426
427 onfocus:
428 focus event handler.
429 Value hint: Event handler content attribute
430
431 onformdata:
432 formdata event handler.
433 Value hint: Event handler content attribute
434
435 oninput:
436 input event handler.
437 Value hint: Event handler content attribute
438
439 oninvalid:
440 invalid event handler.
441 Value hint: Event handler content attribute
442
443 onkeydown:
444 keydown event handler.
445 Value hint: Event handler content attribute
446
447 onkeypress:
448 keypress event handler.
449 Value hint: Event handler content attribute
450
451 onkeyup:
452 keyup event handler.
453 Value hint: Event handler content attribute
454
455 onload:
456 load event handler.
457 Value hint: Event handler content attribute
458
459 onloadeddata:
460 loadeddata event handler.
461 Value hint: Event handler content attribute
462
463 onloadedmetadata:
464 loadedmetadata event handler.
465 Value hint: Event handler content attribute
466
467 onloadstart:
468 loadstart event handler.
469 Value hint: Event handler content attribute
470
471 onmousedown:
472 mousedown event handler.
473 Value hint: Event handler content attribute
474
475 onmouseenter:
476 mouseenter event handler.
477 Value hint: Event handler content attribute
478
479 onmouseleave:
480 mouseleave event handler.
481 Value hint: Event handler content attribute
482
483 onmousemove:
484 mousemove event handler.
485 Value hint: Event handler content attribute
486
487 onmouseout:
488 mouseout event handler.
489 Value hint: Event handler content attribute
490
491 onmouseover:
492 mouseover event handler.
493 Value hint: Event handler content attribute
494
495 onmouseup:
496 mouseup event handler.
497 Value hint: Event handler content attribute
498
499 onpaste:
500 paste event handler.
501 Value hint: Event handler content attribute
502
503 onpause:
504 pause event handler.
505 Value hint: Event handler content attribute
506
507 onplay:
508 play event handler.
509 Value hint: Event handler content attribute
510
511 onplaying:
512 playing event handler.
513 Value hint: Event handler content attribute
514
515 onprogress:
516 progress event handler.
517 Value hint: Event handler content attribute
518
519 onratechange:
520 ratechange event handler.
521 Value hint: Event handler content attribute
522
523 onreset:
524 reset event handler.
525 Value hint: Event handler content attribute
526
527 onresize:
528 resize event handler.
529 Value hint: Event handler content attribute
530
531 onscroll:
532 scroll event handler.
533 Value hint: Event handler content attribute
534
535 onscrollend:
536 scrollend event handler.
537 Value hint: Event handler content attribute
538
539 onsecuritypolicyviolation:
540 securitypolicyviolation event handler.
541 Value hint: Event handler content attribute
542
543 onseeked:
544 seeked event handler.
545 Value hint: Event handler content attribute
546
547 onseeking:
548 seeking event handler.
549 Value hint: Event handler content attribute
550
551 onselect:
552 select event handler.
553 Value hint: Event handler content attribute
554
555 onslotchange:
556 slotchange event handler.
557 Value hint: Event handler content attribute
558
559 onstalled:
560 stalled event handler.
561 Value hint: Event handler content attribute
562
563 onsubmit:
564 submit event handler.
565 Value hint: Event handler content attribute
566
567 onsuspend:
568 suspend event handler.
569 Value hint: Event handler content attribute
570
571 ontimeupdate:
572 timeupdate event handler.
573 Value hint: Event handler content attribute
574
575 ontoggle:
576 toggle event handler.
577 Value hint: Event handler content attribute
578
579 onvolumechange:
580 volumechange event handler.
581 Value hint: Event handler content attribute
582
583 onwaiting:
584 waiting event handler.
585 Value hint: Event handler content attribute
586
587 onwheel:
588 wheel event handler.
589 Value hint: Event handler content attribute
590
591 popover:
592 Makes the element a popover element
593
594 slot:
595 The element's desired slot
596
597 spellcheck:
598 Whether the element is to have its spelling and grammar checked
599
600 style:
601 Presentational and formatting instructions.
602 Value hint: CSS declarations*
603
604 tabindex:
605 Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
606
607 title:
608 Advisory information for the element
609
610 translate:
611 Whether the element is to be translated when the page is localized
612
613 writingsuggestions:
614 Whether the element can offer writing suggestions or not.
615
616 """ # fmt: skip
617 super().__init__(
618 "button", void_element=False, attrs=attrs, children=children
619 )
620 if not (id is None or id is False):
621 self._process_attr("id", id)
622 if not (class_ is None or class_ is False):
623 self._process_attr("class", class_)
624 if not (disabled is None or disabled is False):
625 self._process_attr("disabled", disabled)
626 if not (form is None or form is False):
627 self._process_attr("form", form)
628 if not (formaction is None or formaction is False):
629 self._process_attr("formaction", formaction)
630 if not (formenctype is None or formenctype is False):
631 self._process_attr("formenctype", formenctype)
632 if not (formmethod is None or formmethod is False):
633 self._process_attr("formmethod", formmethod)
634 if not (formnovalidate is None or formnovalidate is False):
635 self._process_attr("formnovalidate", formnovalidate)
636 if not (formtarget is None or formtarget is False):
637 self._process_attr("formtarget", formtarget)
638 if not (name is None or name is False):
639 self._process_attr("name", name)
640 if not (popovertarget is None or popovertarget is False):
641 self._process_attr("popovertarget", popovertarget)
642 if not (popovertargetaction is None or popovertargetaction is False):
643 self._process_attr("popovertargetaction", popovertargetaction)
644 if not (type is None or type is False):
645 self._process_attr("type", type)
646 if not (value is None or value is False):
647 self._process_attr("value", value)
648 if not (accesskey is None or accesskey is False):
649 self._process_attr("accesskey", accesskey)
650 if not (autocapitalize is None or autocapitalize is False):
651 self._process_attr("autocapitalize", autocapitalize)
652 if not (autocorrect is None or autocorrect is False):
653 self._process_attr("autocorrect", autocorrect)
654 if not (autofocus is None or autofocus is False):
655 self._process_attr("autofocus", autofocus)
656 if not (contenteditable is None or contenteditable is False):
657 self._process_attr("contenteditable", contenteditable)
658 if not (dir is None or dir is False):
659 self._process_attr("dir", dir)
660 if not (draggable is None or draggable is False):
661 self._process_attr("draggable", draggable)
662 if not (enterkeyhint is None or enterkeyhint is False):
663 self._process_attr("enterkeyhint", enterkeyhint)
664 if not (hidden is None or hidden is False):
665 self._process_attr("hidden", hidden)
666 if not (inert is None or inert is False):
667 self._process_attr("inert", inert)
668 if not (inputmode is None or inputmode is False):
669 self._process_attr("inputmode", inputmode)
670 if not (is_ is None or is_ is False):
671 self._process_attr("is", is_)
672 if not (itemid is None or itemid is False):
673 self._process_attr("itemid", itemid)
674 if not (itemprop is None or itemprop is False):
675 self._process_attr("itemprop", itemprop)
676 if not (itemref is None or itemref is False):
677 self._process_attr("itemref", itemref)
678 if not (itemscope is None or itemscope is False):
679 self._process_attr("itemscope", itemscope)
680 if not (itemtype is None or itemtype is False):
681 self._process_attr("itemtype", itemtype)
682 if not (lang is None or lang is False):
683 self._process_attr("lang", lang)
684 if not (nonce is None or nonce is False):
685 self._process_attr("nonce", nonce)
686 if not (onauxclick is None or onauxclick is False):
687 self._process_attr("onauxclick", onauxclick)
688 if not (onbeforeinput is None or onbeforeinput is False):
689 self._process_attr("onbeforeinput", onbeforeinput)
690 if not (onbeforematch is None or onbeforematch is False):
691 self._process_attr("onbeforematch", onbeforematch)
692 if not (onbeforetoggle is None or onbeforetoggle is False):
693 self._process_attr("onbeforetoggle", onbeforetoggle)
694 if not (onblur is None or onblur is False):
695 self._process_attr("onblur", onblur)
696 if not (oncancel is None or oncancel is False):
697 self._process_attr("oncancel", oncancel)
698 if not (oncanplay is None or oncanplay is False):
699 self._process_attr("oncanplay", oncanplay)
700 if not (oncanplaythrough is None or oncanplaythrough is False):
701 self._process_attr("oncanplaythrough", oncanplaythrough)
702 if not (onchange is None or onchange is False):
703 self._process_attr("onchange", onchange)
704 if not (onclick is None or onclick is False):
705 self._process_attr("onclick", onclick)
706 if not (onclose is None or onclose is False):
707 self._process_attr("onclose", onclose)
708 if not (oncontextlost is None or oncontextlost is False):
709 self._process_attr("oncontextlost", oncontextlost)
710 if not (oncontextmenu is None or oncontextmenu is False):
711 self._process_attr("oncontextmenu", oncontextmenu)
712 if not (oncontextrestored is None or oncontextrestored is False):
713 self._process_attr("oncontextrestored", oncontextrestored)
714 if not (oncopy is None or oncopy is False):
715 self._process_attr("oncopy", oncopy)
716 if not (oncuechange is None or oncuechange is False):
717 self._process_attr("oncuechange", oncuechange)
718 if not (oncut is None or oncut is False):
719 self._process_attr("oncut", oncut)
720 if not (ondblclick is None or ondblclick is False):
721 self._process_attr("ondblclick", ondblclick)
722 if not (ondrag is None or ondrag is False):
723 self._process_attr("ondrag", ondrag)
724 if not (ondragend is None or ondragend is False):
725 self._process_attr("ondragend", ondragend)
726 if not (ondragenter is None or ondragenter is False):
727 self._process_attr("ondragenter", ondragenter)
728 if not (ondragleave is None or ondragleave is False):
729 self._process_attr("ondragleave", ondragleave)
730 if not (ondragover is None or ondragover is False):
731 self._process_attr("ondragover", ondragover)
732 if not (ondragstart is None or ondragstart is False):
733 self._process_attr("ondragstart", ondragstart)
734 if not (ondrop is None or ondrop is False):
735 self._process_attr("ondrop", ondrop)
736 if not (ondurationchange is None or ondurationchange is False):
737 self._process_attr("ondurationchange", ondurationchange)
738 if not (onemptied is None or onemptied is False):
739 self._process_attr("onemptied", onemptied)
740 if not (onended is None or onended is False):
741 self._process_attr("onended", onended)
742 if not (onerror is None or onerror is False):
743 self._process_attr("onerror", onerror)
744 if not (onfocus is None or onfocus is False):
745 self._process_attr("onfocus", onfocus)
746 if not (onformdata is None or onformdata is False):
747 self._process_attr("onformdata", onformdata)
748 if not (oninput is None or oninput is False):
749 self._process_attr("oninput", oninput)
750 if not (oninvalid is None or oninvalid is False):
751 self._process_attr("oninvalid", oninvalid)
752 if not (onkeydown is None or onkeydown is False):
753 self._process_attr("onkeydown", onkeydown)
754 if not (onkeypress is None or onkeypress is False):
755 self._process_attr("onkeypress", onkeypress)
756 if not (onkeyup is None or onkeyup is False):
757 self._process_attr("onkeyup", onkeyup)
758 if not (onload is None or onload is False):
759 self._process_attr("onload", onload)
760 if not (onloadeddata is None or onloadeddata is False):
761 self._process_attr("onloadeddata", onloadeddata)
762 if not (onloadedmetadata is None or onloadedmetadata is False):
763 self._process_attr("onloadedmetadata", onloadedmetadata)
764 if not (onloadstart is None or onloadstart is False):
765 self._process_attr("onloadstart", onloadstart)
766 if not (onmousedown is None or onmousedown is False):
767 self._process_attr("onmousedown", onmousedown)
768 if not (onmouseenter is None or onmouseenter is False):
769 self._process_attr("onmouseenter", onmouseenter)
770 if not (onmouseleave is None or onmouseleave is False):
771 self._process_attr("onmouseleave", onmouseleave)
772 if not (onmousemove is None or onmousemove is False):
773 self._process_attr("onmousemove", onmousemove)
774 if not (onmouseout is None or onmouseout is False):
775 self._process_attr("onmouseout", onmouseout)
776 if not (onmouseover is None or onmouseover is False):
777 self._process_attr("onmouseover", onmouseover)
778 if not (onmouseup is None or onmouseup is False):
779 self._process_attr("onmouseup", onmouseup)
780 if not (onpaste is None or onpaste is False):
781 self._process_attr("onpaste", onpaste)
782 if not (onpause is None or onpause is False):
783 self._process_attr("onpause", onpause)
784 if not (onplay is None or onplay is False):
785 self._process_attr("onplay", onplay)
786 if not (onplaying is None or onplaying is False):
787 self._process_attr("onplaying", onplaying)
788 if not (onprogress is None or onprogress is False):
789 self._process_attr("onprogress", onprogress)
790 if not (onratechange is None or onratechange is False):
791 self._process_attr("onratechange", onratechange)
792 if not (onreset is None or onreset is False):
793 self._process_attr("onreset", onreset)
794 if not (onresize is None or onresize is False):
795 self._process_attr("onresize", onresize)
796 if not (onscroll is None or onscroll is False):
797 self._process_attr("onscroll", onscroll)
798 if not (onscrollend is None or onscrollend is False):
799 self._process_attr("onscrollend", onscrollend)
800 if not (
801 onsecuritypolicyviolation is None
802 or onsecuritypolicyviolation is False
803 ):
804 self._process_attr(
805 "onsecuritypolicyviolation", onsecuritypolicyviolation
806 )
807 if not (onseeked is None or onseeked is False):
808 self._process_attr("onseeked", onseeked)
809 if not (onseeking is None or onseeking is False):
810 self._process_attr("onseeking", onseeking)
811 if not (onselect is None or onselect is False):
812 self._process_attr("onselect", onselect)
813 if not (onslotchange is None or onslotchange is False):
814 self._process_attr("onslotchange", onslotchange)
815 if not (onstalled is None or onstalled is False):
816 self._process_attr("onstalled", onstalled)
817 if not (onsubmit is None or onsubmit is False):
818 self._process_attr("onsubmit", onsubmit)
819 if not (onsuspend is None or onsuspend is False):
820 self._process_attr("onsuspend", onsuspend)
821 if not (ontimeupdate is None or ontimeupdate is False):
822 self._process_attr("ontimeupdate", ontimeupdate)
823 if not (ontoggle is None or ontoggle is False):
824 self._process_attr("ontoggle", ontoggle)
825 if not (onvolumechange is None or onvolumechange is False):
826 self._process_attr("onvolumechange", onvolumechange)
827 if not (onwaiting is None or onwaiting is False):
828 self._process_attr("onwaiting", onwaiting)
829 if not (onwheel is None or onwheel is False):
830 self._process_attr("onwheel", onwheel)
831 if not (popover is None or popover is False):
832 self._process_attr("popover", popover)
833 if not (slot is None or slot is False):
834 self._process_attr("slot", slot)
835 if not (spellcheck is None or spellcheck is False):
836 self._process_attr("spellcheck", spellcheck)
837 if not (style is None or style is False):
838 self._process_attr("style", style)
839 if not (tabindex is None or tabindex is False):
840 self._process_attr("tabindex", tabindex)
841 if not (title is None or title is False):
842 self._process_attr("title", title)
843 if not (translate is None or translate is False):
844 self._process_attr("translate", translate)
845 if not (writingsuggestions is None or writingsuggestions is False):
846 self._process_attr("writingsuggestions", writingsuggestions)