summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/data/removeformat.js
blob: b11ee52cc149e569936323d9e4e6540270fe82ec (plain)
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
var browserTests = [
["foo[]bar",
    [["removeformat",""]],
    "foo[]bar",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["<span>foo</span>{}<span>bar</span>",
    [["removeformat",""]],
    "<span>foo</span>{}<span>bar</span>",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["<span>foo[</span><span>]bar</span>",
    [["removeformat",""]],
    "<span>foo[</span><span>]bar</span>",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<b>bar</b>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<b>bar</b>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo[<b>bar</b>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "foo[barbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo[<b>bar</b>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "foo[barbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo[<b>bar</b>]baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo[<b>bar</b>]baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b>[bar]</b>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b>[bar]</b>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b>b[a]r</b>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<b>b</b>[a]<b>r</b>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b>b[a]r</b>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<b>b</b>[a]<b>r</b>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<strong>bar</strong>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<span style=\"font-weight: bold\">bar</span>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<span style=\"font-weight: bold\">bar</span>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<span style=\"font-weight: bold\">b[a]r</span>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<span style=\"font-weight:bold\">b</span>[a]<span style=\"font-weight:bold\">r</span>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<span style=\"font-weight: bold\">b[a]r</span>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<span style=\"font-weight:bold\">b</span>[a]<span style=\"font-weight:bold\">r</span>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<span style=\"font-variant: small-caps\">bar</span>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<span style=\"font-variant: small-caps\">bar</span>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<span style=\"font-variant: small-caps\">b[a]r</span>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<span style=\"font-variant:small-caps\">b</span>[a]<span style=\"font-variant:small-caps\">r</span>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<span style=\"font-variant: small-caps\">b[a]r</span>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<span style=\"font-variant:small-caps\">b</span>[a]<span style=\"font-variant:small-caps\">r</span>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<b id=foo>bar</b>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<b id=foo>bar</b>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b id=foo>b[a]r</b>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<b id=\"foo\">b</b>[a]<b>r</b>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b id=foo>b[a]r</b>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<b id=\"foo\">b</b>[a]<b>r</b>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<a>bar</a>baz]",
    [["removeformat",""]],
    "[foo<a>bar</a>baz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<a>b[a]r</a>baz",
    [["removeformat",""]],
    "foo<a>b[a]r</a>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<a href=foo>bar</a>baz]",
    [["removeformat",""]],
    "[foo<a href=\"foo\">bar</a>baz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<a href=foo>b[a]r</a>baz",
    [["removeformat",""]],
    "foo<a href=\"foo\">b[a]r</a>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<abbr>bar</abbr>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<abbr>b[a]r</abbr>baz",
    [["removeformat",""]],
    "foo<abbr>b</abbr>[a]<abbr>r</abbr>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<acronym>bar</acronym>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<acronym>b[a]r</acronym>baz",
    [["removeformat",""]],
    "foo<acronym>b</acronym>[a]<acronym>r</acronym>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<b>bar</b>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<b>bar</b>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b>b[a]r</b>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<b>b</b>[a]<b>r</b>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b>b[a]r</b>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<b>b</b>[a]<b>r</b>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<bdi dir=rtl>bar</bdi>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<bdi dir=rtl>b[a]r</bdi>baz",
    [["removeformat",""]],
    "foo<bdi dir=\"rtl\">b</bdi>[a]<bdi dir=\"rtl\">r</bdi>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<bdo dir=rtl>bar</bdo>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<bdo dir=rtl>b[a]r</bdo>baz",
    [["removeformat",""]],
    "foo<bdo dir=\"rtl\">b</bdo>[a]<bdo dir=\"rtl\">r</bdo>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<big>bar</big>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<big>b[a]r</big>baz",
    [["removeformat",""]],
    "foo<big>b</big>[a]<big>r</big>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<blink>bar</blink>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<blink>b[a]r</blink>baz",
    [["removeformat",""]],
    "foo<blink>b</blink>[a]<blink>r</blink>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<cite>bar</cite>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<cite>b[a]r</cite>baz",
    [["removeformat",""]],
    "foo<cite>b</cite>[a]<cite>r</cite>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<code>bar</code>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<code>b[a]r</code>baz",
    [["removeformat",""]],
    "foo<code>b</code>[a]<code>r</code>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<del>bar</del>baz]",
    [["removeformat",""]],
    "[foo<del>bar</del>baz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<del>b[a]r</del>baz",
    [["removeformat",""]],
    "foo<del>b[a]r</del>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<dfn>bar</dfn>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<dfn>b[a]r</dfn>baz",
    [["removeformat",""]],
    "foo<dfn>b</dfn>[a]<dfn>r</dfn>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<em>bar</em>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<em>b[a]r</em>baz",
    [["removeformat",""]],
    "foo<em>b</em>[a]<em>r</em>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<font>bar</font>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<font>bar</font>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<font>b[a]r</font>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<font>b</font>[a]<font>r</font>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<font>b[a]r</font>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<font>b</font>[a]<font>r</font>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<font color=blue>bar</font>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<font color=blue>bar</font>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<font color=blue>b[a]r</font>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<font color=\"blue\">b</font>[a]<font color=\"blue\">r</font>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<font color=blue>b[a]r</font>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<font color=\"blue\">b</font>[a]<font color=\"blue\">r</font>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<i>bar</i>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<i>bar</i>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<i>b[a]r</i>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<i>b</i>[a]<i>r</i>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<i>b[a]r</i>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<i>b</i>[a]<i>r</i>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<ins>bar</ins>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<ins>b[a]r</ins>baz",
    [["removeformat",""]],
    "foo<ins>b</ins>[a]<ins>r</ins>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<kbd>bar</kbd>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<kbd>b[a]r</kbd>baz",
    [["removeformat",""]],
    "foo<kbd>b</kbd>[a]<kbd>r</kbd>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<mark>bar</mark>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<mark>b[a]r</mark>baz",
    [["removeformat",""]],
    "foo<mark>b</mark>[a]<mark>r</mark>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<nobr>bar</nobr>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<nobr>b[a]r</nobr>baz",
    [["removeformat",""]],
    "foo<nobr>b</nobr>[a]<nobr>r</nobr>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<q>bar</q>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<q>b[a]r</q>baz",
    [["removeformat",""]],
    "foo<q>b</q>[a]<q>r</q>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<samp>bar</samp>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<samp>b[a]r</samp>baz",
    [["removeformat",""]],
    "foo<samp>b</samp>[a]<samp>r</samp>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<s>bar</s>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<s>bar</s>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<s>b[a]r</s>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<s>b</s>[a]<s>r</s>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<s>b[a]r</s>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<s>b</s>[a]<s>r</s>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<small>bar</small>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<small>b[a]r</small>baz",
    [["removeformat",""]],
    "foo<small>b</small>[a]<small>r</small>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<span>bar</span>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<span>b[a]r</span>baz",
    [["removeformat",""]],
    "foo<span>b</span>[a]<span>r</span>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<strike>bar</strike>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<strike>bar</strike>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<strike>b[a]r</strike>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<strike>b</strike>[a]<strike>r</strike>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<strike>b[a]r</strike>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<strike>b</strike>[a]<strike>r</strike>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<strong>bar</strong>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<strong>b[a]r</strong>baz",
    [["removeformat",""]],
    "foo<strong>b</strong>[a]<strong>r</strong>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<sub>bar</sub>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<sub>bar</sub>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<sub>b[a]r</sub>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<sub>b</sub>[a]<sub>r</sub>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<sub>b[a]r</sub>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<sub>b</sub>[a]<sub>r</sub>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<sup>bar</sup>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<sup>bar</sup>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<sup>b[a]r</sup>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<sup>b</sup>[a]<sup>r</sup>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<sup>b[a]r</sup>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<sup>b</sup>[a]<sup>r</sup>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<tt>bar</tt>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<tt>b[a]r</tt>baz",
    [["removeformat",""]],
    "foo<tt>b</tt>[a]<tt>r</tt>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<u>bar</u>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<u>bar</u>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<u>b[a]r</u>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<u>b</u>[a]<u>r</u>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<u>b[a]r</u>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<u>b</u>[a]<u>r</u>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<var>bar</var>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<var>b[a]r</var>baz",
    [["removeformat",""]],
    "foo<var>b</var>[a]<var>r</var>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<br>bar]",
    [["removeformat",""]],
    "[foo<br>bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<hr>bar]",
    [["removeformat",""]],
    "[foo<hr>bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<wbr>bar]",
    [["removeformat",""]],
    "[foo<wbr>bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<img>bar]",
    [["removeformat",""]],
    "[foo<img>bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<img src=abc>bar]",
    [["removeformat",""]],
    "[foo<img src=\"abc\">bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<video></video>bar]",
    [["removeformat",""]],
    "[foo<video></video>bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<video src=abc></video>bar]",
    [["removeformat",""]],
    "[foo<video src=\"abc\"></video>bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<svg><circle fill=blue r=20 cx=20 cy=20 /></svg>bar]",
    [["removeformat",""]],
    "[foo<svg><circle fill=\"blue\" r=\"20\" cx=\"20\" cy=\"20\"></circle></svg>bar]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<nonexistentelement>bar</nonexistentelement>baz]",
    [["removeformat",""]],
    "[foo<nonexistentelement>bar</nonexistentelement>baz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<nonexistentelement>b[a]r</nonexistentelement>baz",
    [["removeformat",""]],
    "foo<nonexistentelement>b[a]r</nonexistentelement>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<nonexistentelement style=\"display: block\">bar</nonexistentelement>baz]",
    [["removeformat",""]],
    "[foo<nonexistentelement style=\"display:block\">bar</nonexistentelement>baz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<nonexistentelement style=\"display: block\">b[a]r</nonexistentelement>baz",
    [["removeformat",""]],
    "foo<nonexistentelement style=\"display:block\">b[a]r</nonexistentelement>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<span id=foo>bar</span>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<span id=foo>b[a]r</span>baz",
    [["removeformat",""]],
    "foo<span id=\"foo\">b</span>[a]<span>r</span>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<span class=foo>bar</span>baz]",
    [["removeformat",""]],
    "[foobarbaz]",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["foo<span class=foo>b[a]r</span>baz",
    [["removeformat",""]],
    "foo<span class=\"foo\">b</span>[a]<span class=\"foo\">r</span>baz",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["[foo<b style=\"font-weight: normal\">bar</b>baz]",
    [["stylewithcss","true"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["[foo<b style=\"font-weight: normal\">bar</b>baz]",
    [["stylewithcss","false"],["removeformat",""]],
    "[foobarbaz]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b style=\"font-weight: normal\">b[a]r</b>baz",
    [["stylewithcss","true"],["removeformat",""]],
    "foo<b style=\"font-weight:normal\">b</b>[a]<b style=\"font-weight:normal\">r</b>baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["foo<b style=\"font-weight: normal\">b[a]r</b>baz",
    [["stylewithcss","false"],["removeformat",""]],
    "foo<b style=\"font-weight:normal\">b</b>[a]<b style=\"font-weight:normal\">r</b>baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["<p style=\"background-color: aqua\">foo[bar]baz</p>",
    [["removeformat",""]],
    "<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["<p><span style=\"background-color: aqua\">foo[bar]baz</span></p>",
    [["stylewithcss","true"],["removeformat",""]],
    "<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>[bar]<span style=\"background-color:rgb(0, 255, 255)\">baz</span></p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["<p><span style=\"background-color: aqua\">foo[bar]baz</span></p>",
    [["stylewithcss","false"],["removeformat",""]],
    "<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>[bar]<span style=\"background-color:rgb(0, 255, 255)\">baz</span></p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["<p style=\"font-weight: bold\">foo[bar]baz</p>",
    [["stylewithcss","true"],["removeformat",""]],
    "<p><span style=\"font-weight:bold\">foo</span>[bar]<span style=\"font-weight:bold\">baz</span></p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["<p style=\"font-weight: bold\">foo[bar]baz</p>",
    [["stylewithcss","false"],["removeformat",""]],
    "<p><b>foo</b>[bar]<b>baz</b></p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["<b><p style=\"font-weight: bold\">foo[bar]baz</p></b>",
    [["stylewithcss","true"],["removeformat",""]],
    "<p><span style=\"font-weight:bold\">foo</span>[bar]<span style=\"font-weight:bold\">baz</span></p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["<b><p style=\"font-weight: bold\">foo[bar]baz</p></b>",
    [["stylewithcss","false"],["removeformat",""]],
    "<p><b>foo</b>[bar]<b>baz</b></p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}],
["<p style=\"font-variant: small-caps\">foo[bar]baz</p>",
    [["removeformat",""]],
    "<p style=\"font-variant:small-caps\">foo[bar]baz</p>",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["{<p style=\"font-variant: small-caps\">foobarbaz</p>}",
    [["removeformat",""]],
    "{<p style=\"font-variant:small-caps\">foobarbaz</p>}",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["<p style=\"text-indent: 2em\">foo[bar]baz</p>",
    [["removeformat",""]],
    "<p style=\"text-indent:2em\">foo[bar]baz</p>",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["{<p style=\"text-indent: 2em\">foobarbaz</p>}",
    [["removeformat",""]],
    "{<p style=\"text-indent:2em\">foobarbaz</p>}",
    [true],
    {"removeformat":[false,false,"",false,false,""]}],
["<table data-start=0 data-end=1><tr><td><b>foo</b></table>",
    [["stylewithcss","true"],["removeformat",""]],
    "<table>{<tbody><tr><td>foo</td></tr></tbody>}</table>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}],
["<table data-start=0 data-end=1><tr><td><b>foo</b></table>",
    [["stylewithcss","false"],["removeformat",""]],
    "<table>{<tbody><tr><td>foo</td></tr></tbody>}</table>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}]
]