html-validate 6.6.1 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/cjs/browser.d.ts +1 -1
  2. package/dist/cjs/browser.js +2 -0
  3. package/dist/cjs/browser.js.map +1 -1
  4. package/dist/cjs/cli.js +9 -5
  5. package/dist/cjs/cli.js.map +1 -1
  6. package/dist/cjs/core.d.ts +15 -8
  7. package/dist/cjs/core.js +399 -159
  8. package/dist/cjs/core.js.map +1 -1
  9. package/dist/cjs/html-validate.js +11 -6
  10. package/dist/cjs/html-validate.js.map +1 -1
  11. package/dist/cjs/index.d.ts +2 -2
  12. package/dist/cjs/index.js +2 -0
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/cjs/jest-lib.js +83 -65
  15. package/dist/cjs/jest-lib.js.map +1 -1
  16. package/dist/cjs/jest.d.ts +35 -2
  17. package/dist/cjs/jest.js +14 -3
  18. package/dist/cjs/jest.js.map +1 -1
  19. package/dist/cjs/test-utils.d.ts +1 -1
  20. package/dist/es/browser.d.ts +1 -1
  21. package/dist/es/browser.js +2 -0
  22. package/dist/es/browser.js.map +1 -1
  23. package/dist/es/cli.js +9 -5
  24. package/dist/es/cli.js.map +1 -1
  25. package/dist/es/core.d.ts +15 -8
  26. package/dist/es/core.js +322 -103
  27. package/dist/es/core.js.map +1 -1
  28. package/dist/es/html-validate.js +11 -6
  29. package/dist/es/html-validate.js.map +1 -1
  30. package/dist/es/index.d.ts +2 -2
  31. package/dist/es/index.js +2 -0
  32. package/dist/es/index.js.map +1 -1
  33. package/dist/es/jest-lib.js +76 -64
  34. package/dist/es/jest-lib.js.map +1 -1
  35. package/dist/es/jest.d.ts +35 -2
  36. package/dist/es/jest.js +15 -3
  37. package/dist/es/jest.js.map +1 -1
  38. package/dist/es/test-utils.d.ts +1 -1
  39. package/elements/html5.js +1881 -0
  40. package/package.json +38 -29
  41. package/dist/cjs/jest-lib.d.ts +0 -35
  42. package/dist/es/jest-lib.d.ts +0 -35
  43. package/elements/html5.json +0 -1876
@@ -1,1876 +0,0 @@
1
- {
2
- "$schema": "https://html-validate.org/schemas/elements.json",
3
-
4
- "*": {
5
- "attributes": {
6
- "contenteditable": {
7
- "omit": true,
8
- "enum": ["true", "false"]
9
- },
10
- "contextmenu": {
11
- "deprecated": true
12
- },
13
- "dir": {
14
- "enum": ["ltr", "rtl", "auto"]
15
- },
16
- "draggable": {
17
- "enum": ["true", "false"]
18
- },
19
- "hidden": {
20
- "boolean": true
21
- },
22
- "id": {
23
- "enum": ["/\\S+/"]
24
- },
25
- "tabindex": {
26
- "enum": ["/-?\\d+/"]
27
- }
28
- }
29
- },
30
-
31
- "a": {
32
- "flow": true,
33
- "phrasing": true,
34
- "interactive": true,
35
- "transparent": true,
36
- "attributes": {
37
- "charset": {
38
- "deprecated": true
39
- },
40
- "coords": {
41
- "deprecated": true
42
- },
43
- "datafld": {
44
- "deprecated": true
45
- },
46
- "datasrc": {
47
- "deprecated": true
48
- },
49
- "download": {
50
- "omit": true,
51
- "enum": ["/.+/"]
52
- },
53
- "href": {
54
- "enum": ["/.*/"]
55
- },
56
- "methods": {
57
- "deprecated": true
58
- },
59
- "name": {
60
- "deprecated": true
61
- },
62
- "shape": {
63
- "deprecated": true
64
- },
65
- "urn": {
66
- "deprecated": true
67
- }
68
- },
69
- "permittedDescendants": [{ "exclude": "@interactive" }]
70
- },
71
-
72
- "abbr": {
73
- "flow": true,
74
- "phrasing": true,
75
- "permittedContent": ["@phrasing"]
76
- },
77
-
78
- "acronym": {
79
- "deprecated": {
80
- "message": "use <abbr> instead",
81
- "documentation": "`<abbr>` can be used as a replacement.",
82
- "source": "html5"
83
- }
84
- },
85
-
86
- "address": {
87
- "flow": true,
88
- "permittedContent": ["@flow"],
89
- "permittedDescendants": [
90
- { "exclude": ["address", "header", "footer", "@heading", "@sectioning"] }
91
- ]
92
- },
93
-
94
- "applet": {
95
- "deprecated": {
96
- "source": "html5"
97
- },
98
- "attributes": {
99
- "datafld": {
100
- "deprecated": true
101
- },
102
- "datasrc": {
103
- "deprecated": true
104
- }
105
- }
106
- },
107
-
108
- "area": {
109
- "flow": ["isDescendant", "map"],
110
- "phrasing": ["isDescendant", "map"],
111
- "void": true,
112
- "attributes": {
113
- "nohref": {
114
- "deprecated": true
115
- },
116
- "shape": {
117
- "enum": ["rect", "circle", "poly", "default"]
118
- }
119
- },
120
- "requiredAncestors": ["map"]
121
- },
122
-
123
- "article": {
124
- "flow": true,
125
- "sectioning": true,
126
- "permittedContent": ["@flow"],
127
- "permittedDescendants": [{ "exclude": ["main"] }]
128
- },
129
-
130
- "aside": {
131
- "flow": true,
132
- "sectioning": true,
133
- "permittedContent": ["@flow"],
134
- "permittedDescendants": [{ "exclude": ["main"] }]
135
- },
136
-
137
- "audio": {
138
- "flow": true,
139
- "phrasing": true,
140
- "embedded": true,
141
- "interactive": ["hasAttribute", "controls"],
142
- "transparent": ["@flow"],
143
- "attributes": {
144
- "preload": {
145
- "omit": true,
146
- "enum": ["none", "metadata", "auto"]
147
- }
148
- },
149
- "permittedContent": ["@flow", "track", "source"],
150
- "permittedDescendants": [{ "exclude": ["audio", "video"] }],
151
- "permittedOrder": ["source", "track", "@flow"]
152
- },
153
-
154
- "b": {
155
- "flow": true,
156
- "phrasing": true,
157
- "permittedContent": ["@phrasing"]
158
- },
159
-
160
- "base": {
161
- "metadata": true,
162
- "void": true
163
- },
164
-
165
- "basefont": {
166
- "deprecated": {
167
- "message": "use CSS instead",
168
- "documentation": "Use CSS `font-size` property instead.",
169
- "source": "html4"
170
- }
171
- },
172
-
173
- "bdi": {
174
- "flow": true,
175
- "phrasing": true,
176
- "permittedContent": ["@phrasing"]
177
- },
178
-
179
- "bdo": {
180
- "flow": true,
181
- "phrasing": true,
182
- "permittedContent": ["@phrasing"]
183
- },
184
-
185
- "bgsound": {
186
- "deprecated": {
187
- "message": "use <audio> instead",
188
- "documentation": "Use the `<audio>` element instead but consider accessibility concerns with autoplaying sounds.",
189
- "source": "non-standard"
190
- }
191
- },
192
-
193
- "big": {
194
- "deprecated": {
195
- "message": "use CSS instead",
196
- "documentation": "Use CSS `font-size` property instead.",
197
- "source": "html5"
198
- }
199
- },
200
-
201
- "blink": {
202
- "deprecated": {
203
- "documentation": "`<blink>` has no direct replacement and blinking text is frowned upon by accessibility standards.",
204
- "source": "non-standard"
205
- }
206
- },
207
-
208
- "blockquote": {
209
- "flow": true,
210
- "sectioning": true,
211
- "permittedContent": ["@flow"]
212
- },
213
-
214
- "body": {
215
- "attributes": {
216
- "alink": {
217
- "deprecated": true
218
- },
219
- "background": {
220
- "deprecated": true
221
- },
222
- "bgcolor": {
223
- "deprecated": true
224
- },
225
- "link": {
226
- "deprecated": true
227
- },
228
- "marginbottom": {
229
- "deprecated": true
230
- },
231
- "marginheight": {
232
- "deprecated": true
233
- },
234
- "marginleft": {
235
- "deprecated": true
236
- },
237
- "marginright": {
238
- "deprecated": true
239
- },
240
- "margintop": {
241
- "deprecated": true
242
- },
243
- "marginwidth": {
244
- "deprecated": true
245
- },
246
- "text": {
247
- "deprecated": true
248
- },
249
- "vlink": {
250
- "deprecated": true
251
- }
252
- }
253
- },
254
-
255
- "br": {
256
- "flow": true,
257
- "phrasing": true,
258
- "void": true,
259
- "attributes": {
260
- "clear": {
261
- "deprecated": true
262
- }
263
- }
264
- },
265
-
266
- "button": {
267
- "flow": true,
268
- "phrasing": true,
269
- "interactive": true,
270
- "labelable": true,
271
- "attributes": {
272
- "autofocus": {
273
- "boolean": true
274
- },
275
- "datafld": {
276
- "deprecated": true
277
- },
278
- "dataformatas": {
279
- "deprecated": true
280
- },
281
- "datasrc": {
282
- "deprecated": true
283
- },
284
- "disabled": {
285
- "boolean": true
286
- },
287
- "type": {
288
- "required": true,
289
- "enum": ["submit", "reset", "button"]
290
- }
291
- },
292
- "permittedContent": ["@phrasing"],
293
- "permittedDescendants": [{ "exclude": ["@interactive"] }],
294
- "textContent": "accessible"
295
- },
296
-
297
- "canvas": {
298
- "flow": true,
299
- "phrasing": true,
300
- "embedded": true,
301
- "transparent": true
302
- },
303
-
304
- "caption": {
305
- "permittedContent": ["@flow"],
306
- "permittedDescendants": [{ "exclude": ["table"] }],
307
- "attributes": {
308
- "align": {
309
- "deprecated": true
310
- }
311
- }
312
- },
313
-
314
- "center": {
315
- "deprecated": {
316
- "message": "use CSS instead",
317
- "documentation": "Use the CSS `text-align` or `margin: auto` properties instead.",
318
- "source": "html4"
319
- }
320
- },
321
-
322
- "cite": {
323
- "flow": true,
324
- "phrasing": true,
325
- "permittedContent": ["@phrasing"]
326
- },
327
-
328
- "code": {
329
- "flow": true,
330
- "phrasing": true,
331
- "permittedContent": ["@phrasing"]
332
- },
333
-
334
- "col": {
335
- "attributes": {
336
- "align": {
337
- "deprecated": true
338
- },
339
- "char": {
340
- "deprecated": true
341
- },
342
- "charoff": {
343
- "deprecated": true
344
- },
345
- "span": {
346
- "enum": ["/\\d+/"]
347
- },
348
- "valign": {
349
- "deprecated": true
350
- },
351
- "width": {
352
- "deprecated": true
353
- }
354
- },
355
- "void": true
356
- },
357
-
358
- "colgroup": {
359
- "implicitClosed": ["colgroup"],
360
- "attributes": {
361
- "span": {
362
- "enum": ["/\\d+/"]
363
- }
364
- },
365
- "permittedContent": ["col", "template"]
366
- },
367
-
368
- "data": {
369
- "flow": true,
370
- "phrasing": true,
371
- "permittedContent": ["@phrasing"]
372
- },
373
-
374
- "datalist": {
375
- "flow": true,
376
- "phrasing": true,
377
- "permittedContent": ["@phrasing", "option"]
378
- },
379
-
380
- "dd": {
381
- "implicitClosed": ["dd", "dt"],
382
- "permittedContent": ["@flow"],
383
- "requiredAncestors": ["dl > dd", "dl > div > dd"]
384
- },
385
-
386
- "del": {
387
- "flow": true,
388
- "phrasing": true,
389
- "transparent": true
390
- },
391
-
392
- "details": {
393
- "flow": true,
394
- "sectioning": true,
395
- "interactive": true,
396
- "attributes": {
397
- "open": {
398
- "boolean": true
399
- }
400
- },
401
- "permittedContent": ["summary", "@flow"],
402
- "permittedOrder": ["summary", "@flow"],
403
- "requiredContent": ["summary"]
404
- },
405
-
406
- "dfn": {
407
- "flow": true,
408
- "phrasing": true,
409
- "permittedContent": ["@phrasing"],
410
- "permittedDescendants": [{ "exclude": ["dfn"] }]
411
- },
412
-
413
- "dir": {
414
- "deprecated": {
415
- "documentation": "The non-standard `<dir>` element has no direct replacement but MDN recommends replacing with `<ul>` and CSS.",
416
- "source": "html4"
417
- }
418
- },
419
-
420
- "div": {
421
- "flow": true,
422
- "permittedContent": ["@flow", "dt", "dd"],
423
- "attributes": {
424
- "align": {
425
- "deprecated": true
426
- },
427
- "datafld": {
428
- "deprecated": true
429
- },
430
- "dataformatas": {
431
- "deprecated": true
432
- },
433
- "datasrc": {
434
- "deprecated": true
435
- }
436
- }
437
- },
438
-
439
- "dl": {
440
- "flow": true,
441
- "permittedContent": ["@script", "dt", "dd", "div"],
442
- "attributes": {
443
- "compact": {
444
- "deprecated": true
445
- }
446
- }
447
- },
448
-
449
- "dt": {
450
- "implicitClosed": ["dd", "dt"],
451
- "permittedContent": ["@flow"],
452
- "permittedDescendants": [{ "exclude": ["header", "footer", "@sectioning", "@heading"] }],
453
- "requiredAncestors": ["dl > dt", "dl > div > dt"]
454
- },
455
-
456
- "em": {
457
- "flow": true,
458
- "phrasing": true,
459
- "permittedContent": ["@phrasing"]
460
- },
461
-
462
- "embed": {
463
- "flow": true,
464
- "phrasing": true,
465
- "embedded": true,
466
- "interactive": true,
467
- "void": true,
468
- "attributes": {
469
- "src": {
470
- "required": true,
471
- "enum": ["/.+/"]
472
- },
473
- "title": {
474
- "required": true
475
- }
476
- }
477
- },
478
-
479
- "fieldset": {
480
- "flow": true,
481
- "attributes": {
482
- "datafld": {
483
- "deprecated": true
484
- },
485
- "disabled": {
486
- "boolean": true
487
- }
488
- },
489
- "permittedContent": ["@flow", "legend?"],
490
- "permittedOrder": ["legend", "@flow"]
491
- },
492
-
493
- "figcaption": {
494
- "permittedContent": ["@flow"]
495
- },
496
-
497
- "figure": {
498
- "flow": true,
499
- "permittedContent": ["@flow", "figcaption?"],
500
- "permittedOrder": ["figcaption", "@flow", "figcaption"]
501
- },
502
-
503
- "font": {
504
- "deprecated": {
505
- "message": "use CSS instead",
506
- "documentation": "Use CSS font properties instead.",
507
- "source": "html4"
508
- }
509
- },
510
-
511
- "footer": {
512
- "flow": true,
513
- "permittedContent": ["@flow"],
514
- "permittedDescendants": [{ "exclude": ["header", "footer", "main"] }]
515
- },
516
-
517
- "form": {
518
- "flow": true,
519
- "form": true,
520
- "attributes": {
521
- "accept": {
522
- "deprecated": true
523
- },
524
- "autocomplete": {
525
- "enum": ["on", "off"]
526
- },
527
- "method": {
528
- "enum": ["get", "post"]
529
- },
530
- "novalidate": {
531
- "boolean": true
532
- }
533
- },
534
- "permittedContent": ["@flow"],
535
- "permittedDescendants": [{ "exclude": ["@form"] }]
536
- },
537
-
538
- "frame": {
539
- "deprecated": {
540
- "documentation": "The `<frame>` element can be replaced with the `<iframe>` element but a better solution is to remove usage of frames entirely.",
541
- "source": "html5"
542
- },
543
- "attributes": {
544
- "datafld": {
545
- "deprecated": true
546
- },
547
- "datasrc": {
548
- "deprecated": true
549
- },
550
- "title": {
551
- "required": true
552
- }
553
- }
554
- },
555
-
556
- "frameset": {
557
- "deprecated": {
558
- "documentation": "The `<frameset>` element can be replaced with the `<iframe>` element but a better solution is to remove usage of frames entirely.",
559
- "source": "html5"
560
- }
561
- },
562
-
563
- "h1": {
564
- "flow": true,
565
- "heading": true,
566
- "permittedContent": ["@phrasing"],
567
- "attributes": {
568
- "align": {
569
- "deprecated": true
570
- }
571
- }
572
- },
573
-
574
- "h2": {
575
- "flow": true,
576
- "heading": true,
577
- "permittedContent": ["@phrasing"],
578
- "attributes": {
579
- "align": {
580
- "deprecated": true
581
- }
582
- }
583
- },
584
-
585
- "h3": {
586
- "flow": true,
587
- "heading": true,
588
- "permittedContent": ["@phrasing"],
589
- "attributes": {
590
- "align": {
591
- "deprecated": true
592
- }
593
- }
594
- },
595
-
596
- "h4": {
597
- "flow": true,
598
- "heading": true,
599
- "permittedContent": ["@phrasing"],
600
- "attributes": {
601
- "align": {
602
- "deprecated": true
603
- }
604
- }
605
- },
606
-
607
- "h5": {
608
- "flow": true,
609
- "heading": true,
610
- "permittedContent": ["@phrasing"],
611
- "attributes": {
612
- "align": {
613
- "deprecated": true
614
- }
615
- }
616
- },
617
-
618
- "h6": {
619
- "flow": true,
620
- "heading": true,
621
- "permittedContent": ["@phrasing"],
622
- "attributes": {
623
- "align": {
624
- "deprecated": true
625
- }
626
- }
627
- },
628
-
629
- "head": {
630
- "permittedContent": ["base?", "title?", "@meta"],
631
- "requiredContent": ["title"],
632
- "attributes": {
633
- "profile": {
634
- "deprecated": true
635
- }
636
- }
637
- },
638
-
639
- "header": {
640
- "flow": true,
641
- "permittedContent": ["@flow"],
642
- "permittedDescendants": [{ "exclude": ["header", "footer", "main"] }]
643
- },
644
-
645
- "hgroup": {
646
- "deprecated": true
647
- },
648
-
649
- "hr": {
650
- "flow": true,
651
- "void": true,
652
- "attributes": {
653
- "align": {
654
- "deprecated": true
655
- },
656
- "color": {
657
- "deprecated": true
658
- },
659
- "noshade": {
660
- "deprecated": true
661
- },
662
- "size": {
663
- "deprecated": true
664
- },
665
- "width": {
666
- "deprecated": true
667
- }
668
- }
669
- },
670
-
671
- "html": {
672
- "permittedContent": ["head?", "body?"],
673
- "permittedOrder": ["head", "body"],
674
- "requiredContent": ["head", "body"],
675
- "attributes": {
676
- "lang": {
677
- "required": true
678
- },
679
- "version": {
680
- "deprecated": true
681
- }
682
- }
683
- },
684
-
685
- "i": {
686
- "flow": true,
687
- "phrasing": true,
688
- "permittedContent": ["@phrasing"]
689
- },
690
-
691
- "iframe": {
692
- "flow": true,
693
- "phrasing": true,
694
- "embedded": true,
695
- "interactive": true,
696
- "attributes": {
697
- "align": {
698
- "deprecated": true
699
- },
700
- "allowtransparency": {
701
- "deprecated": true
702
- },
703
- "datafld": {
704
- "deprecated": true
705
- },
706
- "datasrc": {
707
- "deprecated": true
708
- },
709
- "frameborder": {
710
- "deprecated": true
711
- },
712
- "hspace": {
713
- "deprecated": true
714
- },
715
- "marginheight": {
716
- "deprecated": true
717
- },
718
- "marginwidth": {
719
- "deprecated": true
720
- },
721
- "scrolling": {
722
- "deprecated": true
723
- },
724
- "src": {
725
- "enum": ["/.+/"]
726
- },
727
- "title": {
728
- "required": true
729
- },
730
- "vspace": {
731
- "deprecated": true
732
- }
733
- },
734
- "permittedContent": []
735
- },
736
-
737
- "img": {
738
- "flow": true,
739
- "phrasing": true,
740
- "embedded": true,
741
- "interactive": ["hasAttribute", "usemap"],
742
- "void": true,
743
- "attributes": {
744
- "align": {
745
- "deprecated": true
746
- },
747
- "border": {
748
- "deprecated": true
749
- },
750
- "crossorigin": {
751
- "omit": true,
752
- "enum": ["anonymous", "use-credentials"]
753
- },
754
- "datafld": {
755
- "deprecated": true
756
- },
757
- "datasrc": {
758
- "deprecated": true
759
- },
760
- "decoding": {
761
- "enum": ["sync", "async", "auto"]
762
- },
763
- "hspace": {
764
- "deprecated": true
765
- },
766
- "ismap": {
767
- "boolean": true
768
- },
769
- "lowsrc": {
770
- "deprecated": true
771
- },
772
- "name": {
773
- "deprecated": true
774
- },
775
- "src": {
776
- "required": true,
777
- "enum": ["/.+/"]
778
- },
779
- "srcset": {
780
- "enum": ["/[^]+/"]
781
- },
782
- "vspace": {
783
- "deprecated": true
784
- }
785
- }
786
- },
787
-
788
- "input": {
789
- "flow": true,
790
- "phrasing": true,
791
- "interactive": ["matchAttribute", ["type", "!=", "hidden"]],
792
- "void": true,
793
- "labelable": ["matchAttribute", ["type", "!=", "hidden"]],
794
- "attributes": {
795
- "align": {
796
- "deprecated": true
797
- },
798
- "autofocus": {
799
- "boolean": true
800
- },
801
- "capture": {
802
- "omit": true,
803
- "enum": ["environment", "user"]
804
- },
805
- "checked": {
806
- "boolean": true
807
- },
808
- "datafld": {
809
- "deprecated": true
810
- },
811
- "dataformatas": {
812
- "deprecated": true
813
- },
814
- "datasrc": {
815
- "deprecated": true
816
- },
817
- "disabled": {
818
- "boolean": true
819
- },
820
- "hspace": {
821
- "deprecated": true
822
- },
823
- "inputmode": {
824
- "enum": ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"]
825
- },
826
- "ismap": {
827
- "deprecated": true
828
- },
829
- "multiple": {
830
- "boolean": true
831
- },
832
- "readonly": {
833
- "boolean": true
834
- },
835
- "required": {
836
- "boolean": true
837
- },
838
- "spellcheck": {
839
- "enum": ["default", "false", "true"]
840
- },
841
- "type": {
842
- "required": true,
843
- "enum": [
844
- "button",
845
- "checkbox",
846
- "color",
847
- "date",
848
- "datetime-local",
849
- "email",
850
- "file",
851
- "hidden",
852
- "image",
853
- "month",
854
- "number",
855
- "password",
856
- "radio",
857
- "range",
858
- "reset",
859
- "search",
860
- "submit",
861
- "tel",
862
- "text",
863
- "time",
864
- "url",
865
- "week"
866
- ]
867
- },
868
- "usemap": {
869
- "deprecated": true
870
- },
871
- "vspace": {
872
- "deprecated": true
873
- }
874
- }
875
- },
876
-
877
- "ins": {
878
- "flow": true,
879
- "phrasing": true,
880
- "transparent": true
881
- },
882
-
883
- "isindex": {
884
- "deprecated": {
885
- "source": "html4"
886
- }
887
- },
888
-
889
- "kbd": {
890
- "flow": true,
891
- "phrasing": true,
892
- "permittedContent": ["@phrasing"]
893
- },
894
-
895
- "keygen": {
896
- "flow": true,
897
- "phrasing": true,
898
- "interactive": true,
899
- "void": true,
900
- "labelable": true
901
- },
902
-
903
- "label": {
904
- "flow": true,
905
- "phrasing": true,
906
- "interactive": true,
907
- "permittedContent": ["@phrasing"],
908
- "permittedDescendants": [{ "exclude": ["label"] }],
909
- "attributes": {
910
- "datafld": {
911
- "deprecated": true
912
- },
913
- "dataformatas": {
914
- "deprecated": true
915
- },
916
- "datasrc": {
917
- "deprecated": true
918
- }
919
- }
920
- },
921
-
922
- "legend": {
923
- "permittedContent": ["@phrasing", "@heading"],
924
- "attributes": {
925
- "align": {
926
- "deprecated": true
927
- },
928
- "datafld": {
929
- "deprecated": true
930
- },
931
- "dataformatas": {
932
- "deprecated": true
933
- },
934
- "datasrc": {
935
- "deprecated": true
936
- }
937
- }
938
- },
939
-
940
- "li": {
941
- "implicitClosed": ["li"],
942
- "permittedContent": ["@flow"],
943
- "attributes": {
944
- "type": {
945
- "deprecated": true
946
- }
947
- }
948
- },
949
-
950
- "link": {
951
- "metadata": true,
952
- "void": true,
953
- "attributes": {
954
- "charset": {
955
- "deprecated": true
956
- },
957
- "crossorigin": {
958
- "omit": true,
959
- "enum": ["anonymous", "use-credentials"]
960
- },
961
- "href": {
962
- "required": true,
963
- "enum": ["/.+/"]
964
- },
965
- "integrity": {
966
- "enum": ["/.+/"]
967
- },
968
- "methods": {
969
- "deprecated": true
970
- },
971
- "target": {
972
- "deprecated": true
973
- },
974
- "urn": {
975
- "deprecated": true
976
- }
977
- }
978
- },
979
-
980
- "listing": {
981
- "deprecated": {
982
- "source": "html32"
983
- }
984
- },
985
-
986
- "main": {
987
- "flow": true
988
- },
989
-
990
- "map": {
991
- "flow": true,
992
- "phrasing": true,
993
- "transparent": true
994
- },
995
-
996
- "mark": {
997
- "flow": true,
998
- "phrasing": true,
999
- "permittedContent": ["@phrasing"]
1000
- },
1001
-
1002
- "marquee": {
1003
- "deprecated": {
1004
- "documentation": "Marked as obsolete by both W3C and WHATWG standards but still implemented in most browsers. Animated text should be avoided for accessibility reasons as well.",
1005
- "source": "html5"
1006
- },
1007
- "attributes": {
1008
- "datafld": {
1009
- "deprecated": true
1010
- },
1011
- "dataformatas": {
1012
- "deprecated": true
1013
- },
1014
- "datasrc": {
1015
- "deprecated": true
1016
- }
1017
- }
1018
- },
1019
-
1020
- "math": {
1021
- "flow": true,
1022
- "foreign": true,
1023
- "phrasing": true,
1024
- "embedded": true,
1025
- "attributes": {
1026
- "align": {
1027
- "deprecated": true
1028
- },
1029
- "dir": {
1030
- "enum": ["ltr", "rtl"]
1031
- },
1032
- "display": {
1033
- "enum": ["block", "inline"]
1034
- },
1035
- "hspace": {
1036
- "deprecated": true
1037
- },
1038
- "name": {
1039
- "deprecated": true
1040
- },
1041
- "overflow": {
1042
- "enum": ["linebreak", "scroll", "elide", "truncate", "scale"]
1043
- },
1044
- "vspace": {
1045
- "deprecated": true
1046
- }
1047
- }
1048
- },
1049
-
1050
- "meta": {
1051
- "metadata": true,
1052
- "void": true,
1053
- "attributes": {
1054
- "scheme": {
1055
- "deprecated": true
1056
- }
1057
- }
1058
- },
1059
-
1060
- "meter": {
1061
- "flow": true,
1062
- "phrasing": true,
1063
- "labelable": true,
1064
- "permittedContent": ["@phrasing"],
1065
- "permittedDescendants": [{ "exclude": "meter" }]
1066
- },
1067
-
1068
- "multicol": {
1069
- "deprecated": {
1070
- "message": "use CSS instead",
1071
- "documentation": "Use CSS columns instead.",
1072
- "source": "html5"
1073
- }
1074
- },
1075
-
1076
- "nav": {
1077
- "flow": true,
1078
- "sectioning": true,
1079
- "permittedContent": ["@flow"],
1080
- "permittedDescendants": [{ "exclude": "main" }]
1081
- },
1082
-
1083
- "nextid": {
1084
- "deprecated": {
1085
- "source": "html32"
1086
- }
1087
- },
1088
-
1089
- "nobr": {
1090
- "deprecated": {
1091
- "message": "use CSS instead",
1092
- "documentation": "Use CSS `white-space` property instead.",
1093
- "source": "non-standard"
1094
- }
1095
- },
1096
-
1097
- "noembed": {
1098
- "deprecated": {
1099
- "source": "non-standard"
1100
- }
1101
- },
1102
-
1103
- "noframes": {
1104
- "deprecated": {
1105
- "source": "html5"
1106
- }
1107
- },
1108
-
1109
- "noscript": {
1110
- "metadata": true,
1111
- "flow": true,
1112
- "phrasing": true,
1113
- "transparent": true,
1114
- "permittedDescendants": [{ "exclude": "noscript" }]
1115
- },
1116
-
1117
- "object": {
1118
- "flow": true,
1119
- "phrasing": true,
1120
- "embedded": true,
1121
- "interactive": ["hasAttribute", "usemap"],
1122
- "transparent": true,
1123
- "attributes": {
1124
- "align": {
1125
- "deprecated": true
1126
- },
1127
- "archive": {
1128
- "deprecated": true
1129
- },
1130
- "border": {
1131
- "deprecated": true
1132
- },
1133
- "classid": {
1134
- "deprecated": true
1135
- },
1136
- "code": {
1137
- "deprecated": true
1138
- },
1139
- "codebase": {
1140
- "deprecated": true
1141
- },
1142
- "codetype": {
1143
- "deprecated": true
1144
- },
1145
- "data": {
1146
- "enum": ["/.+/"]
1147
- },
1148
- "datafld": {
1149
- "deprecated": true
1150
- },
1151
- "dataformatas": {
1152
- "deprecated": true
1153
- },
1154
- "datasrc": {
1155
- "deprecated": true
1156
- },
1157
- "declare": {
1158
- "deprecated": true
1159
- },
1160
- "hspace": {
1161
- "deprecated": true
1162
- },
1163
- "standby": {
1164
- "deprecated": true
1165
- },
1166
- "vspace": {
1167
- "deprecated": true
1168
- }
1169
- },
1170
- "permittedContent": ["param", "@flow"],
1171
- "permittedOrder": ["param", "@flow"]
1172
- },
1173
-
1174
- "ol": {
1175
- "flow": true,
1176
- "attributes": {
1177
- "compact": {
1178
- "deprecated": true
1179
- },
1180
- "reversed": {
1181
- "boolean": true
1182
- },
1183
- "type": {
1184
- "enum": ["a", "A", "i", "I", "1"]
1185
- }
1186
- },
1187
- "permittedContent": ["@script", "li"]
1188
- },
1189
-
1190
- "optgroup": {
1191
- "implicitClosed": ["optgroup"],
1192
- "attributes": {
1193
- "disabled": {
1194
- "boolean": true
1195
- }
1196
- },
1197
- "permittedContent": ["@script", "option"]
1198
- },
1199
-
1200
- "option": {
1201
- "implicitClosed": ["option"],
1202
- "attributes": {
1203
- "dataformatas": {
1204
- "deprecated": true
1205
- },
1206
- "datasrc": {
1207
- "deprecated": true
1208
- },
1209
- "disabled": {
1210
- "boolean": true
1211
- },
1212
- "name": {
1213
- "deprecated": true
1214
- },
1215
- "selected": {
1216
- "boolean": true
1217
- }
1218
- },
1219
- "permittedContent": []
1220
- },
1221
-
1222
- "output": {
1223
- "flow": true,
1224
- "phrasing": true,
1225
- "labelable": true,
1226
- "permittedContent": ["@phrasing"]
1227
- },
1228
-
1229
- "p": {
1230
- "flow": true,
1231
- "implicitClosed": [
1232
- "address",
1233
- "article",
1234
- "aside",
1235
- "blockquote",
1236
- "div",
1237
- "dl",
1238
- "fieldset",
1239
- "footer",
1240
- "form",
1241
- "h1",
1242
- "h2",
1243
- "h3",
1244
- "h4",
1245
- "h5",
1246
- "h6",
1247
- "header",
1248
- "hgroup",
1249
- "hr",
1250
- "main",
1251
- "nav",
1252
- "ol",
1253
- "p",
1254
- "pre",
1255
- "section",
1256
- "table",
1257
- "ul"
1258
- ],
1259
- "permittedContent": ["@phrasing"],
1260
- "attributes": {
1261
- "align": {
1262
- "deprecated": true
1263
- }
1264
- }
1265
- },
1266
-
1267
- "param": {
1268
- "void": true,
1269
- "attributes": {
1270
- "datafld": {
1271
- "deprecated": true
1272
- },
1273
- "type": {
1274
- "deprecated": true
1275
- },
1276
- "valuetype": {
1277
- "deprecated": true
1278
- }
1279
- }
1280
- },
1281
-
1282
- "picture": {
1283
- "flow": true,
1284
- "phrasing": true,
1285
- "embedded": true,
1286
- "permittedContent": ["@script", "source", "img"],
1287
- "permittedOrder": ["source", "img"]
1288
- },
1289
-
1290
- "plaintext": {
1291
- "deprecated": {
1292
- "message": "use <pre> or CSS instead",
1293
- "documentation": "Use the `<pre>` element or use CSS to set a monospace font.",
1294
- "source": "html2"
1295
- }
1296
- },
1297
-
1298
- "pre": {
1299
- "flow": true,
1300
- "permittedContent": ["@phrasing"],
1301
- "attributes": {
1302
- "width": {
1303
- "deprecated": true
1304
- }
1305
- }
1306
- },
1307
-
1308
- "progress": {
1309
- "flow": true,
1310
- "phrasing": true,
1311
- "labelable": true,
1312
- "permittedContent": ["@phrasing"],
1313
- "permittedDescendants": [{ "exclude": "progress" }]
1314
- },
1315
-
1316
- "q": {
1317
- "flow": true,
1318
- "phrasing": true,
1319
- "permittedContent": ["@phrasing"]
1320
- },
1321
-
1322
- "rb": {
1323
- "implicitClosed": ["rb", "rt", "rtc", "rp"],
1324
- "permittedContent": ["@phrasing"]
1325
- },
1326
-
1327
- "rp": {
1328
- "implicitClosed": ["rb", "rt", "rtc", "rp"],
1329
- "permittedContent": ["@phrasing"]
1330
- },
1331
-
1332
- "rt": {
1333
- "implicitClosed": ["rb", "rt", "rtc", "rp"],
1334
- "permittedContent": ["@phrasing"]
1335
- },
1336
-
1337
- "rtc": {
1338
- "implicitClosed": ["rb", "rtc", "rp"],
1339
- "permittedContent": ["@phrasing", "rt"]
1340
- },
1341
-
1342
- "ruby": {
1343
- "flow": true,
1344
- "phrasing": true,
1345
- "permittedContent": ["@phrasing", "rb", "rp", "rt", "rtc"]
1346
- },
1347
-
1348
- "s": {
1349
- "flow": true,
1350
- "phrasing": true,
1351
- "permittedContent": ["@phrasing"]
1352
- },
1353
-
1354
- "samp": {
1355
- "flow": true,
1356
- "phrasing": true,
1357
- "permittedContent": ["@phrasing"]
1358
- },
1359
-
1360
- "script": {
1361
- "metadata": true,
1362
- "flow": true,
1363
- "phrasing": true,
1364
- "scriptSupporting": true,
1365
- "attributes": {
1366
- "async": {
1367
- "boolean": true
1368
- },
1369
- "crossorigin": {
1370
- "omit": true,
1371
- "enum": ["anonymous", "use-credentials"]
1372
- },
1373
- "defer": {
1374
- "boolean": true
1375
- },
1376
- "event": {
1377
- "deprecated": true
1378
- },
1379
- "for": {
1380
- "deprecated": true
1381
- },
1382
- "integrity": {
1383
- "enum": ["/.+/"]
1384
- },
1385
- "language": {
1386
- "deprecated": true
1387
- },
1388
- "nomodule": {
1389
- "boolean": true
1390
- },
1391
- "src": {
1392
- "enum": ["/.+/"]
1393
- }
1394
- }
1395
- },
1396
-
1397
- "section": {
1398
- "flow": true,
1399
- "sectioning": true,
1400
- "permittedContent": ["@flow"]
1401
- },
1402
-
1403
- "select": {
1404
- "flow": true,
1405
- "phrasing": true,
1406
- "interactive": true,
1407
- "labelable": true,
1408
- "attributes": {
1409
- "autofocus": {
1410
- "boolean": true
1411
- },
1412
- "disabled": {
1413
- "boolean": true
1414
- },
1415
- "multiple": {
1416
- "boolean": true
1417
- },
1418
- "required": {
1419
- "boolean": true
1420
- },
1421
- "size": {
1422
- "enum": ["/\\d+/"]
1423
- }
1424
- },
1425
- "permittedContent": ["@script", "datasrc", "datafld", "dataformatas", "option", "optgroup"]
1426
- },
1427
-
1428
- "slot": {
1429
- "flow": true,
1430
- "phrasing": true,
1431
- "transparent": true
1432
- },
1433
-
1434
- "small": {
1435
- "flow": true,
1436
- "phrasing": true,
1437
- "permittedContent": ["@phrasing"]
1438
- },
1439
-
1440
- "source": {
1441
- "void": true
1442
- },
1443
-
1444
- "spacer": {
1445
- "deprecated": {
1446
- "message": "use CSS instead",
1447
- "documentation": "Use CSS margin or padding instead.",
1448
- "source": "non-standard"
1449
- }
1450
- },
1451
-
1452
- "span": {
1453
- "flow": true,
1454
- "phrasing": true,
1455
- "permittedContent": ["@phrasing"],
1456
- "attributes": {
1457
- "datafld": {
1458
- "deprecated": true
1459
- },
1460
- "dataformatas": {
1461
- "deprecated": true
1462
- },
1463
- "datasrc": {
1464
- "deprecated": true
1465
- }
1466
- }
1467
- },
1468
-
1469
- "strike": {
1470
- "deprecated": {
1471
- "message": "use <del> or <s> instead",
1472
- "documentation": "Use the `<del>` or `<s>` element instead.",
1473
- "source": "html5"
1474
- }
1475
- },
1476
-
1477
- "strong": {
1478
- "flow": true,
1479
- "phrasing": true,
1480
- "permittedContent": ["@phrasing"]
1481
- },
1482
-
1483
- "style": {
1484
- "metadata": true
1485
- },
1486
-
1487
- "sub": {
1488
- "flow": true,
1489
- "phrasing": true,
1490
- "permittedContent": ["@phrasing"]
1491
- },
1492
-
1493
- "summary": {
1494
- "permittedContent": ["@phrasing", "@heading"]
1495
- },
1496
-
1497
- "sup": {
1498
- "flow": true,
1499
- "phrasing": true,
1500
- "permittedContent": ["@phrasing"]
1501
- },
1502
-
1503
- "svg": {
1504
- "flow": true,
1505
- "foreign": true,
1506
- "phrasing": true,
1507
- "embedded": true
1508
- },
1509
-
1510
- "table": {
1511
- "flow": true,
1512
- "permittedContent": ["@script", "caption?", "colgroup", "tbody", "tfoot?", "thead?", "tr"],
1513
- "permittedOrder": ["caption", "colgroup", "thead", "tbody", "tr", "tfoot"],
1514
- "attributes": {
1515
- "align": {
1516
- "deprecated": true
1517
- },
1518
- "background": {
1519
- "deprecated": true
1520
- },
1521
- "bgcolor": {
1522
- "deprecated": true
1523
- },
1524
- "bordercolor": {
1525
- "deprecated": true
1526
- },
1527
- "cellpadding": {
1528
- "deprecated": true
1529
- },
1530
- "cellspacing": {
1531
- "deprecated": true
1532
- },
1533
- "dataformatas": {
1534
- "deprecated": true
1535
- },
1536
- "datapagesize": {
1537
- "deprecated": true
1538
- },
1539
- "datasrc": {
1540
- "deprecated": true
1541
- },
1542
- "frame": {
1543
- "deprecated": true
1544
- },
1545
- "rules": {
1546
- "deprecated": true
1547
- },
1548
- "summary": {
1549
- "deprecated": true
1550
- },
1551
- "width": {
1552
- "deprecated": true
1553
- }
1554
- }
1555
- },
1556
-
1557
- "tbody": {
1558
- "implicitClosed": ["tbody", "tfoot"],
1559
- "permittedContent": ["@script", "tr"],
1560
- "attributes": {
1561
- "align": {
1562
- "deprecated": true
1563
- },
1564
- "background": {
1565
- "deprecated": true
1566
- },
1567
- "char": {
1568
- "deprecated": true
1569
- },
1570
- "charoff": {
1571
- "deprecated": true
1572
- },
1573
- "valign": {
1574
- "deprecated": true
1575
- }
1576
- }
1577
- },
1578
-
1579
- "td": {
1580
- "flow": true,
1581
- "implicitClosed": ["td", "th"],
1582
- "attributes": {
1583
- "align": {
1584
- "deprecated": true
1585
- },
1586
- "axis": {
1587
- "deprecated": true
1588
- },
1589
- "background": {
1590
- "deprecated": true
1591
- },
1592
- "bgcolor": {
1593
- "deprecated": true
1594
- },
1595
- "char": {
1596
- "deprecated": true
1597
- },
1598
- "charoff": {
1599
- "deprecated": true
1600
- },
1601
- "colspan": {
1602
- "enum": ["/\\d+/"]
1603
- },
1604
- "height": {
1605
- "deprecated": true
1606
- },
1607
- "nowrap": {
1608
- "deprecated": true
1609
- },
1610
- "rowspan": {
1611
- "enum": ["/\\d+/"]
1612
- },
1613
- "scope": {
1614
- "deprecated": true
1615
- },
1616
- "valign": {
1617
- "deprecated": true
1618
- },
1619
- "width": {
1620
- "deprecated": true
1621
- }
1622
- },
1623
- "permittedContent": ["@flow"]
1624
- },
1625
-
1626
- "template": {
1627
- "metadata": true,
1628
- "flow": true,
1629
- "phrasing": true,
1630
- "scriptSupporting": true
1631
- },
1632
-
1633
- "textarea": {
1634
- "flow": true,
1635
- "phrasing": true,
1636
- "interactive": true,
1637
- "labelable": true,
1638
- "attributes": {
1639
- "autocomplete": {
1640
- "enum": ["on", "off"]
1641
- },
1642
- "autofocus": {
1643
- "boolean": true
1644
- },
1645
- "cols": {
1646
- "enum": ["/\\d+/"]
1647
- },
1648
- "datafld": {
1649
- "deprecated": true
1650
- },
1651
- "datasrc": {
1652
- "deprecated": true
1653
- },
1654
- "disabled": {
1655
- "boolean": true
1656
- },
1657
- "maxlength": {
1658
- "enum": ["/\\d+/"]
1659
- },
1660
- "minlength": {
1661
- "enum": ["/\\d+/"]
1662
- },
1663
- "readonly": {
1664
- "boolean": true
1665
- },
1666
- "required": {
1667
- "boolean": true
1668
- },
1669
- "rows": {
1670
- "enum": ["/\\d+/"]
1671
- },
1672
- "spellcheck": {
1673
- "enum": ["true", "default", "false"]
1674
- },
1675
- "wrap": {
1676
- "enum": ["hard", "soft"]
1677
- }
1678
- },
1679
- "permittedContent": []
1680
- },
1681
-
1682
- "tfoot": {
1683
- "implicitClosed": ["tbody"],
1684
- "permittedContent": ["@script", "tr"],
1685
- "attributes": {
1686
- "align": {
1687
- "deprecated": true
1688
- },
1689
- "background": {
1690
- "deprecated": true
1691
- },
1692
- "char": {
1693
- "deprecated": true
1694
- },
1695
- "charoff": {
1696
- "deprecated": true
1697
- },
1698
- "valign": {
1699
- "deprecated": true
1700
- }
1701
- }
1702
- },
1703
-
1704
- "th": {
1705
- "flow": true,
1706
- "implicitClosed": ["td", "th"],
1707
- "attributes": {
1708
- "align": {
1709
- "deprecated": true
1710
- },
1711
- "axis": {
1712
- "deprecated": true
1713
- },
1714
- "background": {
1715
- "deprecated": true
1716
- },
1717
- "bgcolor": {
1718
- "deprecated": true
1719
- },
1720
- "char": {
1721
- "deprecated": true
1722
- },
1723
- "charoff": {
1724
- "deprecated": true
1725
- },
1726
- "colspan": {
1727
- "enum": ["/\\d+/"]
1728
- },
1729
- "height": {
1730
- "deprecated": true
1731
- },
1732
- "nowrap": {
1733
- "deprecated": true
1734
- },
1735
- "rowspan": {
1736
- "enum": ["/\\d+/"]
1737
- },
1738
- "scope": {
1739
- "required": true,
1740
- "enum": ["row", "col", "rowgroup", "colgroup", "auto"]
1741
- },
1742
- "valign": {
1743
- "deprecated": true
1744
- },
1745
- "width": {
1746
- "deprecated": true
1747
- }
1748
- },
1749
- "permittedContent": ["@flow"],
1750
- "permittedDescendants": [{ "exclude": ["header", "footer", "@sectioning", "@heading"] }]
1751
- },
1752
-
1753
- "thead": {
1754
- "implicitClosed": ["tbody", "tfoot"],
1755
- "permittedContent": ["@script", "tr"],
1756
- "attributes": {
1757
- "align": {
1758
- "deprecated": true
1759
- },
1760
- "background": {
1761
- "deprecated": true
1762
- },
1763
- "char": {
1764
- "deprecated": true
1765
- },
1766
- "charoff": {
1767
- "deprecated": true
1768
- },
1769
- "valign": {
1770
- "deprecated": true
1771
- }
1772
- }
1773
- },
1774
-
1775
- "time": {
1776
- "flow": true,
1777
- "phrasing": true,
1778
- "permittedContent": ["@phrasing"]
1779
- },
1780
-
1781
- "title": {
1782
- "metadata": true,
1783
- "permittedContent": []
1784
- },
1785
-
1786
- "tr": {
1787
- "implicitClosed": ["tr"],
1788
- "permittedContent": ["@script", "td", "th"],
1789
- "attributes": {
1790
- "align": {
1791
- "deprecated": true
1792
- },
1793
- "background": {
1794
- "deprecated": true
1795
- },
1796
- "bgcolor": {
1797
- "deprecated": true
1798
- },
1799
- "char": {
1800
- "deprecated": true
1801
- },
1802
- "charoff": {
1803
- "deprecated": true
1804
- },
1805
- "valign": {
1806
- "deprecated": true
1807
- }
1808
- }
1809
- },
1810
-
1811
- "track": {
1812
- "void": true
1813
- },
1814
-
1815
- "tt": {
1816
- "deprecated": {
1817
- "documentation": "Use a more semantically correct element such as `<code>`, `<var>` or `<pre>`.",
1818
- "source": "html4"
1819
- }
1820
- },
1821
-
1822
- "u": {
1823
- "flow": true,
1824
- "phrasing": true,
1825
- "permittedContent": ["@phrasing"]
1826
- },
1827
-
1828
- "ul": {
1829
- "flow": true,
1830
- "permittedContent": ["@script", "li"],
1831
- "attributes": {
1832
- "compact": {
1833
- "deprecated": true
1834
- },
1835
- "type": {
1836
- "deprecated": true
1837
- }
1838
- }
1839
- },
1840
-
1841
- "var": {
1842
- "flow": true,
1843
- "phrasing": true,
1844
- "permittedContent": ["@phrasing"]
1845
- },
1846
-
1847
- "video": {
1848
- "flow": true,
1849
- "phrasing": true,
1850
- "embedded": true,
1851
- "interactive": ["hasAttribute", "controls"],
1852
- "transparent": ["@flow"],
1853
- "attributes": {
1854
- "preload": {
1855
- "omit": true,
1856
- "enum": ["none", "metadata", "auto"]
1857
- }
1858
- },
1859
- "permittedContent": ["@flow", "track", "source"],
1860
- "permittedDescendants": [{ "exclude": ["audio", "video"] }],
1861
- "permittedOrder": ["source", "track", "@flow"]
1862
- },
1863
-
1864
- "wbr": {
1865
- "flow": true,
1866
- "phrasing": true,
1867
- "void": true
1868
- },
1869
-
1870
- "xmp": {
1871
- "deprecated": {
1872
- "documentation": "Use `<pre>` or `<code>` and escape content using HTML entities instead.",
1873
- "source": "html32"
1874
- }
1875
- }
1876
- }