forked from ocsigen/tyxml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml_types.mli
More file actions
2459 lines (1926 loc) · 59.7 KB
/
Copy pathhtml_types.mli
File metadata and controls
2459 lines (1926 loc) · 59.7 KB
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
(* TyXML
* http://www.ocsigen.org/tyxml
* Copyright (C) 2010 by Simon Castellan
* Copyright (C) 2010 by Cecile Herbelin
* Copyright (C) 2010 by Vincent Balat
*
* 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 02110-1301, USA.
*)
(* _fun prefix are the types that must be used
in Html_sigs. They are more restrictive as
some param are already taken as separate argument,
to ensure better compatibility.
SC *)
(** HTML types with variants, goes with {!Html_sigs.T}.
@see <http://dev.w3.org/html5/spec/Overview.html> information concerning HTML at W3C.
*)
(** {1 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
@see <http://www.w3.org/TR/2000/REC-xml-20001006> XML 1.0 *)
type nmtokens = nmtoken list
(** One or more whitespace-separated NMTOKEN values *)
(** {2 Data Types} *)
type character = char
(** A single character from ISO 10646. *)
type charset = string
(** A character encoding, as per RFC2045 (MIME).
@see <http://tools.ietf.org/html/rfc2045> RFC2045 *)
type charsets = charset list
(** A space-separated list of character encodings, as per RFC2045 (MIME).
@see <http://tools.ietf.org/html/rfc2045> RFC2045 *)
type contenttype = string
(** A media type, as per RFC2045 (MIME).
@see <http://tools.ietf.org/html/rfc2045> RFC2045 *)
type contenttypes = contenttype list
(** A comma-separated list of media types, as per RFC2045 (MIME).
@see <http://tools.ietf.org/html/rfc2045> RFC2045 *)
type number = int
(* space-separated *)
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 = [ | `Number of number | `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.
@see <http://tools.ietf.org/html/rfc5646> RFC5646 *)
type linktype =
[
| `Alternate
| `Archives
| `Author
| `Bookmark
| `Canonical
| `Dns_prefetch
| `External
| `First
| `Help
| `Icon
| `Index
| `Last
| `License
| `Manifest
| `Me
| `Modulepreload
| `Next
| `Nofollow
| `Noopener
| `Noreferrer
| `Opener
| `Pingback
| `Preconnect
| `Prefetch
| `Prev
| `Preload
| `Prerender
| `Search
| `Stylesheet
| `Sidebar
| `Tag
| `Up
| `Other of string ] [@@reflect.total_variant]
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.
{ul
{- [`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 =
[ `All
| `Aural
| `Braille
| `Embossed
| `Handheld
| `Print
| `Projection
| `Screen
| `Speech
| `Tty
| `Tv
| `Raw_mediadesc of string ] [@@reflect.total_variant]
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:
{ul
{- [`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.
@see <http://www.w3.org/TR/1998/REC-CSS2-19980512> 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. *)
(** {2 Core} *)
type i18n = [ | `XML_lang | `Lang ]
type core =
[
| `Accesskey
| `Class
| `Contenteditable
| `Contextmenu
| `Dir
| `Draggable
| `Hidden
| `Id
| i18n
| `Spellcheck
| `Style_Attr
| `Tabindex
| `Translate
| `Title
| `User_data
| `XMLns
]
(** {2 Events} *)
(** Javascript events *)
type events =
[
| `OnAbort
| `OnBlur
| `OnCanPlay
| `OnCanPlayThrough
| `OnChange
| `OnClick
| `OnClose
| `OnContextMenu
| `OnDblClick
| `OnDrag
| `OnDragEnd
| `OnDragEnter
| `OnDragLeave
| `OnDragOver
| `OnDragStart
| `OnDrop
| `OnDurationChange
| `OnEmptied
| `OnEnded
| `OnError
| `OnFocus
| `OnFormChange
| `OnFormInput
| `OnInput
| `OnInvalid
| `OnMouseDown
| `OnMouseUp
| `OnMouseOver
| `OnMouseMove
| `OnMouseOut
| `OnMouseWheel
| `OnPause
| `OnPlay
| `OnPlaying
| `OnProgress
| `OnRateChange
| `OnReadyStateChange
| `OnScroll
| `OnSeeked
| `OnSeeking
| `OnSelect
| `OnShow
| `OnStalled
| `OnSubmit
| `OnSuspend
| `OnTimeUpdate
| `OnTouchStart
| `OnTouchEnd
| `OnTouchMove
| `OnTouchCancel
| `OnVolumeChange
| `OnWaiting
| `OnKeyPress
| `OnKeyDown
| `OnKeyUp
| `OnLoad
| `OnLoadedData
| `OnLoadedMetaData
| `OnLoadStart
]
(** {2 ARIA} *)
type aria =
[
| `Role
| `Aria
]
(** Common attributes *)
type common = [ | core | i18n | events | aria ]
(** {1 Categories of HTML elements}
These category are mainly subdivised in
- interactive,
- phrasing,
- flow5,
these categories may overlap *)
type heading = [ | `H1 | `H2 | `H3 | `H4 | `H5 | `H6 | `Hgroup ]
type sectioning = [ | `Section | `Nav | `Aside | `Article ]
type resetable = [ | `Textarea | `Select | `Output | `Keygen | `Input ]
type submitable = [ | `Textarea | `Select | `Keygen | `Input | `Button ]
type labelable = [ | resetable | `Progress | `Meter | `Button ]
type labelable_without_interactive = [ `Progress | `Meter]
type formatblock =
[
| heading
| sectioning
| `Pre
| `P
| `Header
| `Footer
| `Div
| `Blockquote
| `Address
]
type sectionningroot =
[ | `Td | `Figure | `Fieldset | `Details | `Body | `Blockquote | `Dialog
]
type listed = [ | resetable | submitable | `Fieldset ]
type formassociated = [ | listed | `Progress | `Meter | `Label ]
type subresource_integrity = [ | `Crossorigin | `Integrity ]
(** @see <https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity> *)
(** 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 (+'interactive, +'noscript, +'regular, +'media) transparent =
[
| `A of 'interactive
| `Noscript of 'noscript
| `Canvas of 'regular
| `Map of 'regular
| `Ins of 'regular
| `Del of 'regular
| `Object of 'regular
| `Object_interactive of 'regular
| `Audio_interactive of 'media
| `Video_interactive of 'media
| `Audio of 'media
| `Video of 'media
]
(* _interactive variants are not used for now *)
type (+'noscript, +'regular, +'media) transparent_without_interactive =
[
| `Noscript of 'noscript
| `Ins of 'regular
| `Del of 'regular
| `Object of 'regular
| `Canvas of 'regular
| `Map of 'regular
| `Audio of 'media
| `Video of 'media
]
type (+'interactive, +'regular, +'media) transparent_without_noscript =
[
| `A of 'interactive
| `Ins of 'regular
| `Del of 'regular
| `Canvas of 'regular
| `Map of 'regular
| `Object of 'regular
| `Object_interactive of 'regular
| `Video of 'media
| `Audio of 'media
| `Video_interactive of 'media
| `Audio_interactive of 'media
]
type (+'interactive, +'noscript, +'regular) transparent_without_media =
[
| `A of 'interactive
| `Noscript of 'noscript
| `Ins of 'regular
| `Del of 'regular
| `Map of 'regular
| `Canvas of 'regular
| `Object of 'regular
| `Object_interactive of 'regular
]
(** Metadata without title *)
type metadata_without_title =
[
| `Template
| `Style
| `Script
| `Noscript of [ | `Meta | `Link | `Style ]
| `Meta
| `Link
| `Command
| `Base
]
(** Metadata contents. Used specially in <head> *)
type metadata = [ | metadata_without_title | `Title ]
(** Interactive contents : contents that require user-interaction
(Forms, link, etc.) *)
(** Core element types are element types without transparent. *)
type core_interactive =
[
| `Textarea
| `Select
| `Menu
| `Label
| `Keygen
| `Input
| `Img_interactive
| `Iframe
| `Embed
| `Details
| `Button
]
type interactive =
[
core_interactive | (interactive, interactive, interactive) transparent_without_interactive
]
(** Phrasing contents is inline contents : bold text, span, and so on. *)
type core_phrasing =
[
| labelable
| submitable
| `Wbr
| `Var
| `U
| `Svg
| `Time
| `Template
| `Sup
| `Sub
| `Strong
| `Span
| `Small
| `Script
| `Samp
| `Ruby
| `Q
| `Mark
| `Label
| `Kbd
| `Iframe
| `I
| `Embed
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `B
| `Abbr
| `Img | `Img_interactive
| `Picture
| `PCDATA
]
type core_phrasing_without_noscript =
[
| labelable
| submitable
| `Wbr
| `Var
| `U
| `Time
| `Template
| `Sup
| `Sub
| `Svg
| `Strong
| `Span
| `Small
| `Script
| `Samp
| `Ruby
| `Q
| `Mark
| `Label
| `Kbd
| `Iframe
| `I
| `Embed
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `Img | `Img_interactive
| `Picture
| `B
| `Abbr
| `PCDATA
]
type core_phrasing_without_interactive =
[
| labelable_without_interactive
| `Wbr
| `Var
| `U
| `Time
| `Template
| `Sup
| `Sub
| `Strong
| `Span
| `Small
| `Script
| `Svg
| `Samp
| `Ruby
| `Q
| `Mark
| `Kbd
| `Img
| `Picture
| `I
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `B
| `Abbr
| `PCDATA
]
type core_phrasing_without_media =
[
| labelable
| submitable
| `Wbr
| `Var
| `U
| `Time
| `Template
| `Svg
| `Sup
| `Sub
| `Strong
| `Span
| `Small
| `Script
| `Samp
| `Ruby
| `Q
| `Mark
| `Label
| `Kbd
| `Img | `Img_interactive
| `Picture
| `Iframe
| `I
| `Embed
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `B
| `Abbr
| `PCDATA
]
type phrasing_without_noscript =
(phrasing_without_interactive,
phrasing,
phrasing_without_media) transparent_without_noscript
and phrasing_without_media =
[
| core_phrasing_without_media
| (phrasing_without_interactive, phrasing_without_noscript, phrasing)
transparent_without_media
]
and phrasing_without_interactive =
[
| core_phrasing_without_interactive
| (phrasing_without_noscript, phrasing, phrasing_without_media)
transparent_without_interactive
]
and phrasing =
[
| (phrasing_without_interactive, phrasing_without_noscript, phrasing,
phrasing_without_media) transparent
| core_phrasing
]
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 `Bdo `Br `Canvas `Cite `Code `Command
`Datalist `Del `Dfn `Em `I `Img `Picture `Ins `Kbd `Map `Mark `Meter
`Noscript `Object `PCDATA `Progress `Q `Ruby `Samp `Script
`Small `Span `Strong `Sub `Sup `Svg `Template `Time `U `Var `Wbr ] as 'a)
(** Phrasing without the interactive markups *)
type phrasing_without_dfn =
[
| labelable
| submitable
| `Wbr
| `Var
| `U
| `Time
| `Template
| `Sup
| `Sub
| `Strong
| `Span
| `Small
| `Script
| `Samp
| `Ruby
| `Q
| `Mark
| `Label
| `Img | `Img_interactive
| `Picture
| `Kbd
| `I
| `Em
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `B
| `Abbr
| `PCDATA
| (phrasing_without_interactive, phrasing_without_noscript,
phrasing_without_dfn, phrasing_without_media) transparent
]
type phrasing_without_label =
[
| labelable
| submitable
| `Wbr
| `Var
| `U
| `Time
| `Template
| `Sup
| `Sub
| `Strong
| `Span
| `Img | `Img_interactive
| `Picture
| `Small
| `Script
| `Samp
| `Ruby
| `Q
| `Mark
| `Kbd
| `I
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `B
| `Abbr
| `PCDATA
| (phrasing_without_interactive, phrasing_without_noscript,
phrasing_without_label, phrasing_without_media) transparent
]
type phrasing_without_progress =
[
| resetable
| submitable
| `Wbr
| `Var
| `U
| `Time
| `Template
| `Sup
| `Sub
| `Strong
| `Span
| `Small
| `Script
| `Samp
| `Img | `Img_interactive
| `Picture
| `Ruby
| `Q
| `Meter
| `Mark
| `Label
| `Kbd
| `I
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Button
| `Br
| `Bdo
| `B
| `Abbr
| `PCDATA
| (phrasing_without_interactive, phrasing_without_noscript,
phrasing_without_progress, phrasing_without_media) transparent
]
type phrasing_without_time =
[
| labelable
| submitable
| `Wbr
| `Var
| `U
| `Template
| `Sup
| `Sub
| `Strong
| `Img | `Img_interactive
| `Picture
| `Span
| `Small
| `Script
| `Samp
| `Ruby
| `Q
| `Mark
| `Label
| `Kbd
| `I
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `B
| `Abbr
| `PCDATA
| (phrasing_without_interactive, phrasing_without_noscript,
phrasing_without_time, phrasing_without_media) transparent
]
type phrasing_without_meter =
[
| submitable
| resetable
| `Progress
| `Button
| `Wbr
| `Var
| `U
| `Time
| `Template
| `Sup
| `Img | `Img_interactive
| `Picture
| `Sub
| `Strong
| `Span
| `Small
| `Script
| `Samp
| `Ruby
| `Q
| `Mark
| `Label
| `Kbd
| `I
| `Em
| `Dfn
| `Datalist
| `Command
| `Code
| `Cite
| `Br
| `Bdo
| `B
| `Abbr
| `PCDATA
| (phrasing_without_interactive, phrasing_without_noscript,
phrasing_without_meter, phrasing_without_media) transparent
]
type core_flow5 =
[
| core_phrasing
| formassociated
| formatblock
| `Ul
| `Table
| `Style
| `Ol
| `Menu
| `Hr
| `Form
| `Figure
| `Dl
| `Details
| `Main
| `Dialog
]
type core_flow5_without_interactive =
[
| core_phrasing_without_interactive
| formassociated
| formatblock
| `Ul
| `Table
| `Style
| `Ol
| `Menu
| `Hr
| `Form
| `Figure
| `Dl
| `Main
| `Dialog
]
type core_flow5_without_noscript =
[
| core_phrasing_without_noscript
| formassociated
| formatblock
| `Ul
| `Table
| `Style
| `Ol
| `Menu
| `Hr
| `Form
| `Figure
| `Dl
| `Details
| `Main
| `Dialog
]
type core_flow5_without_media =
[
| core_phrasing_without_media
| formassociated
| formatblock
| `Ul
| `Table
| `Style
| `Ol
| `Menu
| `Hr
| `Form
| `Figure
| `Dl
| `Details
| `Main
| `Dialog
]
type flow5_without_interactive =