html_compose.elements.template_element

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

The 'template' element.
Description: Template
Categories: metadata flow phrasing script-supporting
Parents: metadata phrasing script-supporting colgroup*
Children: empty
Interface: HTMLTemplateElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

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

Initialize 'template' (Template) element.
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

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

id:
    The element's ID

class_:
    Classes to which the element belongs

shadowrootclonable:
    Sets clonable on a declarative shadow root

shadowrootdelegatesfocus:
    Sets delegates focus on a declarative shadow root

shadowrootmode:
    Enables streaming declarative shadow roots

shadowrootserializable:
    Sets serializable on a declarative shadow root

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 = 'template'
categories = ['metadata', 'flow', 'phrasing', 'script-supporting']
26    class hint(GlobalAttrs, TemplateAttrs):
27        """
28        Type hints for "template" 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 "template" attrs
This class holds functions which return BaseAttributes
Which you can add to your element attrs