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
|
[sanitizer-sanitizeFor.https.tentative.html]
expected:
if (os == "android") and debug: [OK, TIMEOUT]
[Sanitizer.sanitizeFor(element, ..)]
expected: FAIL
[Sanitizer.sanitizeFor("template", "<em>Hello</em>") obeys parse context.]
expected: FAIL
[Sanitizer.sanitizeFor("template", "<td>data</td>") obeys parse context.]
expected: FAIL
[Sanitizer.sanitizeFor with config: string]
expected: FAIL
[Sanitizer.sanitizeFor with config: html fragment]
expected: FAIL
[Sanitizer.sanitizeFor with config: empty object]
expected: FAIL
[Sanitizer.sanitizeFor with config: number]
expected: FAIL
[Sanitizer.sanitizeFor with config: zeros]
expected: FAIL
[Sanitizer.sanitizeFor with config: arithmetic]
expected: FAIL
[Sanitizer.sanitizeFor with config: undefined]
expected: FAIL
[Sanitizer.sanitizeFor with config: document]
expected: FAIL
[Sanitizer.sanitizeFor with config: html without close tag]
expected: FAIL
[Sanitizer.sanitizeFor with config: onclick scripts]
expected: FAIL
[Sanitizer.sanitizeFor with config: plaintext]
expected: FAIL
[Sanitizer.sanitizeFor with config: xmp]
expected: FAIL
[Sanitizer.sanitizeFor with config: invalid config_input]
expected: FAIL
[Sanitizer.sanitizeFor with config: empty dropElements list]
expected: FAIL
[Sanitizer.sanitizeFor with config: test html without close tag with dropElements list ['div'\]]
expected: FAIL
[Sanitizer.sanitizeFor with config: default behavior for custom elements]
expected: FAIL
[Sanitizer.sanitizeFor with config: allow custom elements]
expected: FAIL
[Sanitizer.sanitizeFor with config: allow custom elements with allow elements]
expected: FAIL
[Sanitizer.sanitizeFor with config: disallow custom elements]
expected: FAIL
[Sanitizer.sanitizeFor with config: allow custom elements with drop list contains ["custom-element"\]]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropElements list ["test-element", "i"\]}]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropElements list ["I", "DL"\]}]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropElements list ["dl", "p"\]}]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowElements list ["p"\]]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowElements list has no influence to dropElements]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes list {"style": ["p"\]} with style attribute]
expected: FAIL
[Sanitizer.sanitizeFor with config: empty dropAttributes list with id attribute]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes list {"id": ["*"\]} with id attribute]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes list {"ID": ["*"\]} with id attribute]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes list {"data-attribute-with-dashes": ["*"\]} with dom dataset js access]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowAttributes list {"id": ["div"\]} with id attribute]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowAttributes list {"id": ["*"\]} with id attribute and onclick scripts]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowAttributes list has no influence to dropAttributes]
expected: FAIL
[Sanitizer.sanitizeFor with config: Template element]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLAnchorElement with javascript protocal]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLAnchorElement with javascript protocal start with space]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLAnchorElement]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLAreaElement with javascript protocal]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLAreaElement with javascript protocal start with space]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLAreaElement]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLFormElement with javascript action]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLFormElement with javascript action start with space]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLFormElement]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLInputElement with javascript formaction]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLInputElement with javascript formaction start with space]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLInputElement]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLButtonElement with javascript formaction]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLButtonElement with javascript formaction start with space]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTMLButtonElement]
expected: FAIL
[Sanitizer.sanitizeFor with config: malformed HTML]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTML with comments; comments not allowed]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTML with comments; allowComments]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTML with comments; !allowComments]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTML with comments deeper in the tree]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTML with comments deeper in the tree, allowComments]
expected: FAIL
[Sanitizer.sanitizeFor with config: HTML with comments deeper in the tree, !allowComments]
expected: FAIL
[Sanitizer.sanitizeFor("script", ...) should fail.]
expected: FAIL
[Sanitizer.sanitizeFor("object", ...) should fail.]
expected: FAIL
[Sanitizer.sanitizeFor("iframe", ...) should fail.]
expected: FAIL
[Sanitizer.sanitizeFor with config: script not as root]
expected: FAIL
[Sanitizer.sanitizeFor with config: script deeper in the tree]
expected: FAIL
[Sanitizer.sanitizeFor with config: Unknown HTML names (HTMLUnknownElement instances) should not match elements parsed as non-HTML namespaces.]
expected: FAIL
[Sanitizer.sanitizeFor with config: Unknown HTML names (HTMLUnknownElement instances) should not match elements parsed as non-HTML namespaces when nested.]
expected: FAIL
[Sanitizer.sanitizeFor("div", ...) should pass.]
expected: FAIL
[Sanitizer.sanitizeFor function shouldn't load the image.]
expected: FAIL
[Sanitizer.sanitizeFor("div", "<em>Hello</em>") obeys parse context.]
expected: FAIL
[Sanitizer.sanitizeFor("div", "<td>data</td>") obeys parse context.]
expected: FAIL
[Sanitizer.sanitizeFor("table", "<em>Hello</em>") obeys parse context.]
expected: FAIL
[Sanitizer.sanitizeFor("table", "<td>data</td>") obeys parse context.]
expected: FAIL
[Sanitizer.sanitizeFor with config: broken html]
expected: FAIL
[Sanitizer.sanitizeFor with config: empty string]
expected: FAIL
[Sanitizer.sanitizeFor with config: scripts for default configs]
expected: FAIL
[Sanitizer.sanitizeFor with config: test script with ["script"\] as dropElements list]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropElements list ["i", "dl"\]}]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropElements list ["i", "dl"\]} with uppercase HTML]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes list {"ID": ["*"\]} with ID attribute]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes list {"id": ["*"\]} with ID attribute]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropElements with unknown elements and without allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: blockElements with unknown elements and without allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowElements with unknown elements and without allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropElements with unknown elements and with allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: blockElements with unknown elements and with allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowElements with unknown elements and with allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowAttributes unknown attributes and without allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: allowAttributes unknown attributes and with allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes unknown attributes and without allowUnknownMarkup]
expected: FAIL
[Sanitizer.sanitizeFor with config: dropAttributes unknown attributes and with allowUnknownMarkup]
expected: FAIL
|