package tyxml

  1. Overview
  2. Docs
A library for building correct HTML and SVG documents

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tyxml-5.0.0.tbz
sha256=c725bb8918ff1b601e7926b7b6b4799f8f4ab70f5fba9f0970da657cb82c07f2
sha512=61881aa7101b5072b887802e78897920516c9c2b484d51ac281509e83c79969c7654caa31b125ad843b45740dfe143ed5218fd7e4d98dfba8e0b24b272308ed6

doc/tyxml.functor/Html_types/index.html

Module Html_types

HTML types with variants, goes with Html_sigs.T.

Attribute types.

type cdata = string

Character data

type id = string

A document-unique identifier

type idref = string

A reference to a document-unique identifier

type idrefs = idref list

A space-separated list of references to document-unique identifiers

type name = string

A name with the same character constraints as ID above

type nmtoken = string

A name composed of only name tokens as defined in XML 1.0

type nmtokens = nmtoken list

One or more whitespace-separated NMTOKEN values

Data Types

type character = char

A single character from ISO 10646.

type charset = string

A character encoding, as per RFC2045 (MIME).

type charsets = charset list

A space-separated list of character encodings, as per RFC2045 (MIME).

type contenttype = string

A media type, as per RFC2045 (MIME).

type contenttypes = contenttype list

A comma-separated list of media types, as per RFC2045 (MIME).

type number = int
type numbers = number list
type coords = string list

Comma- separated list of coordinates to use in defining areas.

type datetime = string

Date and time information.

type number_or_datetime = [
  1. | `Number of number
  2. | `Datetime of datetime
]

Either a number or date and time information.

type fpi = string

A character string representing an SGML Formal Public Identifier.

type frametarget = string

Frame name used as destination for results of certain actions.

type languagecode = string

A language code, as per RFC5646/BCP47.

type linktype = [
  1. | `Alternate
  2. | `Archives
  3. | `Author
  4. | `Bookmark
  5. | `Canonical
  6. | `Dns_prefetch
  7. | `External
  8. | `First
  9. | `Help
  10. | `Icon
  11. | `Index
  12. | `Last
  13. | `License
  14. | `Manifest
  15. | `Me
  16. | `Modulepreload
  17. | `Next
  18. | `Nofollow
  19. | `Noopener
  20. | `Noreferrer
  21. | `Opener
  22. | `Pingback
  23. | `Preconnect
  24. | `Prefetch
  25. | `Prev
  26. | `Preload
  27. | `Prerender
  28. | `Search
  29. | `Stylesheet
  30. | `Sidebar
  31. | `Tag
  32. | `Up
  33. | `Other of string
]
type linktypes = linktype list

Authors may use the following recognized link types, listed here with their conventional interpretations. A LinkTypes value refers to a space-separated list of link types. White space characters are not permitted within link types. These link types are case-insensitive, i.e., "Alternate" has the same meaning as "alternate".

User agents, search engines, etc. may interpret these link types in a variety of ways. For example, user agents may provide access to linked documents through a navigation bar.

  • `Alternate: Gives alternate representations of the current document.
  • `Archives: Provides a link to a collection of records, documents, or other materials of historical interest.
  • `Author: Gives a link to the current document's author.
  • `Bookmark: Gives the permalink for the nearest ancestor section.
  • `Canonical: Gives the preferred location for accessing the current document.
  • `Dns_prefetch: Specifies that the user agent should preemptively perform DNS resolution for the target resource's origin..
  • `External: Indicates that the referenced document is not part of the same site as the current document.
  • `First: Indicates that the current document is a part of a series, and that the first document in the series is the referenced document.
  • `Help: Provides a link to context-sensitive help.
  • `Icon: Imports an icon to represent the current document.
  • `Index: Gives a link to the document that provides a table of contents or index listing the current document.
  • `Last: Indicates that the current document is a part of a series, and that the last document in the series is the referenced document.
  • `Licence: Indicates that the main content of the current document is covered by the copyright license described by the referenced document.
  • `Manifest: Imports or links to an application manifest.
  • `Me: Indicates that the current document represents the person who owns the linked content.
  • `Modulepreload: Specifies that the user agent must preemptively fetch the module script and store it in the document's module map for later evaluation. Optionally, the module's dependencies can be fetched as well.
  • `Next: Indicates that the current document is a part of a series, and that the next document in the series is the referenced document.
  • `Nofollow: Indicates that the current document's original author or publisher does not endorse the referenced document.
  • `Noopener: Instructs the browser to open the link without granting the new browsing context access to the document that opened it.
  • `Noreferrer: Requires that the user agent not send an HTTP Referer (sic) header if the user follows the hyperlink.
  • `Opener: Creates an auxiliary browsing context if the hyperlink would otherwise create a top-level traversable with a non-auxiliary browsing context (i.e., has "_blank" as target attribute value).
  • `Pingback: Gives the address of the pingback server that handles pingbacks to the current document.
  • `Preconnect: Specifies that the user agent should preemptively connect to the target resource's origin.
  • `Prefetch: Specifies that the target resource should be preemptively cached.
  • `Preload: Specifies that the user agent must preemptively fetch and cache the target resource for current navigation according to the potential destination given by the as attribute (and the priority associated with the corresponding destination).
  • `Prerender: Specifies that the user agent should preemptively fetch the target resource and process it in a way that helps deliver a faster response in the future.
  • `Prev: Indicates that the current document is a part of a series, and that the previous document in the series is the referenced document.
  • `Search: Gives a link to a resource that can be used to search through the current document and its related pages.
  • `Stylesheet: Imports a stylesheet.
  • `Sidebar: Specifies that the referenced document, if retrieved, is intended to be shown in the browser's sidebar (if it has one).
  • `Tag: Gives a tag (identified by the given address) that applies to the current document.
  • `Up: Provides a link to a document giving the context for the current document.
type mediadesc_token = [
  1. | `All
  2. | `Aural
  3. | `Braille
  4. | `Embossed
  5. | `Handheld
  6. | `Print
  7. | `Projection
  8. | `Screen
  9. | `Speech
  10. | `Tty
  11. | `Tv
  12. | `Raw_mediadesc of string
]
type mediadesc = mediadesc_token list

The MediaDesc attribute is a comma-separated list of media descriptors. The following is a list of recognized media descriptors:

  • `Screen: For non-paged computer screens.
  • `TTY: For media using a fixed-pitch character grid (like teletypes, terminals, or devices with limited display capabilities).
  • `TV: For TV-type devices (low resolution, limited scrollability).
  • `Projection: For projectors.
  • `Handheld: For handheld devices (small screen, limited bandwidth).
  • `Print: For paged and for documents viewed on screen in print preview mode.
  • `Braille: For braille tactile feedback devices.
  • `Aural: For speech synthesizers.
  • `All: For speech synthesizers.
  • `Raw_mediadesc: For more complex (untyped) media descriptors.
type float_number = float
type pixels = int

The value is an integer that represents the number of pixels of the canvas (screen, paper). Thus, the value "50" means fifty pixels. For normative information about the definition of a pixel, please consult CSS2.

type script_ = string

Script data can be the content of the "script" element and the value of intrinsic event attributes. User agents must not evaluate script data as HTML markup but instead must pass it on as data to a script engine.

The case-sensitivity of script data depends on the scripting language.

Please note that script data that is element content may not contain character references, but script data that is the value of an attribute may contain them.

type text = string

Arbitrary textual data, likely meant to be human-readable.

Core

type i18n = [
  1. | `XML_lang
  2. | `Lang
]
type core = [
  1. | `Accesskey
  2. | `Autocapitalize
  3. | `Autocorrect
  4. | `Class
  5. | `Contenteditable
  6. | `Contextmenu
  7. | `Dir
  8. | `Draggable
  9. | `Enterkeyhint
  10. | `Exportparts
  11. | `Hidden
  12. | `Id
  13. | `Inert
  14. | i18n
  15. | `Is
  16. | `Itemid
  17. | `Itemprop
  18. | `Itemref
  19. | `Itemscope
  20. | `Itemtype
  21. | `Nonce
  22. | `Part
  23. | `Popover
  24. | `Slot
  25. | `Spellcheck
  26. | `Style_Attr
  27. | `Tabindex
  28. | `Translate
  29. | `Title
  30. | `User_data
  31. | `Writingsuggestions
  32. | `XMLns
]

Events

type events = [
  1. | `OnAbort
  2. | `OnAuxClick
  3. | `OnBeforeInput
  4. | `OnBeforeMatch
  5. | `OnBeforeToggle
  6. | `OnBlur
  7. | `OnCancel
  8. | `OnCanPlay
  9. | `OnCanPlayThrough
  10. | `OnChange
  11. | `OnClick
  12. | `OnClose
  13. | `OnContextMenu
  14. | `OnContextLost
  15. | `OnContextRestored
  16. | `OnCopy
  17. | `OnCut
  18. | `OnCueChange
  19. | `OnDblClick
  20. | `OnDrag
  21. | `OnDragEnd
  22. | `OnDragEnter
  23. | `OnDragLeave
  24. | `OnDragOver
  25. | `OnDragStart
  26. | `OnDrop
  27. | `OnDurationChange
  28. | `OnEmptied
  29. | `OnEnded
  30. | `OnError
  31. | `OnFocus
  32. | `OnFormChange
  33. | `OnFormInput
  34. | `OnInput
  35. | `OnInvalid
  36. | `OnMouseDown
  37. | `OnMouseUp
  38. | `OnMouseOver
  39. | `OnMouseMove
  40. | `OnMouseOut
  41. | `OnMouseWheel
  42. | `OnWheel
  43. | `OnPointerCancel
  44. | `OnPointerDown
  45. | `OnPointerEnter
  46. | `OnPointerLeave
  47. | `OnPointerMove
  48. | `OnPointerOut
  49. | `OnPointerOver
  50. | `OnPointerUp
  51. | `OnGotPointerCapture
  52. | `OnLostPointerCapture
  53. | `OnPaste
  54. | `OnPause
  55. | `OnPlay
  56. | `OnPlaying
  57. | `OnProgress
  58. | `OnRateChange
  59. | `OnReadyStateChange
  60. | `OnScroll
  61. | `OnScrollEnd
  62. | `OnSecurityPolicyViolation
  63. | `OnSeeked
  64. | `OnSeeking
  65. | `OnSelect
  66. | `OnShow
  67. | `OnSlotChange
  68. | `OnStalled
  69. | `OnSubmit
  70. | `OnSuspend
  71. | `OnTimeUpdate
  72. | `OnToggle
  73. | `OnTouchStart
  74. | `OnTouchEnd
  75. | `OnTouchMove
  76. | `OnTouchCancel
  77. | `OnVolumeChange
  78. | `OnWaiting
  79. | `OnKeyPress
  80. | `OnKeyDown
  81. | `OnKeyUp
  82. | `OnLoad
  83. | `OnLoadedData
  84. | `OnLoadedMetaData
  85. | `OnLoadStart
]

Javascript events

ARIA

type aria = [
  1. | `Role
  2. | `Aria
]
type common = [
  1. | core
  2. | i18n
  3. | events
  4. | aria
]

Common attributes

Categories of HTML elements

These category are mainly subdivised in

  • interactive,
  • phrasing,
  • flow5, these categories may overlap
type heading = [
  1. | `H1
  2. | `H2
  3. | `H3
  4. | `H4
  5. | `H5
  6. | `H6
  7. | `Hgroup
]
type script_supporting = [
  1. | `Script
  2. | `Template
]

Script-supporting elements: they do not represent anything themselves, and many content models allow them to be intermixed with their own children.

type sectioning = [
  1. | `Section
  2. | `Nav
  3. | `Aside
  4. | `Article
]
type resetable = [
  1. | `Textarea
  2. | `Select
  3. | `Output
  4. | `Keygen
  5. | `Input
]
type submitable = [
  1. | `Textarea
  2. | `Select
  3. | `Keygen
  4. | `Input
  5. | `Button
]
type labelable = [
  1. | resetable
  2. | `Progress
  3. | `Meter
  4. | `Button
]
type labelable_without_interactive = [
  1. | `Progress
  2. | `Meter
]
type formatblock = [
  1. | heading
  2. | sectioning
  3. | `Pre
  4. | `P
  5. | `Header
  6. | `Footer
  7. | `Div
  8. | `Blockquote
  9. | `Address
]
type sectionningroot = [
  1. | `Td
  2. | `Figure
  3. | `Fieldset
  4. | `Details
  5. | `Body
  6. | `Blockquote
  7. | `Dialog
]
type listed = [
  1. | resetable
  2. | submitable
  3. | `Fieldset
]
type formassociated = [
  1. | listed
  2. | `Progress
  3. | `Meter
  4. | `Label
]
type subresource_integrity = [
  1. | `Crossorigin
  2. | `Integrity
]
type (+'interactive, +'noscript, +'regular, +'media) transparent = [
  1. | `A of 'interactive
  2. | `Noscript of 'noscript
  3. | `Canvas of 'regular
  4. | `Map of 'regular
  5. | `Ins of 'regular
  6. | `Del of 'regular
  7. | `Object of 'regular
  8. | `Object_interactive of 'regular
  9. | `Slot of 'regular
  10. | `Audio_interactive of 'media
  11. | `Video_interactive of 'media
  12. | `Audio of 'media
  13. | `Video of 'media
]

Transparent elements. Such elements have a part of they children in their data and behaves like them. We could do something like a: 'a elt list -> 'a elt but the information about the node name would be forgotten and would allow things like that : p [a [a []]]. This system allow to build non-conforming terms such as a [a []] but when passed to a standard element (such as p), it will yield an error. Exception to that : if you embdedd the element in another transparent (of an another kind) : p [noscript (a [a []])] will be correctly typed.

type (+'noscript, +'regular, +'media) transparent_without_interactive = [
  1. | `Noscript of 'noscript
  2. | `Ins of 'regular
  3. | `Del of 'regular
  4. | `Object of 'regular
  5. | `Canvas of 'regular
  6. | `Map of 'regular
  7. | `Slot of 'regular
  8. | `Audio of 'media
  9. | `Video of 'media
]
type (+'interactive, +'regular, +'media) transparent_without_noscript = [
  1. | `A of 'interactive
  2. | `Ins of 'regular
  3. | `Del of 'regular
  4. | `Canvas of 'regular
  5. | `Map of 'regular
  6. | `Object of 'regular
  7. | `Object_interactive of 'regular
  8. | `Slot of 'regular
  9. | `Video of 'media
  10. | `Audio of 'media
  11. | `Video_interactive of 'media
  12. | `Audio_interactive of 'media
]
type (+'interactive, +'noscript, +'regular) transparent_without_media = [
  1. | `A of 'interactive
  2. | `Noscript of 'noscript
  3. | `Ins of 'regular
  4. | `Del of 'regular
  5. | `Map of 'regular
  6. | `Canvas of 'regular
  7. | `Object of 'regular
  8. | `Object_interactive of 'regular
  9. | `Slot of 'regular
]
type metadata_without_title = [
  1. | `Template
  2. | `Style
  3. | `Script
  4. | `Noscript of [ `Meta | `Link | `Style ]
  5. | `Meta
  6. | `Command
  7. | `Base
]

Metadata without title

type metadata = [
  1. | metadata_without_title
  2. | `Title
]

Metadata contents. Used specially in <head>

Interactive contents : contents that require user-interaction (Forms, link, etc.)

type core_interactive = [
  1. | `Textarea
  2. | `Select
  3. | `Menu
  4. | `Label
  5. | `Keygen
  6. | `Input
  7. | `Img_interactive
  8. | `Iframe
  9. | `Embed
  10. | `Details
  11. | `Button
]

Core element types are element types without transparent.

type core_phrasing = [
  1. | labelable
  2. | submitable
  3. | `Wbr
  4. | `Var
  5. | `U
  6. | `Svg
  7. | `Time
  8. | `Template
  9. | `Sup
  10. | `Sub
  11. | `Strong
  12. | `Span
  13. | `Small
  14. | `Script
  15. | `Samp
  16. | `S
  17. | `Ruby
  18. | `Q
  19. | `Mark
  20. | `Label
  21. | `Kbd
  22. | `Iframe
  23. | `I
  24. | `Embed
  25. | `Em
  26. | `Dfn
  27. | `Datalist
  28. | `Data
  29. | `Command
  30. | `Code
  31. | `Cite
  32. | `Br
  33. | `Bdo
  34. | `Bdi
  35. | `B
  36. | `Abbr
  37. | `Img
  38. | `Img_interactive
  39. | `Picture
  40. | `PCDATA
  41. | `Meta_with_itemprop
  42. | `Area
]

Phrasing contents is inline contents : bold text, span, and so on.

type core_phrasing_without_noscript = [
  1. | labelable
  2. | submitable
  3. | `Wbr
  4. | `Var
  5. | `U
  6. | `Time
  7. | `Template
  8. | `Sup
  9. | `Sub
  10. | `Svg
  11. | `Strong
  12. | `Span
  13. | `Small
  14. | `Script
  15. | `Samp
  16. | `S
  17. | `Ruby
  18. | `Q
  19. | `Mark
  20. | `Label
  21. | `Kbd
  22. | `Iframe
  23. | `I
  24. | `Embed
  25. | `Em
  26. | `Dfn
  27. | `Datalist
  28. | `Data
  29. | `Command
  30. | `Code
  31. | `Cite
  32. | `Br
  33. | `Bdo
  34. | `Bdi
  35. | `Img
  36. | `Img_interactive
  37. | `Picture
  38. | `B
  39. | `Abbr
  40. | `PCDATA
  41. | `Meta_with_itemprop
  42. | `Area
]
type core_phrasing_without_interactive = [
  1. | labelable_without_interactive
  2. | `Wbr
  3. | `Var
  4. | `U
  5. | `Time
  6. | `Template
  7. | `Sup
  8. | `Sub
  9. | `Strong
  10. | `Span
  11. | `Small
  12. | `Script
  13. | `Svg
  14. | `Samp
  15. | `S
  16. | `Ruby
  17. | `Q
  18. | `Mark
  19. | `Kbd
  20. | `Img
  21. | `Picture
  22. | `I
  23. | `Em
  24. | `Dfn
  25. | `Datalist
  26. | `Data
  27. | `Command
  28. | `Code
  29. | `Cite
  30. | `Br
  31. | `Bdo
  32. | `Bdi
  33. | `B
  34. | `Abbr
  35. | `PCDATA
  36. | `Meta_with_itemprop
  37. | `Area
]
type core_phrasing_without_media = [
  1. | labelable
  2. | submitable
  3. | `Wbr
  4. | `Var
  5. | `U
  6. | `Time
  7. | `Template
  8. | `Svg
  9. | `Sup
  10. | `Sub
  11. | `Strong
  12. | `Span
  13. | `Small
  14. | `Script
  15. | `Samp
  16. | `S
  17. | `Ruby
  18. | `Q
  19. | `Mark
  20. | `Label
  21. | `Kbd
  22. | `Img
  23. | `Img_interactive
  24. | `Picture
  25. | `Iframe
  26. | `I
  27. | `Embed
  28. | `Em
  29. | `Dfn
  30. | `Datalist
  31. | `Data
  32. | `Command
  33. | `Code
  34. | `Cite
  35. | `Br
  36. | `Bdo
  37. | `Bdi
  38. | `B
  39. | `Abbr
  40. | `PCDATA
  41. | `Meta_with_itemprop
  42. | `Area
]
type (+'a, +'b) between_phrasing_and_phrasing_without_interactive = [< core_phrasing | ([< phrasing_without_interactive ] as 'b, phrasing_without_noscript, phrasing, phrasing_without_media) transparent Abbr B Bdi Bdo Br Canvas Cite Code Command Data Datalist Del Dfn Em I Img Picture Ins Kbd Map Mark Meter Noscript Object PCDATA Progress Q Ruby S Samp Script Slot Small Span Strong Sub Sup Svg Template Time U Var Wbr ] as 'a
type phrasing_without_dfn = [
  1. | labelable
  2. | submitable
  3. | `Wbr
  4. | `Var
  5. | `U
  6. | `Time
  7. | `Template
  8. | `Sup
  9. | `Sub
  10. | `Strong
  11. | `Span
  12. | `Small
  13. | `Script
  14. | `Samp
  15. | `S
  16. | `Ruby
  17. | `Q
  18. | `Mark
  19. | `Label
  20. | `Img
  21. | `Img_interactive
  22. | `Picture
  23. | `Kbd
  24. | `I
  25. | `Em
  26. | `Datalist
  27. | `Data
  28. | `Command
  29. | `Code
  30. | `Cite
  31. | `Br
  32. | `Bdo
  33. | `Bdi
  34. | `B
  35. | `Abbr
  36. | `PCDATA
  37. | (phrasing_without_interactive, phrasing_without_noscript, phrasing_without_dfn, phrasing_without_media) transparent
]

Phrasing without the interactive markups

type phrasing_without_label = [
  1. | labelable
  2. | submitable
  3. | `Wbr
  4. | `Var
  5. | `U
  6. | `Time
  7. | `Template
  8. | `Sup
  9. | `Sub
  10. | `Strong
  11. | `Span
  12. | `Img
  13. | `Img_interactive
  14. | `Picture
  15. | `Small
  16. | `Script
  17. | `Samp
  18. | `S
  19. | `Ruby
  20. | `Q
  21. | `Mark
  22. | `Kbd
  23. | `I
  24. | `Em
  25. | `Dfn
  26. | `Datalist
  27. | `Data
  28. | `Command
  29. | `Code
  30. | `Cite
  31. | `Br
  32. | `Bdo
  33. | `Bdi
  34. | `B
  35. | `Abbr
  36. | `PCDATA
  37. | (phrasing_without_interactive, phrasing_without_noscript, phrasing_without_label, phrasing_without_media) transparent
]
type phrasing_without_progress = [
  1. | resetable
  2. | submitable
  3. | `Wbr
  4. | `Var
  5. | `U
  6. | `Time
  7. | `Template
  8. | `Sup
  9. | `Sub
  10. | `Strong
  11. | `Span
  12. | `Small
  13. | `Script
  14. | `Samp
  15. | `S
  16. | `Img
  17. | `Img_interactive
  18. | `Picture
  19. | `Ruby
  20. | `Q
  21. | `Meter
  22. | `Mark
  23. | `Label
  24. | `Kbd
  25. | `I
  26. | `Em
  27. | `Dfn
  28. | `Datalist
  29. | `Data
  30. | `Command
  31. | `Code
  32. | `Cite
  33. | `Button
  34. | `Br
  35. | `Bdo
  36. | `Bdi
  37. | `B
  38. | `Abbr
  39. | `PCDATA
  40. | (phrasing_without_interactive, phrasing_without_noscript, phrasing_without_progress, phrasing_without_media) transparent
]
type phrasing_without_time = [
  1. | labelable
  2. | submitable
  3. | `Wbr
  4. | `Var
  5. | `U
  6. | `Template
  7. | `Sup
  8. | `Sub
  9. | `Strong
  10. | `Img
  11. | `Img_interactive
  12. | `Picture
  13. | `Span
  14. | `Small
  15. | `Script
  16. | `Samp
  17. | `S
  18. | `Ruby
  19. | `Q
  20. | `Mark
  21. | `Label
  22. | `Kbd
  23. | `I
  24. | `Em
  25. | `Dfn
  26. | `Datalist
  27. | `Data
  28. | `Command
  29. | `Code
  30. | `Cite
  31. | `Br
  32. | `Bdo
  33. | `Bdi
  34. | `B
  35. | `Abbr
  36. | `PCDATA
  37. | (phrasing_without_interactive, phrasing_without_noscript, phrasing_without_time, phrasing_without_media) transparent
]
type phrasing_without_meter = [
  1. | submitable
  2. | resetable
  3. | `Progress
  4. | `Button
  5. | `Wbr
  6. | `Var
  7. | `U
  8. | `Time
  9. | `Template
  10. | `Sup
  11. | `Img
  12. | `Img_interactive
  13. | `Picture
  14. | `Sub
  15. | `Strong
  16. | `Span
  17. | `Small
  18. | `Script
  19. | `Samp
  20. | `S
  21. | `Ruby
  22. | `Q
  23. | `Mark
  24. | `Label
  25. | `Kbd
  26. | `I
  27. | `Em
  28. | `Dfn
  29. | `Datalist
  30. | `Data
  31. | `Command
  32. | `Code
  33. | `Cite
  34. | `Br
  35. | `Bdo
  36. | `Bdi
  37. | `B
  38. | `Abbr
  39. | `PCDATA
  40. | (phrasing_without_interactive, phrasing_without_noscript, phrasing_without_meter, phrasing_without_media) transparent
]
type core_flow5 = [
  1. | core_phrasing
  2. | formassociated
  3. | formatblock
  4. | `Ul
  5. | `Table
  6. | `Style
  7. | `Ol
  8. | `Menu
  9. | `Hr
  10. | `Form
  11. | `Figure
  12. | `Dl
  13. | `Details
  14. | `Main
  15. | `Dialog
  16. | `Search
]
type core_flow5_without_interactive = [
  1. | core_phrasing_without_interactive
  2. | formassociated
  3. | formatblock
  4. | `Ul
  5. | `Table
  6. | `Style
  7. | `Ol
  8. | `Menu
  9. | `Hr
  10. | `Form
  11. | `Figure
  12. | `Dl
  13. | `Main
  14. | `Dialog
  15. | `Search
]
type core_flow5_without_noscript = [
  1. | core_phrasing_without_noscript
  2. | formassociated
  3. | formatblock
  4. | `Ul
  5. | `Table
  6. | `Style
  7. | `Ol
  8. | `Menu
  9. | `Hr
  10. | `Form
  11. | `Figure
  12. | `Dl
  13. | `Details
  14. | `Main
  15. | `Dialog
  16. | `Search
]
type core_flow5_without_media = [
  1. | core_phrasing_without_media
  2. | formassociated
  3. | formatblock
  4. | `Ul
  5. | `Table
  6. | `Style
  7. | `Ol
  8. | `Menu
  9. | `Hr
  10. | `Form
  11. | `Figure
  12. | `Dl
  13. | `Details
  14. | `Main
  15. | `Dialog
  16. | `Search
]
type flow5_without_table = [
  1. | core_phrasing
  2. | formassociated
  3. | formatblock
  4. | `Ul
  5. | `Style
  6. | `Ol
  7. | `Menu
  8. | `Hr
  9. | `Form
  10. | `Figure
  11. | `Dl
  12. | `Details
  13. | `Main
  14. | `Dialog
  15. | `Search
  16. | (flow5_without_interactive, flow5_without_noscript, flow5, flow5_without_media) transparent
]
type flow5_without_form = [
  1. | core_phrasing
  2. | formassociated
  3. | formatblock
  4. | `Ul
  5. | `Table
  6. | `Style
  7. | `Ol
  8. | `Menu
  9. | `Hr
  10. | `Figure
  11. | `Dl
  12. | `Details
  13. | `Main
  14. | `Dialog
  15. | `Search
  16. | (flow5_without_interactive, flow5_without_noscript, flow5, flow5_without_media) transparent
]
type pcdata = [
  1. | `PCDATA
]
type txt = [
  1. | `PCDATA
]
type notag
type no_attribute_allowed
type noattrib = [
  1. | `No_attribute_allowed of no_attribute_allowed
]
type html = [
  1. | `Html
]
type html_content_fun = [
  1. | `Head
  2. | `Body
]
type html_content = html_content_fun
type html_attrib = [
  1. | common
  2. | `Manifest
]
type head = [
  1. | `Head
]
type head_content = [
  1. | metadata
]
type head_content_fun = [
  1. | metadata_without_title
]
type head_attrib = [
  1. | common
]
type body = [
  1. | `Body
]
type body_attrib = [
  1. | common
  2. | `OnAfterPrint
  3. | `OnBeforePrint
  4. | `OnBeforeUnload
  5. | `OnHashChange
  6. | `OnLanguageChange
  7. | `OnMessage
  8. | `OnOffLine
  9. | `OnOnLine
  10. | `OnPageHide
  11. | `OnPageShow
  12. | `OnPopState
  13. | `OnRedo
  14. | `OnRejectionHandled
  15. | `OnResize
  16. | `OnStorage
  17. | `OnUndo
  18. | `OnUnhandledRejection
  19. | `OnUnload
]
type body_content = flow5
type body_content_fun = flow5
type svg = [
  1. | `Svg
]
type svg_content = Svg_types.svg_content
type svg_attrib = Svg_types.svg_attr
type base = [
  1. | `Base
]
type base_content = notag
type base_content_fun = notag
type base_attrib = [
  1. | common
  2. | `Href
  3. | `Target
]
type title = [
  1. | `Title
]
type title_content = [
  1. | `PCDATA
]
type title_content_fun = [
  1. | `PCDATA
]
type title_attrib = noattrib
type header = [
  1. | `Header
]
type header_content = [
]
type header_content_fun = [
]
type header_attrib = [
  1. | common
]
type section = [
  1. | `Section
]
type section_content = [
  1. | flow5
]
type section_content_fun = [
  1. | flow5
]
type section_attrib = [
  1. | common
]
type nav = [
  1. | `Nav
]
type nav_content = [
  1. | flow5
]
type nav_content_fun = [
  1. | flow5
]
type nav_attrib = [
  1. | common
]
type h1 = [
  1. | `H1
]
type h1_content = [
  1. | phrasing
]
type h1_content_fun = [
  1. | phrasing
]
type h1_attrib = [
  1. | common
]
type h2 = [
  1. | `H2
]
type h2_content = [
  1. | phrasing
]
type h2_content_fun = [
  1. | phrasing
]
type h2_attrib = [
  1. | common
]
type h3 = [
  1. | `H3
]
type h3_content = [
  1. | phrasing
]
type h3_content_fun = [
  1. | phrasing
]
type h3_attrib = [
  1. | common
]
type h4 = [
  1. | `H4
]
type h4_content = [
  1. | phrasing
]
type h4_content_fun = [
  1. | phrasing
]
type h4_attrib = [
  1. | common
]
type h5 = [
  1. | `H5
]
type h5_content = [
  1. | phrasing
]
type h5_content_fun = [
  1. | phrasing
]
type h5_attrib = [
  1. | common
]
type h6 = [
  1. | `H6
]
type h6_content = [
  1. | phrasing
]
type h6_content_fun = [
  1. | phrasing
]
type h6_attrib = [
  1. | common
]
type hgroup = [
  1. | `Hgroup
]
type hgroup_content = [
  1. | `H1
  2. | `H2
  3. | `H3
  4. | `H4
  5. | `H5
  6. | `H6
]
type hgroup_content_fun = [
  1. | script_supporting
  2. | `H1
  3. | `H2
  4. | `H3
  5. | `H4
  6. | `H5
  7. | `H6
  8. | `P
]
type hgroup_attrib = [
  1. | common
]
type address = [
  1. | `Address
]
type address_attrib = [
  1. | common
]
type article = [
  1. | `Article
]
type article_content = [
  1. | flow5
]
type article_content_fun = [
  1. | flow5
]
type article_attrib = [
  1. | common
]
type aside = [
  1. | `Aside
]
type aside_content = [
  1. | flow5
]
type aside_content_fun = [
  1. | flow5
]
type aside_attrib = [
  1. | common
]
type main = [
  1. | `Main
]
type main_content = [
  1. | flow5
]
type main_content_fun = [
  1. | flow5
]
type main_attrib = [
  1. | common
]
type search_content = [
  1. | flow5
]
type search_content_fun = [
  1. | flow5
]
type search_attrib = [
  1. | common
]
type p = [
  1. | `P
]
type p_content = [
  1. | phrasing
]
type p_content_fun = [
  1. | phrasing
]
type p_attrib = [
  1. | common
]
type pre = [
  1. | `Pre
]
type pre_content = [
  1. | phrasing
]
type pre_content_fun = [
  1. | phrasing
]
type pre_attrib = [
  1. | common
]
type blockquote = [
  1. | `Blockquote
]
type blockquote_content = [
  1. | flow5
]
type blockquote_content_fun = [
  1. | flow5
]
type blockquote_attrib = [
  1. | common
  2. | `Cite
]
type dialog = [
  1. | `Dialog
]
type dialog_content = [
  1. | flow5
]
type dialog_content_fun = [
  1. | flow5
]
type dialog_attrib = [
  1. | common
  2. | `Open
  3. | `Closedby
]
type div = [
  1. | `Div
]
type div_content = [
  1. | flow5
]
type div_content_fun = [
  1. | flow5
  2. | `Dt
  3. | `Dd
]
type div_attrib = [
  1. | common
]
type ol = [
  1. | `Ol
]
type ol_content = [
  1. | `Li of [ common | `Int_Value ]
]
type ol_content_fun = [
  1. | script_supporting
  2. | `Li of [ common | `Int_Value ]
]
type ol_attrib = [
  1. | common
  2. | `Reversed
  3. | `Start
  4. | `Ol_Type
]
type li_content = [
  1. | flow5
]
type li_content_fun = [
  1. | flow5
]
type li_attrib = [
  1. | common
  2. | `Int_Value
]
type li = [
  1. | `Li of li_attrib
]
type ul = [
  1. | `Ul
]
type ul_content = [
  1. | `Li of [ li_attrib ]
]
type ul_content_fun = [
  1. | script_supporting
  2. | `Li of [ li_attrib ]
]
type ul_attrib = [
  1. | common
]
type dd = [
  1. | `Dd
]
type dd_content = [
  1. | flow5
]
type dd_content_fun = [
  1. | flow5
]
type dd_attrib = [
  1. | common
]
type dt = [
  1. | `Dt
]
type dt_attrib = [
  1. | common
]
type dl = [
  1. | `Dl
]
type dl_content = [
  1. | `Dt
  2. | `Dd
]
type dl_content_fun = [
  1. | script_supporting
  2. | `Div
  3. | `Dt
  4. | `Dd
]
type dl_attrib = [
  1. | common
]
type figcaption = [
  1. | `Figcaption
]
type figcaption_content = [
  1. | flow5
]
type figcaption_content_fun = [
  1. | flow5
]
type figcaption_attrib = [
  1. | common
]
type figure = [
  1. | `Figure
]
type figure_content = [
  1. | flow5
]
type figure_content_fun = [
  1. | flow5
]
type figure_attrib = [
  1. | common
]
type rp = [
  1. | `Rp
]
type rp_content = [
  1. | phrasing
]
type rp_content_fun = [
  1. | phrasing
]
type rp_attrib = [
  1. | common
]
type rt = [
  1. | `Rt
]
type rt_content = [
  1. | phrasing
]
type rt_content_fun = [
  1. | phrasing
]
type rt_attrib = [
  1. | common
]
type ruby = [
  1. | `Ruby
]
type ruby_content = [
  1. | phrasing
  2. | rp
  3. | rt
]
type ruby_content_fun = [
  1. | phrasing
  2. | rp
  3. | rt
]
type ruby_attrib = [
  1. | common
]
type hr = [
  1. | `Hr
]
type hr_content = notag
type hr_content_fun = notag
type hr_attrib = [
  1. | common
]
type b = [
  1. | `B
]
type b_content = [
  1. | phrasing
]
type b_content_fun = [
  1. | phrasing
]
type b_attrib = [
  1. | common
]
type i = [
  1. | `I
]
type i_content = [
  1. | phrasing
]
type i_content_fun = [
  1. | phrasing
]
type i_attrib = [
  1. | common
]
type u = [
  1. | `U
]
type u_content = [
  1. | phrasing
]
type u_content_fun = [
  1. | phrasing
]
type u_attrib = [
  1. | common
]
type s = [
  1. | `S
]
type s_content = [
  1. | phrasing
]
type s_content_fun = [
  1. | phrasing
]
type s_attrib = [
  1. | common
]
type small = [
  1. | `Small
]
type small_content = [
  1. | phrasing
]
type small_content_fun = [
  1. | phrasing
]
type small_attrib = [
  1. | common
]
type sub = [
  1. | `Sub
]
type sub_content = [
  1. | phrasing
]
type sub_content_fun = [
  1. | phrasing
]
type sub_attrib = [
  1. | common
]
type sup = [
  1. | `Sup
]
type sup_content = [
  1. | phrasing
]
type sup_content_fun = [
  1. | phrasing
]
type sup_attrib = [
  1. | common
]
type mark = [
  1. | `Mark
]
type mark_content = [
  1. | phrasing
]
type mark_content_fun = [
  1. | phrasing
]
type mark_attrib = [
  1. | common
]
type wbr = [
  1. | `Wbr
]
type wbr_content = notag
type wbr_content_fun = notag
type wbr_attrib = [
  1. | common
]
type bdo = [
  1. | `Bdo
]
type bdo_content = [
  1. | phrasing
]
type bdo_content_fun = [
  1. | phrasing
]
type bdo_attrib = [
  1. | common
]
type bdi = [
  1. | `Bdi
]
type bdi_content = [
  1. | phrasing
]
type bdi_content_fun = [
  1. | phrasing
]
type bdi_attrib = [
  1. | common
]
type abbr = [
  1. | `Abbr
]
type abbr_content = [
  1. | phrasing
]
type abbr_content_fun = [
  1. | phrasing
]
type abbr_attrib = [
  1. | common
]
type br = [
  1. | `Br
]
type br_content = notag
type br_content_fun = notag
type br_attrib = [
  1. | common
]
type cite = [
  1. | `Cite
]
type cite_content = [
  1. | phrasing
]
type cite_content_fun = [
  1. | phrasing
]
type cite_attrib = [
  1. | common
]
type code = [
  1. | `Code
]
type code_content = [
  1. | phrasing
]
type code_content_fun = [
  1. | phrasing
]
type code_attrib = [
  1. | common
]
type dfn = [
  1. | `Dfn
]
type dfn_content = [
  1. | phrasing_without_dfn
]
type dfn_content_fun = [
  1. | phrasing_without_dfn
]
type dfn_attrib = [
  1. | common
]
type em = [
  1. | `Em
]
type em_content = [
  1. | phrasing
]
type em_content_fun = [
  1. | phrasing
]
type em_attrib = [
  1. | common
]
type kbd = [
  1. | `Kbd
]
type kbd_content = [
  1. | phrasing
]
type kbd_content_fun = [
  1. | phrasing
]
type kbd_attrib = [
  1. | common
]
type q = [
  1. | `Q
]
type q_content = [
  1. | phrasing
]
type q_content_fun = [
  1. | phrasing
]
type q_attrib = [
  1. | common
  2. | `Cite
]
type samp = [
  1. | `Samp
]
type samp_content = [
  1. | phrasing
]
type samp_content_fun = [
  1. | phrasing
]
type samp_attrib = [
  1. | common
]
type span = [
  1. | `Span
]
type span_content = [
  1. | phrasing
]
type span_content_fun = [
  1. | phrasing
]
type span_attrib = [
  1. | common
]
type strong = [
  1. | `Strong
]
type strong_content = [
  1. | phrasing
]
type strong_content_fun = [
  1. | phrasing
]
type strong_attrib = [
  1. | common
]
type data = [
  1. | `Data
]
type data_content = [
  1. | phrasing
]
type data_content_fun = [
  1. | phrasing
]
type data_attrib = [
  1. | common
]
type time = [
  1. | `Time
]
type time_content = [
  1. | phrasing_without_time
]
type time_content_fun = [
  1. | phrasing_without_time
]
type time_attrib = [
  1. | common
  2. | `Datetime
  3. | `Pubdate
]
type var = [
  1. | `Var
]
type var_content = [
  1. | phrasing
]
type var_content_fun = [
  1. | phrasing
]
type var_attrib = [
  1. | common
]
type a_content = flow5_without_interactive
type a_content_fun = flow5_without_interactive
type 'a a = [
  1. | `A of 'a
]
type a_ = [
  1. | `A of a_content
]
type a_attrib = [
  1. | common
  2. | `Href
  3. | `Hreflang
  4. | `Media
  5. | `Rel
  6. | `Target
  7. | `Mime_type
  8. | `Download
  9. | `Ping
  10. | `Referrerpolicy
]
type 'a del = [
  1. | `Del of 'a
]
type del_content = flow5
type del_ = del_content del
type del_content_fun = flow5
type del_attrib = [
  1. | common
  2. | `Cite
  3. | `Datetime
]
type 'a ins = [
  1. | `Ins of 'a
]
type ins_content = flow5
type ins_ = ins_content ins
type ins_content_fun = flow5
type ins_attrib = [
  1. | common
  2. | `Cite
  3. | `Datetime
]
type iframe = [
  1. | `Iframe
]
type iframe_content = [
  1. | `PCDATA
]
type iframe_content_fun = [
  1. | `PCDATA
]
type iframe_attrib = [
  1. | common
  2. | `Allow
  3. | `Allowfullscreen
  4. | `Allowpaymentrequest
  5. | `Src
  6. | `Srcdoc
  7. | `Name
  8. | `Sandbox
  9. | `Seamless
  10. | `Width
  11. | `Height
  12. | `Referrerpolicy
  13. | `Loading
]
type object__content = [
  1. | flow5
  2. | `Param
]
type object__content_fun = flow5
type 'a object_ = [
  1. | `Object of 'a
  2. | `Object_interactive of 'a
]
type object__ = object__content object_
type object__attrib = [
  1. | common
  2. | `Data
  3. | `Form
  4. | `Mime_type
  5. | `Height
  6. | `Width
  7. | `Name
  8. | `Usemap
]
type param = [
  1. | `Param
]
type param_content = notag
type param_content_fun = notag
type param_attrib = [
  1. | common
  2. | `Name
  3. | `Text_Value
]
type embed = [
  1. | `Embed
]
type embed_content = notag
type embed_content_fun = notag
type embed_attrib = [
  1. | common
  2. | `Src
  3. | `Height
  4. | `Mime_type
  5. | `Width
]
type img = [
  1. | `Img
]
type img_interactive = [
  1. | `Img
  2. | `Img_interactive
]
type img_content = notag
type img_content_fun = notag
type img_attrib = [
  1. | common
  2. | `Height
  3. | `Ismap
  4. | `Width
  5. | `Srcset
  6. | `Img_sizes
  7. | `Crossorigin
  8. | `Usemap
  9. | `Referrerpolicy
  10. | `Loading
  11. | `Decoding
  12. | `Fetchpriority
]
type media_attrib = [
  1. | `Crossorigin
  2. | `Preload
  3. | `Autoplay
  4. | `Mediagroup
  5. | `Loop
  6. | `Muted
  7. | `Controls
  8. | `Disableremoteplayback
]
type 'a audio = [
  1. | `Audio of 'a
]
type 'a audio_interactive = [
  1. | `Audio of 'a
  2. | `Audio_interactive of 'a
]
type audio_content = flow5_without_media
type audio_ = audio_content audio
type audio_content_fun = flow5_without_media
type audio_attrib = [
  1. | common
  2. | media_attrib
]
type 'a video = [
  1. | `Video of 'a
]
type 'a video_interactive = [
  1. | `Video of 'a
  2. | `Video_interactive of 'a
]
type video_content = flow5_without_media
type video_ = video_content video
type video_content_fun = flow5_without_media
type video_attrib = [
  1. | common
  2. | media_attrib
  3. | `Poster
  4. | `Width
  5. | `Height
  6. | `Playsinline
  7. | `Disablepictureinpicture
]
type 'a canvas = [
  1. | `Canvas of 'a
]
type canvas_content = flow5
type canvas_ = canvas_content canvas
type canvas_content_fun = flow5
type canvas_attrib = [
  1. | common
  2. | `Width
  3. | `Height
]
type source = [
  1. | `Source
]
type source_content = notag
type source_content_fun = notag
type source_attrib = [
  1. | common
  2. | `Src
  3. | `Srcset
  4. | `Mime_type
  5. | `Media
]
type track = [
  1. | `Track
]
type track_content = notag
type track_content_fun = notag
type track_attrib = [
  1. | common
  2. | `Kind
  3. | `Srclang
  4. | `Label
  5. | `Default
]
type area = [
  1. | `Area
]
type area_content = notag
type area_content_fun = notag
type area_attrib = [
  1. | common
  2. | `Alt
  3. | `Href
  4. | `Coords
  5. | `Shape
  6. | `Target
  7. | `Rel
  8. | `Media
  9. | `Hreflang
  10. | `Mime_type
  11. | `Download
  12. | `Ping
  13. | `Referrerpolicy
]
type 'a map = [
  1. | `Map of 'a
]
type map_content = flow5
type map_ = map_content map
type map_content_fun = flow5
type map_attrib = [
  1. | common
  2. | `Name
]
type caption = [
  1. | `Caption
]
type caption_content = [
  1. | flow5_without_table
]
type caption_content_fun = [
  1. | flow5_without_table
]
type caption_attrib = [
  1. | common
]
type table = [
  1. | `Table
]
type table_content = [
  1. | `Tr
]
type table_content_fun = [
  1. | script_supporting
  2. | `Tr
]
type table_attrib = [
  1. | common
  2. | `Summary
]
type tablex = [
  1. | `Table
]
type tablex_content = [
  1. | `Tbody
]
type tablex_content_fun = [
  1. | `Tbody
]
type tablex_attrib = [
  1. | common
  2. | `Summary
]
type colgroup = [
  1. | `Colgroup
]
type colgroup_content = [
  1. | `Col
]
type colgroup_content_fun = [
  1. | `Col
]
type colgroup_attrib = [
  1. | common
  2. | `Span
]
type col = [
  1. | `Col
]
type col_content = notag
type col_content_fun = notag
type col_attrib = [
  1. | common
  2. | `Span
]
type thead = [
  1. | `Thead
]
type thead_content = [
  1. | `Tr
]
type thead_content_fun = [
  1. | script_supporting
  2. | `Tr
]
type thead_attrib = [
  1. | common
]
type tbody = [
  1. | `Tbody
]
type tbody_content = [
  1. | `Tr
]
type tbody_content_fun = [
  1. | script_supporting
  2. | `Tr
]
type tbody_attrib = [
  1. | common
]
type tfoot = [
  1. | `Tfoot
]
type tfoot_content = [
  1. | `Tr
]
type tfoot_content_fun = [
  1. | script_supporting
  2. | `Tr
]
type tfoot_attrib = [
  1. | common
]
type td = [
  1. | `Td
]
type td_content = [
  1. | flow5
]
type td_content_fun = [
  1. | flow5
]
type td_attrib = [
  1. | common
  2. | `Colspan
  3. | `Headers
  4. | `Rowspan
]
type th = [
  1. | `Th
]
type th_content = [
  1. | flow5
]
type th_content_fun = [
  1. | flow5
]
type th_attrib = [
  1. | common
  2. | `Colspan
  3. | `Headers
  4. | `Rowspan
  5. | `Scope
  6. | `Abbr
]
type tr = [
  1. | `Tr
]
type tr_content = [
  1. | `Td
  2. | `Th
]
type tr_content_fun = [
  1. | script_supporting
  2. | `Td
  3. | `Th
]
type tr_attrib = [
  1. | common
]
type form = [
  1. | `Form
]
type form_content = [
  1. | flow5_without_form
]
type form_content_fun = [
  1. | flow5_without_form
]
type form_attrib = [
  1. | common
  2. | `Accept_charset
  3. | `Action
  4. | `Enctype
  5. | `Method
  6. | `Name
  7. | `Target
  8. | `Autocomplete
  9. | `Novalidate
]
type fieldset = [
  1. | `Fieldset
]
type fieldset_content = [
  1. | flow5
]
type fieldset_content_fun = [
  1. | flow5
]
type fieldset_attrib = [
  1. | common
  2. | `Disabled
  3. | `Form
  4. | `Name
]
type legend = [
  1. | `Legend
]
type legend_content = [
  1. | phrasing
]
type legend_content_fun = [
  1. | phrasing
]
type legend_attrib = [
  1. | common
]
type label = [
  1. | `Label
]
type label_content = [
  1. | phrasing_without_label
]
type label_content_fun = [
  1. | phrasing_without_label
]
type label_attrib = [
  1. | common
  2. | `Label_for
  3. | `Form
]
type input = [
  1. | `Input
]
type input_content = notag
type input_content_fun = notag
type input_attrib = [
  1. | common
  2. | `Accept
  3. | `Alt
  4. | `Autocomplete
  5. | `Autofocus
  6. | `Checked
  7. | `Disabled
  8. | `Form
  9. | `Formaction
  10. | `Formenctype
  11. | `Formmethod
  12. | `Method
  13. | `Formnovalidate
  14. | `Formtarget
  15. | `Height
  16. | `List
  17. | `Input_Max
  18. | `Maxlength
  19. | `Minlength
  20. | `Input_Min
  21. | `Multiple
  22. | `Name
  23. | `Pattern
  24. | `Placeholder
  25. | `ReadOnly
  26. | `Required
  27. | `Size
  28. | `Src
  29. | `Step
  30. | `Input_Type
  31. | `Value
  32. | `Width
  33. | `Inputmode
  34. | `Popovertarget
  35. | `Popovertargetaction
  36. | `Dirname
  37. | `Capture
]
type textarea = [
  1. | `Textarea
]
type textarea_attrib = [
  1. | common
  2. | `Autofocus
  3. | `Disabled
  4. | `Form
  5. | `Maxlength
  6. | `Minlength
  7. | `Name
  8. | `Placeholder
  9. | `ReadOnly
  10. | `Required
  11. | `Wrap
  12. | `Rows
  13. | `Cols
  14. | `Dirname
  15. | `Autocomplete
]
type textarea_content = [
  1. | `PCDATA
]
type textarea_content_fun = textarea_content
type button = [
  1. | `Button
]
type button_content = [
  1. | phrasing_without_interactive
]
type button_content_fun = [
  1. | phrasing_without_interactive
]
type button_attrib = [
  1. | common
  2. | `Autofocus
  3. | `Disabled
  4. | `Form
  5. | `Formaction
  6. | `Formenctype
  7. | `Formmethod
  8. | `Method
  9. | `Formnovalidate
  10. | `Formtarget
  11. | `Name
  12. | `Text_Value
  13. | `Button_Type
  14. | `Popovertarget
  15. | `Popovertargetaction
  16. | `Command
  17. | `Commandfor
]
type select = [
  1. | `Select
]
type select_content = [
  1. | `Optgroup
  2. | `Option
]
type select_content_fun = [
  1. | script_supporting
  2. | `Optgroup
  3. | `Option
  4. | `Hr
]
type select_attrib = [
  1. | common
  2. | `Autofocus
  3. | `Multiple
  4. | `Name
  5. | `Size
  6. | `Form
  7. | `Disabled
  8. | `Required
  9. | `Autocomplete
]
type datalist = [
  1. | `Datalist
]
type datalist_content = notag
type datalist_content_fun = notag
type datalist_attrib = [
  1. | common
]
type optgroup = [
  1. | `Optgroup
]
type optgroup_content = [
  1. | `Option
]
type optgroup_content_fun = [
  1. | script_supporting
  2. | `Option
]
type optgroup_attrib = [
  1. | common
  2. | `Disabled
  3. | `Label
]
type option_attrib = [
  1. | common
  2. | `Selected
  3. | `Text_Value
  4. | `Disabled
  5. | `Label
  6. | `Value
]
type selectoption = [
  1. | `Option
]
type option_content_fun = [
  1. | `PCDATA
]
type option_content = [
  1. | `PCDATA
]
type keygen = [
  1. | `Keygen
]
type keygen_content = notag
type keygen_content_fun = notag
type keygen_attrib = [
  1. | common
  2. | `Autofocus
  3. | `Challenge
  4. | `Disabled
  5. | `Form
  6. | `Keytype
  7. | `Name
]
type progress = [
  1. | `Progress
]
type progress_content = [
  1. | phrasing_without_progress
]
type progress_content_fun = [
  1. | phrasing_without_progress
]
type progress_attrib = [
  1. | common
  2. | `Float_Value
  3. | `Max
  4. | `Form
]
type meter = [
  1. | `Meter
]
type meter_content = [
  1. | phrasing_without_meter
]
type meter_content_fun = [
  1. | phrasing_without_meter
]
type meter_attrib = [
  1. | common
  2. | `Float_Value
  3. | `Min
  4. | `Max
  5. | `Low
  6. | `High
  7. | `Optimum
  8. | `Form
]
type output_elt = [
  1. | `Output
]
type output_elt_content = [
  1. | phrasing
]
type output_elt_content_fun = [
  1. | phrasing
]
type output_elt_attrib = [
  1. | common
  2. | `Form
  3. | `Output_for
  4. | `Name
]
type details = [
  1. | `Details
]
type details_content = [
  1. | flow5
]
type details_content_fun = [
  1. | flow5
]
type details_attrib = [
  1. | common
  2. | `Open
  3. | `Name
]
type summary = [
  1. | `Summary
]
type summary_content = [
  1. | phrasing
]
type summary_content_fun = [
  1. | phrasing
]
type summary_attrib = [
  1. | common
]
type command = [
  1. | `Command
]
type command_content = notag
type command_content_fun = notag
type command_attrib = [
  1. | common
  2. | `Icon
  3. | `Disabled
  4. | `Checked
  5. | `Radiogroup
  6. | `Command_Type
]
type menu = [
  1. | `Menu
]
type menu_content = notag
type menu_content_fun = notag
type menu_attrib = [
  1. | common
  2. | `Label
  3. | `Menu_Type
]
type noscript = [
  1. | `Noscript of flow5_without_noscript
]
type noscript_content = flow5_without_noscript
type noscript_content_fun = flow5_without_noscript
type noscript_attrib = [
  1. | common
]
type meta = [
  1. | `Meta
]
type meta_with_itemprop = [
  1. | `Meta_with_itemprop
]
type meta_content = notag
type meta_content_fun = notag
type meta_attrib = [
  1. | common
  2. | `Http_equiv
  3. | `Name
  4. | `Content
  5. | `Charset
  6. | `Property
  7. | `Media
]
type style = [
  1. | `Style
]
type style_content = [
  1. | `PCDATA
]
type style_content_fun = [
  1. | `PCDATA
]
type style_attrib = [
  1. | common
  2. | `Media
  3. | `Mime_type
  4. | `Scoped
  5. | `Blocking
]
type script = [
  1. | `Script
]
type script_attrib = [
  1. | common
  2. | subresource_integrity
  3. | `Async
  4. | `Charset
  5. | `Src
  6. | `Defer
  7. | `Script_type
  8. | `Blocking
  9. | `Fetchpriority
  10. | `Nomodule
  11. | `Referrerpolicy
]
type script_content = [
  1. | `PCDATA
]
type script_content_fun = [
  1. | `PCDATA
]
type template = [
  1. | `Template
]
type template_attrib = [
  1. | common
  2. | `Shadowrootmode
  3. | `Shadowrootdelegatesfocus
  4. | `Shadowrootclonable
  5. | `Shadowrootserializable
]
type template_content = [
  1. | flow5
]
type template_content_fun = [
  1. | flow5
]
type 'a slot = [
  1. | `Slot of 'a
]
type slot_content = flow5
type slot_ = slot_content slot
type slot_content_fun = flow5
type slot_attrib = [
  1. | common
  2. | `Name
]
type picture = [
  1. | `Picture
]
type picture_content = [
  1. | source
  2. | script
  3. | template
]
type picture_content_fun = [
  1. | source
  2. | script
  3. | template
]
type picture_attrib = [
  1. | common
]
type referrerpolicy = [
  1. | `Empty
  2. | `No_referrer
  3. | `No_referrer_when_downgrade
  4. | `Origin
  5. | `Origin_when_cross_origin
  6. | `Same_origin
  7. | `Strict_origin
  8. | `Strict_origin_when_cross_origin
  9. | `Unsafe_url
]
type big_variant = [
  1. | `W3_org_1999_xhtml
  2. | `Default
  3. | `Preserve
  4. | `Selected
  5. | `Get
  6. | `Post
  7. | `Dialog
  8. | `Checked
  9. | `Disabled
  10. | `ReadOnly
  11. | `Async
  12. | `Autofocus
  13. | `Autoplay
  14. | `Muted
  15. | `Anonymous
  16. | `Use_credentials
  17. | `Controls
  18. | `Ltr
  19. | `Rtl
  20. | `Formnovalidate
  21. | `Hidden
  22. | `Ismap
  23. | `Loop
  24. | `Novalidate
  25. | `Open
  26. | `Audio
  27. | `Metadata
  28. | `Subtitles
  29. | `Captions
  30. | `Descriptions
  31. | `Chapters
  32. | `None
  33. | `Pubdate
  34. | `Required
  35. | `Reversed
  36. | `Scoped
  37. | `Seamless
  38. | `Hard
  39. | `Soft
  40. | `Multiple
  41. | `Checkbox
  42. | `Command
  43. | `Radio
  44. | `Context
  45. | `Toolbar
  46. | `Char
  47. | `Justify
  48. | `Left
  49. | `Right
  50. | `Col
  51. | `Colgroup
  52. | `Row
  53. | `Rowgroup
  54. | `All
  55. | `Cols
  56. | `Groups
  57. | `None
  58. | `Rows
  59. | `Rect
  60. | `Circle
  61. | `Poly
  62. | `Default
  63. | `One
  64. | `Zero
  65. | `Auto
  66. | `Manual
  67. | `Hint
  68. | `No
  69. | `Yes
  70. | `On
  71. | `Off
  72. | `Enter
  73. | `Done
  74. | `Go
  75. | `Next
  76. | `Previous
  77. | `Send
  78. | `Sentences
  79. | `Words
  80. | `Characters
  81. | `Show
  82. | `Hide
  83. | `Toggle
  84. | `Show_modal
  85. | `Close
  86. | `Request_close
  87. | `Show_popover
  88. | `Hide_popover
  89. | `Toggle_popover
  90. | `Other of string
  91. | `Lazy
  92. | `Eager
  93. | `Sync
  94. | `High
  95. | `Low
  96. | `User
  97. | `Environment
  98. | `Any
  99. | `Closerequest
  100. | `Closed
  101. | `Document
  102. | `Embed
  103. | `Fetch
  104. | `Font
  105. | `Image
  106. | `Object
  107. | `Script
  108. | `Style
  109. | `Track
  110. | `Video
  111. | `Worker
  112. | `True
  113. | `False
  114. | `Plaintext_only
  115. | `Until_found
  116. | `Defer
  117. | `Verbatim
  118. | `Latin
  119. | `Latin_name
  120. | `Latin_prose
  121. | `Full_width_latin
  122. | `Kana
  123. | `Katakana
  124. | `Numeric
  125. | `Tel
  126. | `Email
  127. | `Url
  128. | `Text
  129. | `Decimal
  130. | `Search
]
type sandbox_token = [
  1. | `Allow_downloads
  2. | `Allow_forms
  3. | `Allow_modals
  4. | `Allow_orientation_lock
  5. | `Allow_pointer_lock
  6. | `Allow_popups
  7. | `Allow_popups_to_escape_sandbox
  8. | `Allow_presentation
  9. | `Allow_same_origin
  10. | `Allow_script
  11. | `Allow_top_navigation
  12. | `Allow_top_navigation_by_user_activation
  13. | `Allow_top_navigation_to_custom_protocols
]
type blocking_token = [
  1. | `Render
]
type input_type = [
  1. | `Button
  2. | `Checkbox
  3. | `Color
  4. | `Date
  5. | `Datetime
  6. | `Datetime_local
  7. | `Email
  8. | `File
  9. | `Hidden
  10. | `Image
  11. | `Month
  12. | `Number
  13. | `Password
  14. | `Radio
  15. | `Range
  16. | `Reset
  17. | `Search
  18. | `Submit
  19. | `Tel
  20. | `Text
  21. | `Time
  22. | `Url
  23. | `Week
]
type script_type = [
  1. | `Javascript
  2. | `Module
  3. | `Mime of string
]
type autocomplete_option = [
  1. | `On
  2. | `Off
  3. | `Tokens of string list
]
type popover_value = [
  1. | `Auto
  2. | `Manual
  3. | `Hint
]
type ol_type = [
  1. | `Decimal
  2. | `Lower_alpha
  3. | `Upper_alpha
  4. | `Lower_roman
  5. | `Upper_roman
]

Values of the type attribute of ordered lists. The serialized values are case-sensitive ("1", "a", "A", "i", "I").

type command_value = [
  1. | `Show_modal
  2. | `Close
  3. | `Request_close
  4. | `Show_popover
  5. | `Hide_popover
  6. | `Toggle_popover
  7. | `Other of string
]

Values for the command attribute of button elements. Custom commands (starting with --) use the `Other constructor.

type contenteditable_value = [
  1. | `True
  2. | `False
  3. | `Plaintext_only
]
type hidden_value = [
  1. | `Hidden
  2. | `Until_found
]