@shgysk8zer0/polyfills 0.3.2 → 0.3.4
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.
- package/CHANGELOG.md +15 -0
- package/Document.js +1 -3
- package/all.js +1 -2
- package/all.min.js +13 -18
- package/all.min.js.map +1 -1
- package/deprecated/.gitkeep +0 -0
- package/element.js +2 -20
- package/package.json +6 -1
- package/rollup.config.js +3 -0
- package/sanitizer.js +1 -0
- package/assets/Sanitizer.js +0 -61
- package/assets/SanitizerConfig.js +0 -348
- package/assets/SanitizerConfigBase.js +0 -18
- package/assets/SanitizerConfigEdge.js +0 -335
- package/assets/SanitizerConfigW3C.js +0 -350
- package/assets/sanitizerUtils.js +0 -299
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright 2023 Chris Zuber <admin@kernvalley.us>
|
|
3
|
-
*/
|
|
4
|
-
export const SanitizerConfig = {
|
|
5
|
-
allowAttributes: {
|
|
6
|
-
'abbr': ['*'],
|
|
7
|
-
'accept': ['*'],
|
|
8
|
-
'accept-charset': ['*'],
|
|
9
|
-
'accesskey': ['*'],
|
|
10
|
-
'action': ['*'],
|
|
11
|
-
'align': ['*'],
|
|
12
|
-
'alink': ['*'],
|
|
13
|
-
'allow': ['*'],
|
|
14
|
-
'allowfullscreen': ['*'],
|
|
15
|
-
'alt': ['*'],
|
|
16
|
-
'anchor': ['*'],
|
|
17
|
-
'archive': ['*'],
|
|
18
|
-
'as': ['*'],
|
|
19
|
-
'async': ['*'],
|
|
20
|
-
'autocapitalize': ['*'],
|
|
21
|
-
'autocomplete': ['*'],
|
|
22
|
-
'autocorrect': ['*'],
|
|
23
|
-
'autofocus': ['*'],
|
|
24
|
-
'autopictureinpicture': ['*'],
|
|
25
|
-
'autoplay': ['audio', 'video'],
|
|
26
|
-
'axis': ['*'],
|
|
27
|
-
'background': ['*'],
|
|
28
|
-
'behavior': ['*'],
|
|
29
|
-
'bgcolor': ['*'],
|
|
30
|
-
'border': ['*'],
|
|
31
|
-
'bordercolor': ['*'],
|
|
32
|
-
'capture': ['*'],
|
|
33
|
-
'cellpadding': ['*'],
|
|
34
|
-
'cellspacing': ['*'],
|
|
35
|
-
'challenge': ['*'],
|
|
36
|
-
'char': ['*'],
|
|
37
|
-
'charoff': ['*'],
|
|
38
|
-
'charset': ['*'],
|
|
39
|
-
'checked': ['*'],
|
|
40
|
-
'cite': ['*'],
|
|
41
|
-
'class': ['*'],
|
|
42
|
-
'classid': ['*'],
|
|
43
|
-
'clear': ['*'],
|
|
44
|
-
'code': ['*'],
|
|
45
|
-
'codebase': ['*'],
|
|
46
|
-
'codetype': ['*'],
|
|
47
|
-
'color': ['*'],
|
|
48
|
-
'cols': ['*'],
|
|
49
|
-
'colspan': ['*'],
|
|
50
|
-
'compact': ['*'],
|
|
51
|
-
'content': ['*'],
|
|
52
|
-
'contenteditable': ['*'],
|
|
53
|
-
'controls': ['*'],
|
|
54
|
-
'controlslist': ['*'],
|
|
55
|
-
'conversiondestination': ['*'],
|
|
56
|
-
'coords': ['*'],
|
|
57
|
-
'crossorigin': ['*'],
|
|
58
|
-
'csp': ['*'],
|
|
59
|
-
'data': ['*'],
|
|
60
|
-
'datetime': ['*'],
|
|
61
|
-
'declare': ['*'],
|
|
62
|
-
'decoding': ['*'],
|
|
63
|
-
'default': ['*'],
|
|
64
|
-
'defer': ['*'],
|
|
65
|
-
'dir': ['*'],
|
|
66
|
-
'direction': ['*'],
|
|
67
|
-
'dirname': ['*'],
|
|
68
|
-
'disabled': ['*'],
|
|
69
|
-
'disablepictureinpicture': ['*'],
|
|
70
|
-
'disableremoteplayback': ['*'],
|
|
71
|
-
'download': ['*'],
|
|
72
|
-
'draggable': ['*'],
|
|
73
|
-
'elementtiming': ['*'],
|
|
74
|
-
'enctype': ['*'],
|
|
75
|
-
'end': ['*'],
|
|
76
|
-
'enterkeyhint': ['*'],
|
|
77
|
-
'event': ['*'],
|
|
78
|
-
'exportparts': ['*'],
|
|
79
|
-
'face': ['*'],
|
|
80
|
-
'for': ['*'],
|
|
81
|
-
'form': ['*'],
|
|
82
|
-
'formaction': ['*'],
|
|
83
|
-
'formenctype': ['*'],
|
|
84
|
-
'formmethod': ['*'],
|
|
85
|
-
'formnovalidate': ['*'],
|
|
86
|
-
'formtarget': ['*'],
|
|
87
|
-
'frame': ['*'],
|
|
88
|
-
'frameborder': ['*'],
|
|
89
|
-
'headers': ['*'],
|
|
90
|
-
'height': ['*'],
|
|
91
|
-
'hidden': ['*'],
|
|
92
|
-
'high': ['*'],
|
|
93
|
-
'href': ['*'],
|
|
94
|
-
'hreflang': ['*'],
|
|
95
|
-
'hreftranslate': ['*'],
|
|
96
|
-
'hspace': ['*'],
|
|
97
|
-
'http-equiv': ['*'],
|
|
98
|
-
'id': ['*'],
|
|
99
|
-
'imagesizes': ['*'],
|
|
100
|
-
'imagesrcset': ['*'],
|
|
101
|
-
'importance': ['*'],
|
|
102
|
-
'impressiondata': ['*'],
|
|
103
|
-
'impressionexpiry': ['*'],
|
|
104
|
-
'incremental': ['*'],
|
|
105
|
-
'inert': ['*'],
|
|
106
|
-
'inputmode': ['*'],
|
|
107
|
-
'integrity': ['*'],
|
|
108
|
-
'invisible': ['*'],
|
|
109
|
-
'is': ['*'],
|
|
110
|
-
'ismap': ['*'],
|
|
111
|
-
'keytype': ['*'],
|
|
112
|
-
'kind': ['*'],
|
|
113
|
-
'label': ['*'],
|
|
114
|
-
'lang': ['*'],
|
|
115
|
-
'language': ['*'],
|
|
116
|
-
'latencyhint': ['*'],
|
|
117
|
-
'leftmargin': ['*'],
|
|
118
|
-
'link': ['*'],
|
|
119
|
-
'list': ['*'],
|
|
120
|
-
'loading': ['*'],
|
|
121
|
-
'longdesc': ['*'],
|
|
122
|
-
'loop': ['*'],
|
|
123
|
-
'low': ['*'],
|
|
124
|
-
'lowsrc': ['*'],
|
|
125
|
-
'manifest': ['*'],
|
|
126
|
-
'marginheight': ['*'],
|
|
127
|
-
'marginwidth': ['*'],
|
|
128
|
-
'max': ['*'],
|
|
129
|
-
'maxlength': ['*'],
|
|
130
|
-
'mayscript': ['*'],
|
|
131
|
-
'media': ['*'],
|
|
132
|
-
'method': ['*'],
|
|
133
|
-
'min': ['*'],
|
|
134
|
-
'minlength': ['*'],
|
|
135
|
-
'multiple': ['*'],
|
|
136
|
-
'muted': ['*'],
|
|
137
|
-
'name': ['*'],
|
|
138
|
-
'nohref': ['*'],
|
|
139
|
-
'nomodule': ['*'],
|
|
140
|
-
'nonce': ['*'],
|
|
141
|
-
'noresize': ['*'],
|
|
142
|
-
'noshade': ['*'],
|
|
143
|
-
'novalidate': ['*'],
|
|
144
|
-
'nowrap': ['*'],
|
|
145
|
-
'object': ['*'],
|
|
146
|
-
'open': ['*'],
|
|
147
|
-
'optimum': ['*'],
|
|
148
|
-
'part': ['*'],
|
|
149
|
-
'pattern': ['*'],
|
|
150
|
-
'ping': ['*'],
|
|
151
|
-
'placeholder': ['*'],
|
|
152
|
-
'playsinline': ['*'],
|
|
153
|
-
'policy': ['*'],
|
|
154
|
-
'poster': ['*'],
|
|
155
|
-
'preload': ['*'],
|
|
156
|
-
'pseudo': ['*'],
|
|
157
|
-
'readonly': ['*'],
|
|
158
|
-
'referrerpolicy': ['*'],
|
|
159
|
-
'rel': ['*'],
|
|
160
|
-
'reportingorigin': ['*'],
|
|
161
|
-
'required': ['*'],
|
|
162
|
-
'resources': ['*'],
|
|
163
|
-
'rev': ['*'],
|
|
164
|
-
'reversed': ['*'],
|
|
165
|
-
'role': ['*'],
|
|
166
|
-
'rows': ['*'],
|
|
167
|
-
'rowspan': ['*'],
|
|
168
|
-
'rules': ['*'],
|
|
169
|
-
'sandbox': ['*'],
|
|
170
|
-
'scheme': ['*'],
|
|
171
|
-
'scope': ['*'],
|
|
172
|
-
'scopes': ['*'],
|
|
173
|
-
'scrollamount': ['*'],
|
|
174
|
-
'scrolldelay': ['*'],
|
|
175
|
-
'scrolling': ['*'],
|
|
176
|
-
'select': ['*'],
|
|
177
|
-
'selected': ['*'],
|
|
178
|
-
'shadowroot': ['*'],
|
|
179
|
-
'shadowrootdelegatesfocus': ['*'],
|
|
180
|
-
'shape': ['*'],
|
|
181
|
-
'size': ['*'],
|
|
182
|
-
'sizes': ['*'],
|
|
183
|
-
'slot': ['*'],
|
|
184
|
-
'span': ['*'],
|
|
185
|
-
'spellcheck': ['*'],
|
|
186
|
-
'src': ['*'],
|
|
187
|
-
'srcdoc': ['*'],
|
|
188
|
-
'srclang': ['*'],
|
|
189
|
-
'srcset': ['*'],
|
|
190
|
-
'standby': ['*'],
|
|
191
|
-
'start': ['*'],
|
|
192
|
-
'step': ['*'],
|
|
193
|
-
'style': ['*'],
|
|
194
|
-
'summary': ['*'],
|
|
195
|
-
'tabindex': ['*'],
|
|
196
|
-
'target': ['*'],
|
|
197
|
-
'text': ['*'],
|
|
198
|
-
'title': ['*'],
|
|
199
|
-
'topmargin': ['*'],
|
|
200
|
-
'translate': ['*'],
|
|
201
|
-
'truespeed': ['*'],
|
|
202
|
-
'trusttoken': ['*'],
|
|
203
|
-
'type': ['*'],
|
|
204
|
-
'usemap': ['*'],
|
|
205
|
-
'valign': ['*'],
|
|
206
|
-
'value': ['*'],
|
|
207
|
-
'valuetype': ['*'],
|
|
208
|
-
'version': ['*'],
|
|
209
|
-
'virtualkeyboardpolicy': ['*'],
|
|
210
|
-
'vlink': ['*'],
|
|
211
|
-
'vspace': ['*'],
|
|
212
|
-
'webkitdirectory': ['*'],
|
|
213
|
-
'width': ['*'],
|
|
214
|
-
'wrap': ['*'],
|
|
215
|
-
},
|
|
216
|
-
allowCustomElements: false,
|
|
217
|
-
allowUnknownMarkup: false,
|
|
218
|
-
allowElements: [
|
|
219
|
-
'a',
|
|
220
|
-
'abbr',
|
|
221
|
-
'acronym',
|
|
222
|
-
'address',
|
|
223
|
-
'area',
|
|
224
|
-
'article',
|
|
225
|
-
'aside',
|
|
226
|
-
'audio',
|
|
227
|
-
'b',
|
|
228
|
-
'bdi',
|
|
229
|
-
'bdo',
|
|
230
|
-
'big',
|
|
231
|
-
'blockquote',
|
|
232
|
-
'body',
|
|
233
|
-
'br',
|
|
234
|
-
'button',
|
|
235
|
-
'canvas',
|
|
236
|
-
'caption',
|
|
237
|
-
'center',
|
|
238
|
-
'cite',
|
|
239
|
-
'code',
|
|
240
|
-
'col',
|
|
241
|
-
'colgroup',
|
|
242
|
-
'datalist',
|
|
243
|
-
'dd',
|
|
244
|
-
'del',
|
|
245
|
-
'details',
|
|
246
|
-
'dialog',
|
|
247
|
-
'dfn',
|
|
248
|
-
'dir',
|
|
249
|
-
'div',
|
|
250
|
-
'dl',
|
|
251
|
-
'dt',
|
|
252
|
-
'em',
|
|
253
|
-
'fieldset',
|
|
254
|
-
'figcaption',
|
|
255
|
-
'figure',
|
|
256
|
-
'font',
|
|
257
|
-
'footer',
|
|
258
|
-
'form',
|
|
259
|
-
'h1',
|
|
260
|
-
'h2',
|
|
261
|
-
'h3',
|
|
262
|
-
'h4',
|
|
263
|
-
'h5',
|
|
264
|
-
'h6',
|
|
265
|
-
'head',
|
|
266
|
-
'header',
|
|
267
|
-
'hgroup',
|
|
268
|
-
'hr',
|
|
269
|
-
'html',
|
|
270
|
-
'i',
|
|
271
|
-
'img',
|
|
272
|
-
'input',
|
|
273
|
-
'ins',
|
|
274
|
-
'kbd',
|
|
275
|
-
'keygen',
|
|
276
|
-
'label',
|
|
277
|
-
'legend',
|
|
278
|
-
'li',
|
|
279
|
-
'link',
|
|
280
|
-
'listing',
|
|
281
|
-
'map',
|
|
282
|
-
'mark',
|
|
283
|
-
'menu',
|
|
284
|
-
'meta',
|
|
285
|
-
'meter',
|
|
286
|
-
'nav',
|
|
287
|
-
'nobr',
|
|
288
|
-
'ol',
|
|
289
|
-
'optgroup',
|
|
290
|
-
'option',
|
|
291
|
-
'output',
|
|
292
|
-
'p',
|
|
293
|
-
'picture',
|
|
294
|
-
'pre',
|
|
295
|
-
'progress',
|
|
296
|
-
'q',
|
|
297
|
-
'rb',
|
|
298
|
-
'rp',
|
|
299
|
-
'rt',
|
|
300
|
-
'rtc',
|
|
301
|
-
'ruby',
|
|
302
|
-
's',
|
|
303
|
-
'samp',
|
|
304
|
-
'section',
|
|
305
|
-
'select',
|
|
306
|
-
'small',
|
|
307
|
-
'source',
|
|
308
|
-
'span',
|
|
309
|
-
'strike',
|
|
310
|
-
'strong',
|
|
311
|
-
'sub',
|
|
312
|
-
'summary',
|
|
313
|
-
'sup',
|
|
314
|
-
'style',
|
|
315
|
-
'table',
|
|
316
|
-
'tbody',
|
|
317
|
-
'td',
|
|
318
|
-
'textarea',
|
|
319
|
-
'tfoot',
|
|
320
|
-
'th',
|
|
321
|
-
'thead',
|
|
322
|
-
'time',
|
|
323
|
-
'tr',
|
|
324
|
-
'track',
|
|
325
|
-
'tt',
|
|
326
|
-
'u',
|
|
327
|
-
'ul',
|
|
328
|
-
'var',
|
|
329
|
-
'video',
|
|
330
|
-
'wbr'
|
|
331
|
-
],
|
|
332
|
-
blockElements: [],
|
|
333
|
-
dropAttributes: [],
|
|
334
|
-
dropElements: [],
|
|
335
|
-
};
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright 2023-2024 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
|
-
"accept": ["*"],
|
|
130
|
-
"accept-charset": ["*"],
|
|
131
|
-
"accesskey": ["*"],
|
|
132
|
-
"action": ["*"],
|
|
133
|
-
"align": ["*"],
|
|
134
|
-
"alink": ["*"],
|
|
135
|
-
"allow": ["*"],
|
|
136
|
-
"allowfullscreen": ["*"],
|
|
137
|
-
"alt": ["*"],
|
|
138
|
-
"anchor": ["*"],
|
|
139
|
-
"archive": ["*"],
|
|
140
|
-
"as": ["*"],
|
|
141
|
-
"async": ["*"],
|
|
142
|
-
"autocapitalize": ["*"],
|
|
143
|
-
"autocomplete": ["*"],
|
|
144
|
-
"autocorrect": ["*"],
|
|
145
|
-
"autofocus": ["*"],
|
|
146
|
-
"autopictureinpicture": ["*"],
|
|
147
|
-
"autoplay": ["*"],
|
|
148
|
-
"axis": ["*"],
|
|
149
|
-
"background": ["*"],
|
|
150
|
-
"behavior": ["*"],
|
|
151
|
-
"bgcolor": ["*"],
|
|
152
|
-
"border": ["*"],
|
|
153
|
-
"bordercolor": ["*"],
|
|
154
|
-
"capture": ["*"],
|
|
155
|
-
"cellpadding": ["*"],
|
|
156
|
-
"cellspacing": ["*"],
|
|
157
|
-
"challenge": ["*"],
|
|
158
|
-
"char": ["*"],
|
|
159
|
-
"charoff": ["*"],
|
|
160
|
-
"charset": ["*"],
|
|
161
|
-
"checked": ["*"],
|
|
162
|
-
"cite": ["*"],
|
|
163
|
-
"class": ["*"],
|
|
164
|
-
"classid": ["*"],
|
|
165
|
-
"clear": ["*"],
|
|
166
|
-
"code": ["*"],
|
|
167
|
-
"codebase": ["*"],
|
|
168
|
-
"codetype": ["*"],
|
|
169
|
-
"color": ["*"],
|
|
170
|
-
"cols": ["*"],
|
|
171
|
-
"colspan": ["*"],
|
|
172
|
-
"compact": ["*"],
|
|
173
|
-
"content": ["*"],
|
|
174
|
-
"contenteditable": ["*"],
|
|
175
|
-
"controls": ["*"],
|
|
176
|
-
"controlslist": ["*"],
|
|
177
|
-
"conversiondestination": ["*"],
|
|
178
|
-
"coords": ["*"],
|
|
179
|
-
"crossorigin": ["*"],
|
|
180
|
-
"csp": ["*"],
|
|
181
|
-
"data": ["*"],
|
|
182
|
-
"datetime": ["*"],
|
|
183
|
-
"declare": ["*"],
|
|
184
|
-
"decoding": ["*"],
|
|
185
|
-
"default": ["*"],
|
|
186
|
-
"defer": ["*"],
|
|
187
|
-
"dir": ["*"],
|
|
188
|
-
"direction": ["*"],
|
|
189
|
-
"dirname": ["*"],
|
|
190
|
-
"disabled": ["*"],
|
|
191
|
-
"disablepictureinpicture": ["*"],
|
|
192
|
-
"disableremoteplayback": ["*"],
|
|
193
|
-
"disallowdocumentaccess": ["*"],
|
|
194
|
-
"download": ["*"],
|
|
195
|
-
"draggable": ["*"],
|
|
196
|
-
"elementtiming": ["*"],
|
|
197
|
-
"enctype": ["*"],
|
|
198
|
-
"end": ["*"],
|
|
199
|
-
"enterkeyhint": ["*"],
|
|
200
|
-
"event": ["*"],
|
|
201
|
-
"exportparts": ["*"],
|
|
202
|
-
"face": ["*"],
|
|
203
|
-
"for": ["*"],
|
|
204
|
-
"form": ["*"],
|
|
205
|
-
"formaction": ["*"],
|
|
206
|
-
"formenctype": ["*"],
|
|
207
|
-
"formmethod": ["*"],
|
|
208
|
-
"formnovalidate": ["*"],
|
|
209
|
-
"formtarget": ["*"],
|
|
210
|
-
"frame": ["*"],
|
|
211
|
-
"frameborder": ["*"],
|
|
212
|
-
"headers": ["*"],
|
|
213
|
-
"height": ["*"],
|
|
214
|
-
"hidden": ["*"],
|
|
215
|
-
"high": ["*"],
|
|
216
|
-
"href": ["*"],
|
|
217
|
-
"hreflang": ["*"],
|
|
218
|
-
"hreftranslate": ["*"],
|
|
219
|
-
"hspace": ["*"],
|
|
220
|
-
"http-equiv": ["*"],
|
|
221
|
-
"id": ["*"],
|
|
222
|
-
"imagesizes": ["*"],
|
|
223
|
-
"imagesrcset": ["*"],
|
|
224
|
-
"importance": ["*"],
|
|
225
|
-
"impressiondata": ["*"],
|
|
226
|
-
"impressionexpiry": ["*"],
|
|
227
|
-
"incremental": ["*"],
|
|
228
|
-
"inert": ["*"],
|
|
229
|
-
"inputmode": ["*"],
|
|
230
|
-
"integrity": ["*"],
|
|
231
|
-
"invisible": ["*"],
|
|
232
|
-
"is": ["*"],
|
|
233
|
-
"ismap": ["*"],
|
|
234
|
-
"keytype": ["*"],
|
|
235
|
-
"kind": ["*"],
|
|
236
|
-
"label": ["*"],
|
|
237
|
-
"lang": ["*"],
|
|
238
|
-
"language": ["*"],
|
|
239
|
-
"latencyhint": ["*"],
|
|
240
|
-
"leftmargin": ["*"],
|
|
241
|
-
"link": ["*"],
|
|
242
|
-
"list": ["*"],
|
|
243
|
-
"loading": ["*"],
|
|
244
|
-
"longdesc": ["*"],
|
|
245
|
-
"loop": ["*"],
|
|
246
|
-
"low": ["*"],
|
|
247
|
-
"lowsrc": ["*"],
|
|
248
|
-
"manifest": ["*"],
|
|
249
|
-
"marginheight": ["*"],
|
|
250
|
-
"marginwidth": ["*"],
|
|
251
|
-
"max": ["*"],
|
|
252
|
-
"maxlength": ["*"],
|
|
253
|
-
"mayscript": ["*"],
|
|
254
|
-
"media": ["*"],
|
|
255
|
-
"method": ["*"],
|
|
256
|
-
"min": ["*"],
|
|
257
|
-
"minlength": ["*"],
|
|
258
|
-
"multiple": ["*"],
|
|
259
|
-
"muted": ["*"],
|
|
260
|
-
"name": ["*"],
|
|
261
|
-
"nohref": ["*"],
|
|
262
|
-
"nomodule": ["*"],
|
|
263
|
-
"nonce": ["*"],
|
|
264
|
-
"noresize": ["*"],
|
|
265
|
-
"noshade": ["*"],
|
|
266
|
-
"novalidate": ["*"],
|
|
267
|
-
"nowrap": ["*"],
|
|
268
|
-
"object": ["*"],
|
|
269
|
-
"open": ["*"],
|
|
270
|
-
"optimum": ["*"],
|
|
271
|
-
"part": ["*"],
|
|
272
|
-
"pattern": ["*"],
|
|
273
|
-
"ping": ["*"],
|
|
274
|
-
"placeholder": ["*"],
|
|
275
|
-
"playsinline": ["*"],
|
|
276
|
-
"policy": ["*"],
|
|
277
|
-
"popover": ["*"],
|
|
278
|
-
"popovertarget": ["*"],
|
|
279
|
-
"popovertargetaction": ["*"],
|
|
280
|
-
"poster": ["*"],
|
|
281
|
-
"preload": ["*"],
|
|
282
|
-
"pseudo": ["*"],
|
|
283
|
-
"readonly": ["*"],
|
|
284
|
-
"referrerpolicy": ["*"],
|
|
285
|
-
"rel": ["*"],
|
|
286
|
-
"reportingorigin": ["*"],
|
|
287
|
-
"required": ["*"],
|
|
288
|
-
"resources": ["*"],
|
|
289
|
-
"rev": ["*"],
|
|
290
|
-
"reversed": ["*"],
|
|
291
|
-
"role": ["*"],
|
|
292
|
-
"rows": ["*"],
|
|
293
|
-
"rowspan": ["*"],
|
|
294
|
-
"rules": ["*"],
|
|
295
|
-
"sandbox": ["*"],
|
|
296
|
-
"scheme": ["*"],
|
|
297
|
-
"scope": ["*"],
|
|
298
|
-
"scopes": ["*"],
|
|
299
|
-
"scrollamount": ["*"],
|
|
300
|
-
"scrolldelay": ["*"],
|
|
301
|
-
"scrolling": ["*"],
|
|
302
|
-
"select": ["*"],
|
|
303
|
-
"selected": ["*"],
|
|
304
|
-
"shadowroot": ["*"],
|
|
305
|
-
"shadowrootmode": ["*"],
|
|
306
|
-
"shadowrootdelegatesfocus": ["*"],
|
|
307
|
-
"shape": ["*"],
|
|
308
|
-
"size": ["*"],
|
|
309
|
-
"sizes": ["*"],
|
|
310
|
-
"slot": ["*"],
|
|
311
|
-
"span": ["*"],
|
|
312
|
-
"spellcheck": ["*"],
|
|
313
|
-
"src": ["*"],
|
|
314
|
-
"srcdoc": ["*"],
|
|
315
|
-
"srclang": ["*"],
|
|
316
|
-
"srcset": ["*"],
|
|
317
|
-
"standby": ["*"],
|
|
318
|
-
"start": ["*"],
|
|
319
|
-
"step": ["*"],
|
|
320
|
-
"style": ["*"],
|
|
321
|
-
"summary": ["*"],
|
|
322
|
-
"tabindex": ["*"],
|
|
323
|
-
"target": ["*"],
|
|
324
|
-
"text": ["*"],
|
|
325
|
-
"title": ["*"],
|
|
326
|
-
"topmargin": ["*"],
|
|
327
|
-
"translate": ["*"],
|
|
328
|
-
"truespeed": ["*"],
|
|
329
|
-
"trusttoken": ["*"],
|
|
330
|
-
"type": ["*"],
|
|
331
|
-
"usemap": ["*"],
|
|
332
|
-
"valign": ["*"],
|
|
333
|
-
"value": ["*"],
|
|
334
|
-
"valuetype": ["*"],
|
|
335
|
-
"version": ["*"],
|
|
336
|
-
"virtualkeyboardpolicy": ["*"],
|
|
337
|
-
"vlink": ["*"],
|
|
338
|
-
"vspace": ["*"],
|
|
339
|
-
"webkitdirectory": ["*"],
|
|
340
|
-
"width": ["*"],
|
|
341
|
-
"wrap": ["*"]
|
|
342
|
-
}
|
|
343
|
-
}`);
|
|
344
|
-
|
|
345
|
-
export const {
|
|
346
|
-
allowAttributes, allowComments, allowElements, allowCustomElements,
|
|
347
|
-
blockElements, dropAttributes, dropElements, allowUnknownMarkup,
|
|
348
|
-
} = SanitizerConfigW3C;
|
|
349
|
-
|
|
350
|
-
export const SanitizerConfig = SanitizerConfigW3C;
|