@shgysk8zer0/polyfills 0.3.1 → 0.3.3

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.
@@ -1,766 +0,0 @@
1
- /**
2
- * @copyright 2023 Chris Zuber <admin@kernvalley.us>
3
- * @see https://wicg.github.io/sanitizer-api/#default-configuration-dictionary
4
- */
5
- export const SanitizerConfigW3C = JSON.parse(`{
6
- "allowCustomElements": false,
7
- "allowUnknownMarkup": false,
8
- "allowElements": [
9
- "a",
10
- "abbr",
11
- "acronym",
12
- "address",
13
- "area",
14
- "article",
15
- "aside",
16
- "audio",
17
- "b",
18
- "bdi",
19
- "bdo",
20
- "bgsound",
21
- "big",
22
- "blockquote",
23
- "body",
24
- "br",
25
- "button",
26
- "canvas",
27
- "caption",
28
- "center",
29
- "cite",
30
- "code",
31
- "col",
32
- "colgroup",
33
- "datalist",
34
- "dd",
35
- "del",
36
- "details",
37
- "dfn",
38
- "dialog",
39
- "dir",
40
- "div",
41
- "dl",
42
- "dt",
43
- "em",
44
- "fieldset",
45
- "figcaption",
46
- "figure",
47
- "font",
48
- "footer",
49
- "form",
50
- "h1",
51
- "h2",
52
- "h3",
53
- "h4",
54
- "h5",
55
- "h6",
56
- "head",
57
- "header",
58
- "hgroup",
59
- "hr",
60
- "html",
61
- "i",
62
- "img",
63
- "input",
64
- "ins",
65
- "kbd",
66
- "keygen",
67
- "label",
68
- "layer",
69
- "legend",
70
- "li",
71
- "link",
72
- "listing",
73
- "main",
74
- "map",
75
- "mark",
76
- "marquee",
77
- "menu",
78
- "meta",
79
- "meter",
80
- "nav",
81
- "nobr",
82
- "ol",
83
- "optgroup",
84
- "option",
85
- "output",
86
- "p",
87
- "picture",
88
- "popup",
89
- "pre",
90
- "progress",
91
- "q",
92
- "rb",
93
- "rp",
94
- "rt",
95
- "rtc",
96
- "ruby",
97
- "s",
98
- "samp",
99
- "section",
100
- "select",
101
- "selectmenu",
102
- "small",
103
- "source",
104
- "span",
105
- "strike",
106
- "strong",
107
- "style",
108
- "sub",
109
- "summary",
110
- "sup",
111
- "table",
112
- "tbody",
113
- "td",
114
- "tfoot",
115
- "th",
116
- "thead",
117
- "time",
118
- "tr",
119
- "track",
120
- "tt",
121
- "u",
122
- "ul",
123
- "var",
124
- "video",
125
- "wbr"
126
- ],
127
- "allowAttributes": {
128
- "abbr": [
129
- "*"
130
- ],
131
- "accept": [
132
- "*"
133
- ],
134
- "accept-charset": [
135
- "*"
136
- ],
137
- "accesskey": [
138
- "*"
139
- ],
140
- "action": [
141
- "*"
142
- ],
143
- "align": [
144
- "*"
145
- ],
146
- "alink": [
147
- "*"
148
- ],
149
- "allow": [
150
- "*"
151
- ],
152
- "allowfullscreen": [
153
- "*"
154
- ],
155
- "alt": [
156
- "*"
157
- ],
158
- "anchor": [
159
- "*"
160
- ],
161
- "archive": [
162
- "*"
163
- ],
164
- "as": [
165
- "*"
166
- ],
167
- "async": [
168
- "*"
169
- ],
170
- "autocapitalize": [
171
- "*"
172
- ],
173
- "autocomplete": [
174
- "*"
175
- ],
176
- "autocorrect": [
177
- "*"
178
- ],
179
- "autofocus": [
180
- "*"
181
- ],
182
- "autopictureinpicture": [
183
- "*"
184
- ],
185
- "autoplay": [
186
- "*"
187
- ],
188
- "axis": [
189
- "*"
190
- ],
191
- "background": [
192
- "*"
193
- ],
194
- "behavior": [
195
- "*"
196
- ],
197
- "bgcolor": [
198
- "*"
199
- ],
200
- "border": [
201
- "*"
202
- ],
203
- "bordercolor": [
204
- "*"
205
- ],
206
- "capture": [
207
- "*"
208
- ],
209
- "cellpadding": [
210
- "*"
211
- ],
212
- "cellspacing": [
213
- "*"
214
- ],
215
- "challenge": [
216
- "*"
217
- ],
218
- "char": [
219
- "*"
220
- ],
221
- "charoff": [
222
- "*"
223
- ],
224
- "charset": [
225
- "*"
226
- ],
227
- "checked": [
228
- "*"
229
- ],
230
- "cite": [
231
- "*"
232
- ],
233
- "class": [
234
- "*"
235
- ],
236
- "classid": [
237
- "*"
238
- ],
239
- "clear": [
240
- "*"
241
- ],
242
- "code": [
243
- "*"
244
- ],
245
- "codebase": [
246
- "*"
247
- ],
248
- "codetype": [
249
- "*"
250
- ],
251
- "color": [
252
- "*"
253
- ],
254
- "cols": [
255
- "*"
256
- ],
257
- "colspan": [
258
- "*"
259
- ],
260
- "compact": [
261
- "*"
262
- ],
263
- "content": [
264
- "*"
265
- ],
266
- "contenteditable": [
267
- "*"
268
- ],
269
- "controls": [
270
- "*"
271
- ],
272
- "controlslist": [
273
- "*"
274
- ],
275
- "conversiondestination": [
276
- "*"
277
- ],
278
- "coords": [
279
- "*"
280
- ],
281
- "crossorigin": [
282
- "*"
283
- ],
284
- "csp": [
285
- "*"
286
- ],
287
- "data": [
288
- "*"
289
- ],
290
- "datetime": [
291
- "*"
292
- ],
293
- "declare": [
294
- "*"
295
- ],
296
- "decoding": [
297
- "*"
298
- ],
299
- "default": [
300
- "*"
301
- ],
302
- "defer": [
303
- "*"
304
- ],
305
- "dir": [
306
- "*"
307
- ],
308
- "direction": [
309
- "*"
310
- ],
311
- "dirname": [
312
- "*"
313
- ],
314
- "disabled": [
315
- "*"
316
- ],
317
- "disablepictureinpicture": [
318
- "*"
319
- ],
320
- "disableremoteplayback": [
321
- "*"
322
- ],
323
- "disallowdocumentaccess": [
324
- "*"
325
- ],
326
- "download": [
327
- "*"
328
- ],
329
- "draggable": [
330
- "*"
331
- ],
332
- "elementtiming": [
333
- "*"
334
- ],
335
- "enctype": [
336
- "*"
337
- ],
338
- "end": [
339
- "*"
340
- ],
341
- "enterkeyhint": [
342
- "*"
343
- ],
344
- "event": [
345
- "*"
346
- ],
347
- "exportparts": [
348
- "*"
349
- ],
350
- "face": [
351
- "*"
352
- ],
353
- "for": [
354
- "*"
355
- ],
356
- "form": [
357
- "*"
358
- ],
359
- "formaction": [
360
- "*"
361
- ],
362
- "formenctype": [
363
- "*"
364
- ],
365
- "formmethod": [
366
- "*"
367
- ],
368
- "formnovalidate": [
369
- "*"
370
- ],
371
- "formtarget": [
372
- "*"
373
- ],
374
- "frame": [
375
- "*"
376
- ],
377
- "frameborder": [
378
- "*"
379
- ],
380
- "headers": [
381
- "*"
382
- ],
383
- "height": [
384
- "*"
385
- ],
386
- "hidden": [
387
- "*"
388
- ],
389
- "high": [
390
- "*"
391
- ],
392
- "href": [
393
- "*"
394
- ],
395
- "hreflang": [
396
- "*"
397
- ],
398
- "hreftranslate": [
399
- "*"
400
- ],
401
- "hspace": [
402
- "*"
403
- ],
404
- "http-equiv": [
405
- "*"
406
- ],
407
- "id": [
408
- "*"
409
- ],
410
- "imagesizes": [
411
- "*"
412
- ],
413
- "imagesrcset": [
414
- "*"
415
- ],
416
- "importance": [
417
- "*"
418
- ],
419
- "impressiondata": [
420
- "*"
421
- ],
422
- "impressionexpiry": [
423
- "*"
424
- ],
425
- "incremental": [
426
- "*"
427
- ],
428
- "inert": [
429
- "*"
430
- ],
431
- "inputmode": [
432
- "*"
433
- ],
434
- "integrity": [
435
- "*"
436
- ],
437
- "invisible": [
438
- "*"
439
- ],
440
- "is": [
441
- "*"
442
- ],
443
- "ismap": [
444
- "*"
445
- ],
446
- "keytype": [
447
- "*"
448
- ],
449
- "kind": [
450
- "*"
451
- ],
452
- "label": [
453
- "*"
454
- ],
455
- "lang": [
456
- "*"
457
- ],
458
- "language": [
459
- "*"
460
- ],
461
- "latencyhint": [
462
- "*"
463
- ],
464
- "leftmargin": [
465
- "*"
466
- ],
467
- "link": [
468
- "*"
469
- ],
470
- "list": [
471
- "*"
472
- ],
473
- "loading": [
474
- "*"
475
- ],
476
- "longdesc": [
477
- "*"
478
- ],
479
- "loop": [
480
- "*"
481
- ],
482
- "low": [
483
- "*"
484
- ],
485
- "lowsrc": [
486
- "*"
487
- ],
488
- "manifest": [
489
- "*"
490
- ],
491
- "marginheight": [
492
- "*"
493
- ],
494
- "marginwidth": [
495
- "*"
496
- ],
497
- "max": [
498
- "*"
499
- ],
500
- "maxlength": [
501
- "*"
502
- ],
503
- "mayscript": [
504
- "*"
505
- ],
506
- "media": [
507
- "*"
508
- ],
509
- "method": [
510
- "*"
511
- ],
512
- "min": [
513
- "*"
514
- ],
515
- "minlength": [
516
- "*"
517
- ],
518
- "multiple": [
519
- "*"
520
- ],
521
- "muted": [
522
- "*"
523
- ],
524
- "name": [
525
- "*"
526
- ],
527
- "nohref": [
528
- "*"
529
- ],
530
- "nomodule": [
531
- "*"
532
- ],
533
- "nonce": [
534
- "*"
535
- ],
536
- "noresize": [
537
- "*"
538
- ],
539
- "noshade": [
540
- "*"
541
- ],
542
- "novalidate": [
543
- "*"
544
- ],
545
- "nowrap": [
546
- "*"
547
- ],
548
- "object": [
549
- "*"
550
- ],
551
- "open": [
552
- "*"
553
- ],
554
- "optimum": [
555
- "*"
556
- ],
557
- "part": [
558
- "*"
559
- ],
560
- "pattern": [
561
- "*"
562
- ],
563
- "ping": [
564
- "*"
565
- ],
566
- "placeholder": [
567
- "*"
568
- ],
569
- "playsinline": [
570
- "*"
571
- ],
572
- "policy": [
573
- "*"
574
- ],
575
- "poster": [
576
- "*"
577
- ],
578
- "preload": [
579
- "*"
580
- ],
581
- "pseudo": [
582
- "*"
583
- ],
584
- "readonly": [
585
- "*"
586
- ],
587
- "referrerpolicy": [
588
- "*"
589
- ],
590
- "rel": [
591
- "*"
592
- ],
593
- "reportingorigin": [
594
- "*"
595
- ],
596
- "required": [
597
- "*"
598
- ],
599
- "resources": [
600
- "*"
601
- ],
602
- "rev": [
603
- "*"
604
- ],
605
- "reversed": [
606
- "*"
607
- ],
608
- "role": [
609
- "*"
610
- ],
611
- "rows": [
612
- "*"
613
- ],
614
- "rowspan": [
615
- "*"
616
- ],
617
- "rules": [
618
- "*"
619
- ],
620
- "sandbox": [
621
- "*"
622
- ],
623
- "scheme": [
624
- "*"
625
- ],
626
- "scope": [
627
- "*"
628
- ],
629
- "scopes": [
630
- "*"
631
- ],
632
- "scrollamount": [
633
- "*"
634
- ],
635
- "scrolldelay": [
636
- "*"
637
- ],
638
- "scrolling": [
639
- "*"
640
- ],
641
- "select": [
642
- "*"
643
- ],
644
- "selected": [
645
- "*"
646
- ],
647
- "shadowroot": [
648
- "*"
649
- ],
650
- "shadowrootdelegatesfocus": [
651
- "*"
652
- ],
653
- "shape": [
654
- "*"
655
- ],
656
- "size": [
657
- "*"
658
- ],
659
- "sizes": [
660
- "*"
661
- ],
662
- "slot": [
663
- "*"
664
- ],
665
- "span": [
666
- "*"
667
- ],
668
- "spellcheck": [
669
- "*"
670
- ],
671
- "src": [
672
- "*"
673
- ],
674
- "srcdoc": [
675
- "*"
676
- ],
677
- "srclang": [
678
- "*"
679
- ],
680
- "srcset": [
681
- "*"
682
- ],
683
- "standby": [
684
- "*"
685
- ],
686
- "start": [
687
- "*"
688
- ],
689
- "step": [
690
- "*"
691
- ],
692
- "style": [
693
- "*"
694
- ],
695
- "summary": [
696
- "*"
697
- ],
698
- "tabindex": [
699
- "*"
700
- ],
701
- "target": [
702
- "*"
703
- ],
704
- "text": [
705
- "*"
706
- ],
707
- "title": [
708
- "*"
709
- ],
710
- "topmargin": [
711
- "*"
712
- ],
713
- "translate": [
714
- "*"
715
- ],
716
- "truespeed": [
717
- "*"
718
- ],
719
- "trusttoken": [
720
- "*"
721
- ],
722
- "type": [
723
- "*"
724
- ],
725
- "usemap": [
726
- "*"
727
- ],
728
- "valign": [
729
- "*"
730
- ],
731
- "value": [
732
- "*"
733
- ],
734
- "valuetype": [
735
- "*"
736
- ],
737
- "version": [
738
- "*"
739
- ],
740
- "virtualkeyboardpolicy": [
741
- "*"
742
- ],
743
- "vlink": [
744
- "*"
745
- ],
746
- "vspace": [
747
- "*"
748
- ],
749
- "webkitdirectory": [
750
- "*"
751
- ],
752
- "width": [
753
- "*"
754
- ],
755
- "wrap": [
756
- "*"
757
- ]
758
- }
759
- }`);
760
-
761
- export const {
762
- allowAttributes, allowComments, allowElements, allowCustomElements,
763
- blockElements, dropAttributes, dropElements, allowUnknownMarkup,
764
- } = SanitizerConfigW3C;
765
-
766
- export const SanitizerConfig = SanitizerConfigW3C;