html_compose.elements.script_element

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

The 'script' element.
Description: Embedded script
Categories: metadata flow phrasing script-supporting
Parents: head phrasing script-supporting
Children: script, data, or script documentation*
Interface: HTMLScriptElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

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

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

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

id:
    The element's ID

class_:
    Classes to which the element belongs

async_:
    Execute script when available, without blocking while fetching

blocking:
    Whether the element is potentially render-blocking

crossorigin:
    How the element handles crossorigin requests

defer:
    Defer script execution

fetchpriority:
    Sets the priority for fetches initiated by the element

integrity:
    Integrity metadata used in Subresource Integrity checks [SRI]

nomodule:
    Prevents execution in user agents that support module scripts

referrerpolicy:
    Referrer policy for fetches initiated by the element.  
    Value hint: Referrer policy

src:
    Address of the resource.  
    Value hint: Valid non-empty URL potentially surrounded by spaces

type:
    Type of script.  
    Value hint: "module"; a valid MIME type string that is not a JavaScript MIME type essence match

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