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