html_compose.elements.base_element

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

The 'base' element.
Description: Base URL and default target navigable for hyperlinks and forms
Categories: metadata
Parents: head
Children: empty
Interface: HTMLBaseElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

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

Initialize 'base' (Base URL and default target navigable for hyperlinks and forms) element.
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

Args: attrs: A list or dictionary of attributes for the element

id:
    The element's ID

class_:
    Classes to which the element belongs

href:
    Document base URL.  
    Value hint: Valid URL potentially surrounded by spaces

target:
    Default navigable for hyperlink navigation and form submission.  
    Value hint: Valid navigable target name or keyword

accesskey:
    Keyboard shortcut to activate or focus element

autocapitalize:
    Recommended autocapitalization behavior (for supported input methods)

autocorrect:
    Recommended autocorrection behavior (for supported input methods)

autofocus:
    Automatically focus the element when the page is loaded

contenteditable:
    Whether the element is editable

dir:
    The text directionality of the element

draggable:
    Whether the element is draggable

enterkeyhint:
    Hint for selecting an enter key action

hidden:
    Whether the element is relevant

inert:
    Whether the element is inert.

inputmode:
    Hint for selecting an input modality

is_:
    Creates a customized built-in element.  
    Value hint: Valid custom element name of a defined customized built-in element

itemid:
    Global identifier for a microdata item.  
    Value hint: Valid URL potentially surrounded by spaces

itemprop:
    Property names of a microdata item

itemref:
    Referenced elements

itemscope:
    Introduces a microdata item

itemtype:
    Item types of a microdata item

lang:
    Language of the element.  
    Value hint: Valid BCP 47 language tag or the empty string

nonce:
    Cryptographic nonce used in Content Security Policy checks [CSP]

onauxclick:
    auxclick event handler.  
    Value hint: Event handler content attribute

onbeforeinput:
    beforeinput event handler.  
    Value hint: Event handler content attribute

onbeforematch:
    beforematch event handler.  
    Value hint: Event handler content attribute

onbeforetoggle:
    beforetoggle event handler.  
    Value hint: Event handler content attribute

onblur:
    blur event handler.  
    Value hint: Event handler content attribute

oncancel:
    cancel event handler.  
    Value hint: Event handler content attribute

oncanplay:
    canplay event handler.  
    Value hint: Event handler content attribute

oncanplaythrough:
    canplaythrough event handler.  
    Value hint: Event handler content attribute

onchange:
    change event handler.  
    Value hint: Event handler content attribute

onclick:
    click event handler.  
    Value hint: Event handler content attribute

onclose:
    close event handler.  
    Value hint: Event handler content attribute

oncontextlost:
    contextlost event handler.  
    Value hint: Event handler content attribute

oncontextmenu:
    contextmenu event handler.  
    Value hint: Event handler content attribute

oncontextrestored:
    contextrestored event handler.  
    Value hint: Event handler content attribute

oncopy:
    copy event handler.  
    Value hint: Event handler content attribute

oncuechange:
    cuechange event handler.  
    Value hint: Event handler content attribute

oncut:
    cut event handler.  
    Value hint: Event handler content attribute

ondblclick:
    dblclick event handler.  
    Value hint: Event handler content attribute

ondrag:
    drag event handler.  
    Value hint: Event handler content attribute

ondragend:
    dragend event handler.  
    Value hint: Event handler content attribute

ondragenter:
    dragenter event handler.  
    Value hint: Event handler content attribute

ondragleave:
    dragleave event handler.  
    Value hint: Event handler content attribute

ondragover:
    dragover event handler.  
    Value hint: Event handler content attribute

ondragstart:
    dragstart event handler.  
    Value hint: Event handler content attribute

ondrop:
    drop event handler.  
    Value hint: Event handler content attribute

ondurationchange:
    durationchange event handler.  
    Value hint: Event handler content attribute

onemptied:
    emptied event handler.  
    Value hint: Event handler content attribute

onended:
    ended event handler.  
    Value hint: Event handler content attribute

onerror:
    error event handler.  
    Value hint: Event handler content attribute

onfocus:
    focus event handler.  
    Value hint: Event handler content attribute

onformdata:
    formdata event handler.  
    Value hint: Event handler content attribute

oninput:
    input event handler.  
    Value hint: Event handler content attribute

oninvalid:
    invalid event handler.  
    Value hint: Event handler content attribute

onkeydown:
    keydown event handler.  
    Value hint: Event handler content attribute

onkeypress:
    keypress event handler.  
    Value hint: Event handler content attribute

onkeyup:
    keyup event handler.  
    Value hint: Event handler content attribute

onload:
    load event handler.  
    Value hint: Event handler content attribute

onloadeddata:
    loadeddata event handler.  
    Value hint: Event handler content attribute

onloadedmetadata:
    loadedmetadata event handler.  
    Value hint: Event handler content attribute

onloadstart:
    loadstart event handler.  
    Value hint: Event handler content attribute

onmousedown:
    mousedown event handler.  
    Value hint: Event handler content attribute

onmouseenter:
    mouseenter event handler.  
    Value hint: Event handler content attribute

onmouseleave:
    mouseleave event handler.  
    Value hint: Event handler content attribute

onmousemove:
    mousemove event handler.  
    Value hint: Event handler content attribute

onmouseout:
    mouseout event handler.  
    Value hint: Event handler content attribute

onmouseover:
    mouseover event handler.  
    Value hint: Event handler content attribute

onmouseup:
    mouseup event handler.  
    Value hint: Event handler content attribute

onpaste:
    paste event handler.  
    Value hint: Event handler content attribute

onpause:
    pause event handler.  
    Value hint: Event handler content attribute

onplay:
    play event handler.  
    Value hint: Event handler content attribute

onplaying:
    playing event handler.  
    Value hint: Event handler content attribute

onprogress:
    progress event handler.  
    Value hint: Event handler content attribute

onratechange:
    ratechange event handler.  
    Value hint: Event handler content attribute

onreset:
    reset event handler.  
    Value hint: Event handler content attribute

onresize:
    resize event handler.  
    Value hint: Event handler content attribute

onscroll:
    scroll event handler.  
    Value hint: Event handler content attribute

onscrollend:
    scrollend event handler.  
    Value hint: Event handler content attribute

onsecuritypolicyviolation:
    securitypolicyviolation event handler.  
    Value hint: Event handler content attribute

onseeked:
    seeked event handler.  
    Value hint: Event handler content attribute

onseeking:
    seeking event handler.  
    Value hint: Event handler content attribute

onselect:
    select event handler.  
    Value hint: Event handler content attribute

onslotchange:
    slotchange event handler.  
    Value hint: Event handler content attribute

onstalled:
    stalled event handler.  
    Value hint: Event handler content attribute

onsubmit:
    submit event handler.  
    Value hint: Event handler content attribute

onsuspend:
    suspend event handler.  
    Value hint: Event handler content attribute

ontimeupdate:
    timeupdate event handler.  
    Value hint: Event handler content attribute

ontoggle:
    toggle event handler.  
    Value hint: Event handler content attribute

onvolumechange:
    volumechange event handler.  
    Value hint: Event handler content attribute

onwaiting:
    waiting event handler.  
    Value hint: Event handler content attribute

onwheel:
    wheel event handler.  
    Value hint: Event handler content attribute

popover:
    Makes the element a popover element

slot:
    The element's desired slot

spellcheck:
    Whether the element is to have its spelling and grammar checked

style:
    Presentational and formatting instructions.  
    Value hint: CSS declarations*

tabindex:
    Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation

title:
    Advisory information for the element

translate:
    Whether the element is to be translated when the page is localized

writingsuggestions:
    Whether the element can offer writing suggestions or not.
tag = 'base'
categories = ['metadata']
26    class hint(GlobalAttrs, BaseAttrs):
27        """
28        Type hints for "base" attrs  
29        This class holds functions which return BaseAttributes  
30        Which you can add to your element attrs  
31        """  # fmt: skip
32
33        pass

Type hints for "base" attrs
This class holds functions which return BaseAttributes
Which you can add to your element attrs