/usr/lib/ocaml/tyxml/html5_sigs.mli is in libtyxml-ocaml-dev 3.5.0-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 | (* TyXML
* http://www.ocsigen.org/tyxml
* Copyright (C) 2011 Pierre Chambart, Grégoire Henry
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, with linking exception;
* either version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02111-1307, USA.
*)
module type T = sig
open Html5_types
module Xml : Xml_sigs.Wrapped
module Svg : Svg_sigs.T with module Xml := Xml
module Info : Xml_sigs.Info
type 'a wrap
type 'a list_wrap
type uri = Xml.uri
val string_of_uri : uri -> string
val uri_of_string : string -> uri
(** {1 Common Attributes} *)
type +'a attrib
val to_xmlattribs : ('a attrib) list -> Xml.attrib list (* VB *)
val to_attrib : Xml.attrib -> 'a attrib (* GH *)
(** ['a] is known as a {i phantom type}. The implementation is
actually monomorphic (the different element types are distinguished
by a homogeneous variable, such as their textual representation)
and the type variable [`a] is just used by the type checker.
NB: It might be possible to use polymorphic variants directly, without
phantom types, but the implementation is likely to be more involved. *)
val a_autocomplete : [< | `On | `Off] wrap -> [> | `Autocomplete] attrib
val a_async : [< | `Async] wrap -> [> | `Async] attrib
val a_autofocus : [< | `Autofocus] wrap -> [> | `Autofocus] attrib
val a_autoplay : [< | `Autoplay] wrap -> [> | `Autoplay] attrib
val a_muted : [< | `Muted] wrap -> [> | `Muted] attrib
val a_crossorigin :
[< | `Anonymous | `Use_credentials ] wrap -> [> | `Crossorigin ] attrib
val a_mediagroup : string wrap -> [> | `Mediagroup ] attrib
val a_challenge : text wrap -> [> | `Challenge] attrib
val a_contenteditable : bool wrap -> [> | `Contenteditable] attrib
val a_contextmenu : idref wrap -> [> | `Contextmenu] attrib
val a_controls : [< | `Controls] wrap -> [> | `Controls] attrib
val a_dir : [< | `Rtl | `Ltr] wrap -> [> | `Dir] attrib
val a_draggable : bool wrap -> [> | `Draggable] attrib
val a_form : idref wrap -> [> | `Form] attrib
val a_formaction : Xml.uri wrap -> [> | `Formaction] attrib
val a_formenctype : contenttype wrap -> [> | `Formenctype] attrib
val a_formmethod :
[< | `Get | `Post | `Put | `Delete] wrap -> [> | `Formmethod] attrib
val a_formnovalidate :
[< | `Formnovalidate] wrap -> [> | `Formnovalidate] attrib
val a_formtarget : text wrap -> [> | `Formtarget] attrib
val a_hidden : [< | `Hidden] wrap -> [> | `Hidden] attrib
val a_high : float_number wrap -> [> | `High] attrib
val a_icon : Xml.uri wrap -> [> | `Icon] attrib
val a_ismap : [< | `Ismap] wrap -> [> | `Ismap] attrib
val a_keytype : text wrap -> [> | `Keytype] attrib
val a_list : idref wrap -> [> | `List] attrib
val a_loop : [< | `Loop] wrap -> [> | `Loop] attrib
val a_low : float_number wrap -> [> | `High] attrib
val a_max : float_number wrap -> [> | `Max] attrib
val a_input_max : float_number wrap -> [> | `Input_Max] attrib
val a_min : float_number wrap -> [> | `Min] attrib
val a_input_min : float_number wrap -> [> | `Input_Min] attrib
val a_novalidate : [< | `Novalidate] wrap -> [> | `Novalidate] attrib
val a_open : [< | `Open] wrap -> [> | `Open] attrib
val a_optimum : float_number wrap -> [> | `Optimum] attrib
val a_pattern : text wrap -> [> | `Pattern] attrib
val a_placeholder : text wrap -> [> | `Placeholder] attrib
val a_poster : Xml.uri wrap -> [> | `Poster] attrib
val a_preload : [< | `None | `Metadata | `Audio] wrap -> [> | `Preload] attrib
val a_pubdate : [< | `Pubdate] wrap -> [> | `Pubdate] attrib
val a_radiogroup : text wrap -> [> | `Radiogroup] attrib
val a_required : [< | `Required] wrap -> [> | `Required] attrib
val a_reversed : [< | `Reversed] wrap -> [> | `Reversed] attrib
val a_sandbox :
[<
| `AllowSameOrigin
| `AllowForms
| `AllowScript
| `AllowPointerLock
| `AllowPopups
| `AllowTopNavigation ] list wrap ->
[> | `Sandbox] attrib
val a_spellcheck : bool wrap -> [> | `Spellcheck] attrib
val a_scoped : [< | `Scoped] wrap -> [> | `Scoped] attrib
val a_seamless : [< | `Seamless] wrap -> [> | `Seamless] attrib
val a_sizes : [< | `Sizes of (number * number) list | `Any] wrap -> [> | `Sizes] attrib
val a_span : number wrap -> [> | `Span] attrib
(** This attribute is deprecated, you should use {! a_xml_lang}. *)
val a_srclang : nmtoken wrap -> [> | `XML_lang] attrib
val a_start : number wrap -> [> | `Start] attrib
val a_step : float_number option wrap -> [> | `Step] attrib
val a_wrap : [< | `Soft | `Hard] wrap -> [> | `Wrap] attrib
val a_class : nmtokens wrap -> [> | `Class] attrib
(** This attribute assigns a class name or set of class names to an
element. Any number of elements may be assigned the same class
name or names. *)
val a_user_data : nmtoken -> text wrap -> [> | `User_data] attrib
(** May be used to specify custom attribs.
The example given by the W3C is as follows :
{v <ol>
<li data-length="2m11s">Beyond The Sea</li>
</ol> v}
It should be used for preprocessing ends only. *)
val a_id : text wrap -> [> | `Id] attrib
(** This attribute assigns a name to an element. This name must be
unique in a document. The text should be without any space. *)
val a_title : text wrap -> [> | `Title] attrib
(** This attribute offers advisory information about the element for
which it is set. *)
(** Values of the title attribute may be rendered by user agents in a
variety of ways. For instance, visual browsers frequently display
the title as a {i tool tip} (a short message that appears when the
pointing device pauses over an object). Audio user agents may
speak the title information in a similar context. *)
(** The title attribute has an additional role when used with the [link]
element to designate an external style sheet. Please consult the
section on links and style sheets for details. *)
(** {2 I18N} *)
val a_xml_lang : languagecode wrap -> [> | `XML_lang] attrib
val a_lang : languagecode wrap -> [> | `Lang] attrib
(** {2 Events} *)
(** Javascript events *)
val a_onabort : Xml.event_handler -> [> | `OnAbort] attrib
val a_onafterprint : Xml.event_handler -> [> | `OnAfterPrint] attrib
val a_onbeforeprint : Xml.event_handler -> [> | `OnBeforePrint] attrib
val a_onbeforeunload : Xml.event_handler -> [> | `OnBeforeUnload] attrib
val a_onblur : Xml.event_handler -> [> | `OnBlur] attrib
val a_oncanplay : Xml.event_handler -> [> | `OnCanPlay] attrib
val a_oncanplaythrough : Xml.event_handler -> [> | `OnCanPlayThrough] attrib
val a_onchange : Xml.event_handler -> [> | `OnChange] attrib
val a_ondurationchange : Xml.event_handler -> [> | `OnDurationChange] attrib
val a_onemptied : Xml.event_handler -> [> | `OnEmptied] attrib
val a_onended : Xml.event_handler -> [> | `OnEnded] attrib
val a_onerror : Xml.event_handler -> [> | `OnError] attrib
val a_onfocus : Xml.event_handler -> [> | `OnFocus] attrib
val a_onformchange : Xml.event_handler -> [> | `OnFormChange] attrib
val a_onforminput : Xml.event_handler -> [> | `OnFormInput] attrib
val a_onhashchange : Xml.event_handler -> [> | `OnHashChange] attrib
val a_oninput : Xml.event_handler -> [> | `OnInput] attrib
val a_oninvalid : Xml.event_handler -> [> | `OnInvalid] attrib
val a_onmousewheel : Xml.event_handler -> [> | `OnMouseWheel] attrib
val a_onoffline : Xml.event_handler -> [> | `OnOffLine] attrib
val a_ononline : Xml.event_handler -> [> | `OnOnLine] attrib
val a_onpause : Xml.event_handler -> [> | `OnPause] attrib
val a_onplay : Xml.event_handler -> [> | `OnPlay] attrib
val a_onplaying : Xml.event_handler -> [> | `OnPlaying] attrib
val a_onpagehide : Xml.event_handler -> [> | `OnPageHide] attrib
val a_onpageshow : Xml.event_handler -> [> | `OnPageShow] attrib
val a_onpopstate : Xml.event_handler -> [> | `OnPopState] attrib
val a_onprogress : Xml.event_handler -> [> | `OnProgress] attrib
val a_onratechange : Xml.event_handler -> [> | `OnRateChange] attrib
val a_onreadystatechange : Xml.event_handler -> [> | `OnReadyStateChange] attrib
val a_onredo : Xml.event_handler -> [> | `OnRedo] attrib
val a_onresize : Xml.event_handler -> [> | `OnResize] attrib
val a_onscroll : Xml.event_handler -> [> | `OnScroll] attrib
val a_onseeked : Xml.event_handler -> [> | `OnSeeked] attrib
val a_onseeking : Xml.event_handler -> [> | `OnSeeking] attrib
val a_onselect : Xml.event_handler -> [> | `OnSelect] attrib
val a_onshow : Xml.event_handler -> [> | `OnShow] attrib
val a_onstalled : Xml.event_handler -> [> | `OnStalled] attrib
val a_onstorage : Xml.event_handler -> [> | `OnStorage] attrib
val a_onsubmit : Xml.event_handler -> [> | `OnSubmit] attrib
val a_onsuspend : Xml.event_handler -> [> | `OnSuspend] attrib
val a_ontimeupdate : Xml.event_handler -> [> | `OnTimeUpdate] attrib
val a_onundo : Xml.event_handler -> [> | `OnUndo] attrib
val a_onunload : Xml.event_handler -> [> | `OnUnload] attrib
val a_onvolumechange : Xml.event_handler -> [> | `OnVolumeChange] attrib
val a_onwaiting : Xml.event_handler -> [> | `OnWaiting] attrib
val a_onload : Xml.event_handler -> [> | `OnLoad] attrib
val a_onloadeddata : Xml.event_handler -> [> | `OnLoadedData] attrib
val a_onloadedmetadata : Xml.event_handler -> [> | `OnLoadedMetaData] attrib
val a_onloadstart : Xml.event_handler -> [> | `OnLoadStart] attrib
val a_onmessage : Xml.event_handler -> [> | `OnMessage] attrib
(** Javascript mouse events *)
val a_onclick : Xml.mouse_event_handler -> [> | `OnClick] attrib
val a_oncontextmenu : Xml.mouse_event_handler -> [> | `OnContextMenu] attrib
val a_ondblclick : Xml.mouse_event_handler -> [> | `OnDblClick] attrib
val a_ondrag : Xml.mouse_event_handler -> [> | `OnDrag] attrib
val a_ondragend : Xml.mouse_event_handler -> [> | `OnDragEnd] attrib
val a_ondragenter : Xml.mouse_event_handler -> [> | `OnDragEnter] attrib
val a_ondragleave : Xml.mouse_event_handler -> [> | `OnDragLeave] attrib
val a_ondragover : Xml.mouse_event_handler -> [> | `OnDragOver] attrib
val a_ondragstart : Xml.mouse_event_handler -> [> | `OnDragStart] attrib
val a_ondrop : Xml.mouse_event_handler -> [> | `OnDrop] attrib
val a_onmousedown : Xml.mouse_event_handler -> [> | `OnMouseDown] attrib
val a_onmouseup : Xml.mouse_event_handler -> [> | `OnMouseUp] attrib
val a_onmouseover : Xml.mouse_event_handler -> [> | `OnMouseOver] attrib
val a_onmousemove : Xml.mouse_event_handler -> [> | `OnMouseMove] attrib
val a_onmouseout : Xml.mouse_event_handler -> [> | `OnMouseOut] attrib
(** Javascript keyboard events *)
val a_onkeypress : Xml.keyboard_event_handler -> [> | `OnKeyPress] attrib
val a_onkeydown : Xml.keyboard_event_handler -> [> | `OnKeyDown] attrib
val a_onkeyup : Xml.keyboard_event_handler -> [> | `OnKeyUp] attrib
val a_version : cdata wrap -> [> | `Version] attrib
val a_xmlns : [< | `W3_org_1999_xhtml] wrap -> [> | `XMLns] attrib
val a_manifest : Xml.uri wrap -> [> | `Manifest] attrib
val a_cite : Xml.uri wrap -> [> | `Cite] attrib
val a_xml_space : [< | `Default | `Preserve] wrap -> [> | `XML_space] attrib
val a_accesskey : character wrap -> [> | `Accesskey] attrib
(** This attribute assigns an access key to an element. An access key
is a single character from the document character
set. NB: authors should consider the input method of the
expected reader when specifying an accesskey. *)
val a_charset : charset wrap -> [> | `Charset] attrib
(** This attribute specifies the character encoding of the resource
designated by the link. Please consult the section on character
encodings for more details. *)
val a_accept_charset : charsets wrap -> [> | `Accept_charset] attrib
val a_accept : contenttypes wrap -> [> | `Accept] attrib
val a_href : Xml.uri wrap -> [> | `Href] attrib
(** This attribute specifies the location of a Web resource, thus
defining a link between the current element (the source anchor)
and the destination anchor defined by this attribute. *)
val a_hreflang : languagecode wrap -> [> | `Hreflang] attrib
(** This attribute specifies the base language of the resource
designated by href and may only be used when href is specified. *)
val a_download : string option wrap -> [> | `Download] attrib
val a_rel : linktypes wrap -> [> | `Rel] attrib
(** This attribute describes the relationship from the current
document to the anchor specified by the href attribute. The
value of this attribute is a space-separated list of link
types. *)
(** This attribute is used to describe a reverse link from the
anchor specified by the href attribute to the current
document. The value of this attribute is a space-separated
list of link types. *)
val a_tabindex : number wrap -> [> | `Tabindex] attrib
(** This attribute specifies the position of the current
element in the tabbing order for the current document. This
value must be a number between 0 and 32767. User agents
should ignore leading zeros. *)
val a_mime_type : contenttype wrap -> [> | `Mime_type] attrib
(** This attribute gives an advisory hint as to the content type
of the content available at the link target address. It
allows user agents to opt to use a fallback mechanism rather
than fetch the content if they are advised that they will
get content in a content type they do not support.Authors
who use this attribute take responsibility to manage the
risk that it may become inconsistent with the content
available at the link target address. *)
val a_datetime : cdata wrap -> [> | `Datetime] attrib
val a_action : Xml.uri wrap -> [> | `Action] attrib
(** This attribute specifies a form processing agent. User agent
behavior for a value other than an HTTP URI is undefined. *)
val a_checked : [< | `Checked] wrap -> [> | `Checked] attrib
(** When the [type] attribute has the value ["radio"] or
["checkbox"], this boolean attribute specifies that the
button is on. User agents must ignore this attribute for
other control types. *)
val a_cols : number wrap -> [> | `Cols] attrib
(** This attribute specifies the visible width in average
character widths. Users should be able to enter longer lines
than this, so user agents should provide some means to
scroll through the contents of the control when the contents
extend beyond the visible area. User agents may wrap visible
text lines to keep long lines visible without the need for
scrolling. *)
val a_enctype : contenttype wrap -> [> | `Enctype] attrib
val a_for : idref wrap -> [> | `For] attrib
val a_for_list : idrefs wrap -> [> | `For_List] attrib
val a_maxlength : number wrap -> [> | `Maxlength] attrib
val a_method :
[< | `Get | `Post | `Put | `Delete] wrap -> [> | `Method] attrib
val a_multiple : [< | `Multiple] wrap -> [> | `Multiple] attrib
val a_name : text wrap -> [> | `Name] attrib
(** This attribute assigns the control name. *)
val a_rows : number wrap -> [> | `Rows] attrib
(** This attribute specifies the number of visible text
lines. Users should be able to enter more lines than this,
so user agents should provide some means to scroll through
the contents of the control when the contents extend beyond
the visible area. *)
val a_selected : [< | `Selected] wrap -> [> | `Selected] attrib
(** When set, this boolean attribute specifies that
this option is pre-selected. *)
val a_size : number wrap -> [> | `Size] attrib
val a_src : Xml.uri wrap -> [> | `Src] attrib
val a_input_type : [<
| `Url
| `Tel
| `Text
| `Time
| `Search
| `Password
| `Checkbox
| `Range
| `Radio
| `Submit
| `Reset
| `Number
| `Hidden
| `Month
| `Week
| `File
| `Email
| `Image
| `Datetime_local
| `Datetime
| `Date
| `Color
| `Button] wrap -> [> | `Input_Type] attrib
val a_text_value : text wrap -> [> | `Text_Value] attrib
(** This attribute specifies the initial value of the
control. If this attribute is not set, the initial value is
set to the contents of the [option] element. *)
val a_int_value : number wrap -> [> | `Int_Value] attrib
(*VVV NO *)
val a_value : cdata wrap -> [> | `Value] attrib
val a_float_value : float_number wrap -> [> | `Float_Value] attrib
val a_disabled : [< | `Disabled] wrap -> [> | `Disabled] attrib
val a_readonly : [< | `ReadOnly] wrap -> [> | `ReadOnly] attrib
val a_button_type :
[< | `Button | `Submit | `Reset] wrap -> [> | `Button_Type] attrib
val a_command_type :
[< | `Command | `Checkbox | `Radio] wrap -> [> | `Command_Type] attrib
val a_menu_type : [< | `Context | `Toolbar] wrap -> [> | `Menu_Type] attrib
val a_label : text wrap -> [> | `Label] attrib
val a_align :
[< | `Left | `Right | `Justify | `Char] wrap -> [> | `Align] attrib
val a_axis : cdata wrap -> [> | `Axis] attrib
val a_colspan : number wrap -> [> | `Colspan] attrib
val a_headers : idrefs wrap -> [> | `Headers] attrib
val a_rowspan : number wrap -> [> | `Rowspan] attrib
val a_scope :
[< | `Row | `Col | `Rowgroup | `Colgroup] wrap -> [> | `Scope] attrib
val a_summary : text wrap -> [> | `Summary] attrib
val a_border : pixels wrap -> [> | `Border] attrib
val a_cellpadding : length wrap -> [> | `Cellpadding] attrib
val a_cellspacing : length wrap -> [> | `Cellspacing] attrib
val a_datapagesize : cdata wrap -> [> | `Datapagesize] attrib
val a_rules :
[< | `None | `Groups | `Rows | `Cols | `All] wrap -> [> | `Rules] attrib
val a_char : character wrap -> [> | `Char] attrib
val a_charoff : length wrap -> [> | `Charoff] attrib
val a_alt : text wrap -> [> | `Alt] attrib
val a_height : number wrap -> [> | `Height] attrib
val a_width : number wrap -> [> | `Width] attrib
type shape = [ | `Rect | `Circle | `Poly | `Default ]
val a_shape : shape wrap -> [> | `Shape] attrib
val a_coords : numbers wrap -> [> | `Coords] attrib
val a_usemap : idref wrap -> [> | `Usemap] attrib
val a_data : Xml.uri wrap -> [> | `Data] attrib
val a_codetype : contenttype wrap -> [> | `Codetype] attrib
val a_fs_rows : multilengths wrap -> [> | `FS_Rows] attrib
val a_fs_cols : multilengths wrap -> [> | `FS_Cols] attrib
val a_frameborder : [< | `Zero | `One] wrap -> [> | `Frameborder] attrib
val a_marginheight : pixels wrap -> [> | `Marginheight] attrib
val a_marginwidth : pixels wrap -> [> | `Marginwidth] attrib
val a_scrolling : [< | `Yes | `No | `Auto] wrap -> [> | `Scrolling] attrib
val a_target : frametarget wrap -> [> | `Target] attrib
val a_content : text wrap -> [> | `Content] attrib
val a_http_equiv : text wrap -> [> | `Http_equiv] attrib
val a_defer : [< | `Defer] wrap -> [> | `Defer] attrib
val a_media : mediadesc wrap -> [> | `Media] attrib
val a_style : string wrap -> [> | `Style_Attr] attrib
val a_property : string wrap -> [> | `Property] attrib
(** {1 Phantom types and XML elements} *)
type +'a elt
type ('a, 'b) nullary = ?a: (('a attrib) list) -> unit -> 'b elt
type ('a, 'b, 'c) unary = ?a: (('a attrib) list) -> 'b elt wrap -> 'c elt
type ('a, 'b, 'c) star =
?a: (('a attrib) list) -> ('b elt) list_wrap -> 'c elt
(** Star '*' denotes any number of children, uncluding zero. *)
(** Root element *)
type html = [ | `Html ] elt
(** {1 Combined Element Sets:} *)
(********************************)
(* If the document is an *)
(* iframe srcdoc document or if*)
(*title information is available*)
(*from a higher-level protocol: *)
(* Zero or more elements of *)
(* metadata content. *)
(*Otherwise: *)
(* One or more elements of *)
(* metadata content, of which *)
(*exactly one is a title element*)
(********************************)
val html :
?a: ((html_attrib attrib) list) ->
[< | `Head] elt wrap -> [< | `Body] elt wrap -> [> | `Html] elt
val head :
?a: ((head_attrib attrib) list) ->
[< | `Title] elt wrap -> (head_content_fun elt) list_wrap -> [> | head] elt
val base : ([< | base_attrib], [> | base]) nullary
val title : (title_attrib, [< | title_content_fun], [> | title]) unary
val body : ([< | body_attrib], [< | body_content_fun], [> | body]) star
val svg : ?a : [< svg_attrib ] Svg.attrib list -> [< svg_content ] Svg.elt list_wrap -> [> svg ] elt
(** {2 Section} *)
val footer :
([< | common], [< | flow5_without_header_footer], [> | `Footer]) star
val header :
([< | common], [< | flow5_without_header_footer], [> | `Header]) star
val section :
([< | section_attrib], [< | section_content_fun], [> | section]) star
val nav : ([< | nav_attrib], [< | nav_content_fun], [> | nav]) star
val h1 : ([< | h1_attrib], [< | h1_content_fun], [> | h1]) star
val h2 : ([< | h2_attrib], [< | h2_content_fun], [> | h2]) star
val h3 : ([< | h3_attrib], [< | h3_content_fun], [> | h3]) star
val h4 : ([< | h4_attrib], [< | h4_content_fun], [> | h4]) star
val h5 : ([< | h5_attrib], [< | h5_content_fun], [> | h5]) star
val h6 : ([< | h6_attrib], [< | h6_content_fun], [> | h6]) star
(* theoretically a plus, simplified into star *)
val hgroup :
([< | hgroup_attrib], [< | hgroup_content_fun], [> | hgroup]) star
val address :
([< | address_attrib], [< | address_content_fun], [> | address]) star
val article :
([< | article_attrib], [< | article_content_fun], [> | article]) star
val aside :
([< | aside_attrib], [< | aside_content_fun], [> | aside]) star
(** {2 Grouping content} *)
val p : ([< | p_attrib], [< | p_content_fun], [> | p]) star
val pre : ([< | pre_attrib], [< | pre_content_fun], [> | pre]) star
val blockquote :
([< | blockquote_attrib], [< | blockquote_content_fun], [> | blockquote
]) star
val div : ([< | div_attrib], [< | div_content_fun], [> | div]) star
(********************************)
(* In Dl *)
(********************************)
(* Zero or more groups each *)
(* consisting of *)
(* one or more dt element *)
(* followed by *)
(* one or more dd elements*)
(********************************)
(* theoretically
val dl :
?a: (([< | common] attrib) list) ->
((([< | `Dt] elt) * (([< | `Dt] elt) list)) *
(([< | `Dd] elt) * (([< | `Dd] elt) list))) list wrap -> [> | `Dl] elt
but we simplify into star *)
val dl : ([< | dl_attrib], [< | dl_content_fun], [> | dl]) star
val ol : ([< | ol_attrib], [< | ol_content_fun], [> | ol]) star
val ul : ([< | ul_attrib], [< | ul_content_fun], [> | ul]) star
val dd : ([< | dd_attrib], [< | dd_content_fun], [> | dd]) star
val dt : ([< | dt_attrib], [< | dt_content_fun], [> | dt]) star
(********************************)
(* In Li *)
(********************************)
(* Only if the element is a *)
(* child of an ol element: *)
(* value attribute *)
(********************************)
(** A list element.
The 'a type is used to know whether the element has
a int_value attribute or not. *)
val li : ([< | li_attrib], [< | li_content_fun], [> | li]) star
val figcaption :
([< | figcaption_attrib], [< | figcaption_content_fun], [> | figcaption]) star
(********************************)
(* In Figure *)
(********************************)
(*Either: One figcaption element*)
(* followed by flow content.*)
(*Or: Flow content followed by *)
(* one figcaption element. *)
(*Or: Flow content. *)
(********************************)
val figure :
?figcaption: ([`Top of [< `Figcaption ] elt wrap | `Bottom of [< `Figcaption ] elt wrap ]) ->
([< | figure_attrib], [< | figure_content_fun], [> | figure]) star
val hr : ([< | hr_attrib], [> | hr]) nullary
(** {2 Ruby} *)
(**********************************)
(* In Ruby *)
(**********************************)
(* One or more groups of: *)
(*phrasing content followed either*)
(* by a single rt element, *)
(* or an rp element *)
(* an rt element, and *)
(* another rp element. *)
(**********************************)
(* simplified with simple stars *)
val rt : ([< | rt_attrib], [< | rt_content_fun], [> | rt]) star
val rp : ([< | rp_attrib], [< | rp_content_fun], [> | rp]) star
val ruby : ([< | ruby_attrib], [< | ruby_content_fun], [> | ruby]) star
(** {2 Semantic} *)
val b : ([< | b_attrib], [< | b_content_fun], [> | b]) star
val i : ([< | i_attrib], [< | i_content_fun], [> | i]) star
val u : ([< | u_attrib], [< | u_content_fun], [> | u]) star
val small :
([< | small_attrib], [< | small_content_fun], [> | small]) star
val sub : ([< | sub_attrib], [< | sub_content_fun], [> | sub]) star
val sup : ([< | sup_attrib], [< | sup_content_fun], [> | sup]) star
val mark : ([< | mark_attrib], [< | mark_content_fun], [> | mark]) star
val wbr : ([< | wbr_attrib], [> | wbr]) nullary
val bdo :
dir: [< | `Ltr | `Rtl] wrap ->
([< | common], [< | phrasing], [> | `Bdo]) star
val abbr : ([< | abbr_attrib], [< | abbr_content_fun], [> | abbr]) star
val br : ([< | br_attrib], [> | br]) nullary
val cite : ([< | cite_attrib], [< | cite_content_fun], [> | cite]) star
val code : ([< | code_attrib], [< | code_content_fun], [> | code]) star
val dfn : ([< | dfn_attrib], [< | dfn_content_fun], [> | dfn]) star
val em : ([< | em_attrib], [< | em_content_fun], [> | em]) star
val kbd : ([< | kbd_attrib], [< | kbd_content_fun], [> | kbd]) star
val q : ([< | q_attrib], [< | q_content_fun], [> | q]) star
val samp : ([< | samp_attrib], [< | samp_content_fun], [> | samp]) star
val span : ([< | span_attrib], [< | span_content_fun], [> | span]) star
val strong :
([< | strong_attrib], [< | strong_content_fun], [> | strong]) star
val time : ([< | time_attrib], [< | time_content_fun], [> | time]) star
val var : ([< | var_attrib], [< | var_content_fun], [> | var]) star
(** {2 Hypertext} *)
(********************************)
(* In A *)
(********************************)
(* The target, rel, media, *)
(* hreflang, and type attributes*)
(* must be omitted if the href *)
(* attribute is not present. *)
(********************************)
(*Only phasing instead of flow ?*)
(********************************)
(* a's children are transparents*)
(********************************)
val a : ([< | a_attrib], 'a, [> | `A of 'a]) star
(** {2 Edit} *)
(**********************************)
(* del's children are transparents*)
(**********************************)
val del : ([< | del_attrib], 'a, [> | `Del of 'a]) star
(**********************************)
(* ins's children are transparents*)
(**********************************)
val ins : ([< | ins_attrib], 'a, [> | `Ins of 'a]) star
(** {2 Embedded} *)
val img :
src: Xml.uri wrap ->
alt: text wrap ->
([< img_attrib], [> img]) nullary
val iframe : (*| `Srcdoc*)
([< | common | `Src | `Name | `Sandbox | `Seamless | `Width | `Height],
[< | `PCDATA], [> | `Iframe]) star
val object_ :
?params: (([< | `Param] elt) list_wrap ) ->
([<
| common
| `Data
| `Form
| `Mime_type
| `Height
| `Width
| `Name
| `Usemap
], 'a, [> | `Object of 'a ]) star
val param : ([< | param_attrib], [> | param]) nullary
(**********************************)
(* In Embed *)
(**********************************)
(* Any namespace-less attribute *)
(* other than name, align, hspace,*)
(* and vspace may be specified on*)
(* the embed element, so long as *)
(* its name is XML-compatible and *)
(* contains no characters in the *)
(* range U+0041 to U+005A *)
(*(LATIN CAPITAL LETTER A to LATIN*)
(*CAPITAL LETTER Z). *)
(*These attributes are then passed*)
(* as parameters to the plugin. *)
(**********************************)
val embed :
([< | common | `Src | `Height | `Mime_type | `Width], [> | `Embed])
nullary
(**************************************)
(* In Audio and Video *)
(**************************************)
(* If the element has a src attribute:*)
(* transparent, but with no media *)
(* element descendants. *)
(* If the element does not have a src *)
(* attribute: *)
(* one or more source elements, then*)
(* transparent, but with no media *)
(* element descendants. *)
(**************************************)
val audio :
?src:Xml.uri wrap ->
?srcs:(([< | source] elt) list_wrap) ->
([< | audio_attrib], 'a, [> 'a audio ]) star
val video :
?src:Xml.uri wrap ->
?srcs: (([< | source] elt) list_wrap) ->
([< | video_attrib], 'a, [> 'a video]) star
val canvas : ([< | canvas_attrib], 'a, [> | 'a canvas]) star
val source : ([< | source_attrib], [> | source]) nullary
(********************************)
(* In Area *)
(********************************)
(* The alt, target, rel, media, *)
(* hreflang, and type attributes*)
(* must be omitted if the href *)
(* attribute is not present. *)
(********************************)
val area :
alt: text wrap ->
([<
| common
| `Alt
| `Coords
| `Shape
| `Target
| `Rel
| `Media
| `Hreflang
| `Mime_type
], [> | `Area]) nullary
(* XXX: SC : the current system doesn't allow
to put <area> tag inside a map (a priori) *)
(* theoretically a plus, simplified into star *)
val map : ([< | map_attrib], 'a, [> | `A of 'a]) star
(** {2 Tables Data} *)
val caption :
([< | caption_attrib], [< | caption_content_fun], [> | caption]) star
(********************************)
(* In Table and Tablex *)
(********************************)
(* In this order: *)
(* optionally a caption element,*)
(* followed by either *)
(*zero or more colgroup elements*)
(* followed optionally by a *)
(*thead element, *)
(* followed optionally by a *)
(*tfoot element, *)
(* followed by either *)
(*zero or more tbody elements *)
(*or one or more tr elements, *)
(* followed optionally by *)
(*a tfoot element *)
(********************************)
(* BUT ONLY ONE FOOT ELEMENT *)
(* CHILD IN TOTAL *)
(********************************)
(* theoretically a plus, simplified into star *)
val table :
?caption: [< | caption] elt wrap ->
?columns: [< | colgroup] elt list_wrap ->
?thead: [< | thead] elt wrap ->
?tfoot: [< | tfoot] elt wrap ->
([< | table_attrib], [< | table_content_fun], [> | table]) star
val tablex :
?caption: [< | caption] elt wrap ->
?columns: [< | colgroup] elt list_wrap ->
?thead: [< | thead] elt wrap ->
?tfoot: [< | tfoot] elt wrap ->
([< | tablex_attrib], [< | tablex_content_fun], [> | tablex]) star
(********************************)
(* In Colgroup *)
(********************************)
(* If span attribute is: *)
(* -present: Empty. *)
(* -absent: Zero or more *)
(* col elements. *)
(********************************)
val colgroup :
([< | colgroup_attrib], [< | colgroup_content_fun], [> | colgroup]) star
val col : ([< | col_attrib], [> | col]) nullary
val thead :
([< | thead_attrib], [< | thead_content_fun], [> | thead]) star
val tbody :
([< | tbody_attrib], [< | tbody_content_fun], [> | tbody]) star
val tfoot :
([< | tfoot_attrib], [< | tfoot_content_fun], [> | tfoot]) star
val td : ([< | td_attrib], [< | td_content_fun], [> | td]) star
val th : ([< | th_attrib], [< | th_content_fun], [> | th]) star
(****************************************)
(* In Tr *)
(****************************************)
(*If the parent node is a thead element:*)
(* Zero or more th elements *)
(* Otherwise: *)
(* Zero or more td or th elements *)
(****************************************)
val tr : ([< | tr_attrib], [< | tr_content_fun], [> | tr]) star
(** {2 Forms} *)
(* theoretically a plus, simplified into star *)
val form : ([< | form_attrib], [< | form_content_fun], [> | form]) star
val fieldset :
?legend: [ | `Legend ] elt wrap ->
([< | common | `Disabled | `Form | `Name], [< | flow5],
[> | `Fieldset]) star
val legend :
([< | legend_attrib], [< | legend_content_fun], [> | legend]) star
(** Label authorizes only one control inside them
that should be labelled with a [for] attribute
(although it is not necessary). Such constraints are not currently
enforced by the type-system *)
val label :
([< | label_attrib], [< | label_content_fun], [> | label]) star
(** If the [type] attribute is not "hidden", must be considered
as interactive. Distinction not made for now. *)
val input : ([< | input_attrib], [> | input]) nullary
(********************************)
(* In Button *)
(********************************)
(* The formaction, formenctype, *)
(* formmethod, formnovalidate, *)
(* and formtarget must not be *)
(* specified if the element's *)
(* type attribute is not in the*)
(* Submit Button state. *)
(********************************)
val button :
([< | button_attrib], [< | button_content_fun], [> | button]) star
val select :
([< | select_attrib], [< | select_content_fun], [> | select]) star
val datalist :
?children:(
[<
| `Options of ([< | `Option] elt) list_wrap
| `Phras of ([< | phrasing] elt) list_wrap
]) -> ([< | common], [> | `Datalist]) nullary
val optgroup :
label: text wrap ->
([< | common | `Disabled | `Label], [< | `Option], [> | `Optgroup]) star
val option :
([< | option_attrib], [< | option_content_fun], [> | selectoption]) unary
val textarea :
([< | textarea_attrib], [< | textarea_content_fun], [> | textarea]) unary
val keygen : ([< | keygen_attrib], [> | keygen]) nullary
val progress :
([< | progress_attrib], [< | progress_content_fun], [> | progress]) star
val meter :
([< | meter_attrib], [< | meter_content_fun], [> | meter]) star
val output_elt :
([< | output_elt_attrib], [< | output_elt_content_fun], [> | output_elt]) star
(** {2 Data} *)
val pcdata : string wrap -> [> | `PCDATA] elt
val entity : string -> [> | `PCDATA] elt
val space : unit -> [> | `PCDATA] elt
val cdata : string -> [> | `PCDATA] elt
(* GK *)
val cdata_script : string -> [> | `PCDATA] elt
(* GK *)
val cdata_style : string -> [> | `PCDATA] elt
(** {2 Interactive} *)
val details :
[< | `Summary] elt wrap ->
([< | common | `Open], [< | flow5], [> | `Details]) star
val summary :
([< | summary_attrib], [< | summary_content_fun], [> | summary]) star
val command :
label: text wrap ->
([<
| common
| `Icon
| `Disabled
| `Checked
| `Radiogroup
| `Command_Type
], [> | `Command]) nullary
val menu :
?child:(
[<
| `Lis of ([< | `Li of [< | common]] elt) list_wrap
| `Flows of ([< | flow5] elt) list_wrap
]) -> ([< | common | `Label | `Menu_Type], [> | `Menu]) nullary
(** {2 Scripting} *)
val script :
([< | script_attrib], [< | script_content_fun], [> | script]) unary
(****************************************************)
(* In Noscript *)
(****************************************************)
(*When scripting is DISABLED, IN a HEAD element: *)
(* in any order, zero or more link elements, *)
(* zero or more style elements, and zero or more *)
(* meta elements. *)
(*When scripting is DISABLED, NOT IN a HEAD element:*)
(* transparent, but there must be no noscript *)
(* element descendants. *)
(*When scripting is ENABLED, IN a HEAD element: *)
(* only text, except that invoking the HTML *)
(* fragment parsing algorithm with the noscript *)
(* element as the context element and the text *)
(* contents as the input must result in a list of *)
(* nodes that consists only of link, style, and *)
(* meta elements that would be conforming if they *)
(* were children of the noscript element, and no *)
(* parse errors. *)
(*When scripting is ENABLED, NOT IN a HEAD element: *)
(* only text, except that the text must be such *)
(* that running the following algorithm results in*)
(* a conforming document with no noscript elements*)
(* and no script elements, and such that no step *)
(* in the algorithm causes an HTML parser to flag *)
(* a parse error *)
(****************************************************)
(* PLUS ?? simplified into star *)
val noscript :
([< | noscript_attrib], [< | noscript_content_fun], [> | noscript])
star
val meta : ([< | meta_attrib], [> | meta]) nullary
(** {2 Style Sheets} *)
(*********************************)
(* In Style *)
(*********************************)
(* the content model depends on *)
(*the value of the type attribute*)
(*********************************)
(* BUT WHAT ??? *)
(* SC: contenttype defaults to *)
(* text/css *)
(*********************************)
val style :
([< | style_attrib], [< | style_content_fun], [> | style]) star
(** {2 Link} *)
val link :
rel: linktypes wrap ->
href: Xml.uri wrap ->
([<
| common
| `Hreflang
| `Media
| `Rel
| `Href
| `Sizes
| `Mime_type
], [> | `Link]) nullary
(** {1 Tools} *)
val tot : Xml.elt -> 'a elt
val totl : Xml.elt list -> ('a elt) list
val toelt : 'a elt -> Xml.elt
val toeltl : ('a elt) list -> Xml.elt list
(** *)
type doc = [ `Html ] elt
val doc_toelt : doc -> Xml.elt
module Unsafe : sig
(** Unsafe features. Warning using this module can break
HTML5 validity and may introduce security problems like
code injection.
Use it with care.
*)
(** Insert raw text without any encoding *)
val data : string wrap -> 'a elt
(** Insert an XML node that is not implemented in this module.
If it is a standard HTML5 node which is missing,
please report to the Ocsigen team.
*)
val node : string -> ?a:'a attrib list -> 'b elt list_wrap -> 'c elt
(** Insert an XML node without children
that is not implemented in this module.
If it is a standard HTML5 node which is missing,
please report to the Ocsigen team.
*)
val leaf : string -> ?a:'a attrib list -> unit -> 'b elt
(** Remove phantom type annotation on an element,
to make it usable everywhere.
*)
val coerce_elt : 'a elt -> 'b elt
(** Insert an attribute that is not implemented in this module.
If it is a standard HTML5 attribute which is missing,
please report to the Ocsigen team.
*)
val string_attrib : string -> string wrap -> 'a attrib
(** Same, for float attribute *)
val float_attrib : string -> float wrap -> 'a attrib
(** Same, for int attribute *)
val int_attrib : string -> int wrap -> 'a attrib
(** Same, for URI attribute *)
val uri_attrib : string -> uri wrap -> 'a attrib
(** Same, for a space separated list of values *)
val space_sep_attrib : string -> string list wrap -> 'a attrib
(** Same, for a comma separated list of values *)
val comma_sep_attrib : string -> string list wrap -> 'a attrib
end
end
(** {2 Signature functors} *)
(** See {% <<a_manual chapter="functors"|the manual of the functorial interface>> %}. *)
(** Signature functor for {!Html5_f.MakeWrapped}. *)
module MakeWrapped
(W : Xml_wrap.T)
(Xml : Xml_sigs.Wrapped)
(Svg : Svg_sigs.T with module Xml := Xml) :
sig
(** See {!modtype:Html5_sigs.T}. *)
module type T = T
with type Xml.uri = Xml.uri
and type Xml.event_handler = Xml.event_handler
and type Xml.mouse_event_handler = Xml.mouse_event_handler
and type Xml.keyboard_event_handler = Xml.keyboard_event_handler
and type Xml.attrib = Xml.attrib
and type Xml.elt = Xml.elt
and module Svg := Svg
and type 'a Xml.wrap = 'a W.t
and type 'a wrap = 'a W.t
and type 'a Xml.list_wrap = 'a W.tlist
and type 'a list_wrap = 'a W.tlist
end
(** Signature functor for {!Html5_f.Make}. *)
module Make
(Xml : Xml_sigs.T)
(Svg : Svg_sigs.T with module Xml := Xml) :
sig
(** See {!modtype:Html5_sigs.MakeWrapped} and {!modtype:Html5_sigs.T}. *)
module type T = MakeWrapped(Xml_wrap.NoWrap)(Xml)(Svg).T
end
|