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