summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/data/indent.js
blob: 4dd7d1feee04c1b36339524b45efd08318481bc6 (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
718
719
720
721
722
723
724
725
726
727
728
729
730
// For documentation of the format, see README in this directory.
var browserTests = [
["foo[]bar<p>extra",
    [["indent",""]],
    "<blockquote>foo[]bar</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<span>foo</span>{}<span>bar</span><p>extra",
    [["indent",""]],
    "<blockquote><span>foo</span>{}<span>bar</span></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<span>foo[</span><span>]bar</span><p>extra",
    [["indent",""]],
    "<blockquote><span>foo[</span><span>]bar</span></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo[bar]baz<p>extra",
    [["indent",""]],
    "<blockquote>foo[bar]baz</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p dir=rtl>פו[בר]בז<p dir=rtl>נוםף",
    [["indent",""]],
    "<blockquote><p dir=\"rtl\">פו[בר]בז</p></blockquote><p dir=\"rtl\">נוםף</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p dir=rtl>פו[ברבז<p>Foobar]baz<p>Extra",
    [["indent",""]],
    "<blockquote><p dir=\"rtl\">פו[ברבז</p><p>Foobar]baz</p></blockquote><p>Extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>Foo[barbaz<p dir=rtl>פובר]בז<p>Extra",
    [["indent",""]],
    "<blockquote><p>Foo[barbaz</p><p dir=\"rtl\">פובר]בז</p></blockquote><p>Extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<div><p>Foo[barbaz<p dir=rtl>פובר]בז</div><p>Extra",
    [["indent",""]],
    "<blockquote><div><p>Foo[barbaz</p><p dir=\"rtl\">פובר]בז</p></div></blockquote><p>Extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo]bar[baz<p>extra",
    [["indent",""]],
    "<blockquote>foo[bar]baz</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["{<p><p> <p>foo</p>}<p>extra",
    [["indent",""]],
    "<blockquote>{<p></p><p> </p><p>foo</p>}</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo[bar<i>baz]qoz</i>quz<p>extra",
    [["indent",""]],
    "<blockquote>foo[bar<i>baz]qoz</i>quz</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["[]foo<p>extra",
    [["indent",""]],
    "<blockquote>[]foo</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo[]<p>extra",
    [["indent",""]],
    "<blockquote>foo[]</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[]foo<p>extra",
    [["indent",""]],
    "<blockquote><p>[]foo</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo[]<p>extra",
    [["indent",""]],
    "<blockquote><p>foo[]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>{}<br>foo</p><p>extra",
    [["indent",""]],
    "<blockquote>{}<br></blockquote><p>foo</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<br>{}</p><p>extra",
    [["indent",""]],
    "<blockquote><p>foo{}</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<span>{}<br>foo</span>bar<p>extra",
    [["indent",""]],
    "<blockquote>{}<br></blockquote><span>foo</span>bar<p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<span>foo<br>{}</span>bar<p>extra",
    [["indent",""]],
    "<span>foo{}</span><blockquote>bar</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo</p>{}<p>bar</p>",
    [["indent",""]],
    "<p>foo</p>{}<p>bar</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["indent",""]],
    "<table><tbody><tr><td>foo</td><td><blockquote>b[a]r</blockquote></td><td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["indent",""]],
    "<table><tbody><tr><td>foo</td>{<td><blockquote>bar</blockquote></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["indent",""]],
    "<table><tbody><tr>{<td><blockquote>foo</blockquote></td><td><blockquote>bar</blockquote></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["indent",""]],
    "<blockquote><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["indent",""]],
    "<blockquote><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["indent",""]],
    "<blockquote>{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo[bar]</p><p>baz</p><p>extra",
    [["indent",""]],
    "<blockquote><p>foo[bar]</p></blockquote><p>baz</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foobar</p><p>ba]z</p><p>extra",
    [["indent",""]],
    "<blockquote><p>[foobar</p><p>ba]z</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo[bar]<br>baz<p>extra",
    [["indent",""]],
    "<blockquote>foo[bar]</blockquote>baz<p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo[bar]<br><br><br><br>baz<p>extra",
    [["indent",""]],
    "<blockquote>foo[bar]</blockquote><br><br><br>baz<p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foobar<br>[ba]z<p>extra",
    [["indent",""]],
    "foobar<blockquote>[ba]z</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foobar<br><br><br><br>[ba]z<p>extra",
    [["indent",""]],
    "foobar<br><br><br><br><blockquote>[ba]z</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo[bar<br>ba]z<p>extra",
    [["indent",""]],
    "<blockquote>foo[bar<br>ba]z</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<div>foo<p>[bar]</p>baz</div><p>extra",
    [["indent",""]],
    "<div>foo<blockquote><p>[bar]</p></blockquote>baz</div><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote><p>foo[bar]</p><p>baz</p></blockquote><p>extra",
    [["indent",""]],
    "<blockquote><blockquote><p>foo[bar]</p></blockquote><p>baz</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote><p>foo[bar</p><p>b]az</p></blockquote><p>extra",
    [["indent",""]],
    "<blockquote><blockquote><p>foo[bar</p><p>b]az</p></blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote><p>foo[bar]</p></blockquote><p>baz</p><p>extra",
    [["indent",""]],
    "<blockquote><blockquote><p>foo[bar]</p></blockquote></blockquote><p>baz</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote><p>foo[bar</p></blockquote><p>b]az</p><p>extra",
    [["indent",""]],
    "<blockquote><blockquote><p>foo[bar</p></blockquote><p>b]az</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo]<blockquote><p>bar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><p>[foo]</p><p>bar</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<blockquote><p>b]ar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><blockquote><p>b]ar</p></blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<blockquote><p>bar</blockquote><p>[baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><blockquote><p>bar</p><p>[baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<blockquote><p>[bar</blockquote><p>baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><blockquote><blockquote><p>[bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<blockquote><p>bar</blockquote><p>baz]<p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><blockquote><p>bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote><p>foo</blockquote><p>[bar]<blockquote><p>baz</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><p>foo</p><p>[bar]</p><p>baz</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote>foo[bar]<br>baz</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><blockquote>foo[bar]</blockquote>baz</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote>foo[bar<br>b]az</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><blockquote>foo[bar<br>b]az</blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote>foo[bar]</blockquote>baz<p>extra",
    [["indent",""]],
    "<blockquote><blockquote>foo[bar]</blockquote></blockquote>baz<p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote>foo[bar</blockquote>b]az<p>extra",
    [["indent",""]],
    "<blockquote><blockquote>foo[bar</blockquote>b]az</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["[foo]<blockquote>bar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote>[foo]<br>bar</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["[foo<blockquote>b]ar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote>[foo<blockquote>b]ar</blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo<blockquote>bar</blockquote>[baz]<p>extra",
    [["indent",""]],
    "foo<blockquote>bar<br>[baz]</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["[foo<blockquote>bar</blockquote>baz]<p>extra",
    [["indent",""]],
    "<blockquote>[foo<blockquote>bar</blockquote>baz]</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote>foo</blockquote>[bar]<blockquote>baz</blockquote><p>extra",
    [["indent",""]],
    "<blockquote>foo<br>[bar]<br>baz</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar]</p><p>baz</p></blockquote><p>extra",
    [["indent",""]],
    "<blockquote style=\"margin-right:0\" dir=\"ltr\"><blockquote><p>foo[bar]</p></blockquote><p>baz</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar</p><p>b]az</p></blockquote><p>extra",
    [["indent",""]],
    "<blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo[bar</p><p>b]az</p></blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar]</p></blockquote><p>baz</p><p>extra",
    [["indent",""]],
    "<blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo[bar]</p></blockquote></blockquote><p>baz</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar</p></blockquote><p>b]az</p><p>extra",
    [["indent",""]],
    "<blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo[bar</p></blockquote><p>b]az</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo]<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>bar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote style=\"margin-right:0\" dir=\"ltr\"><p>[foo]</p><p>bar</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>b]ar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>b]ar</p></blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>bar</blockquote><p>[baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>bar</p><p>[baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>[bar</blockquote><p>baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>[bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>bar</blockquote><p>baz]<p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo</blockquote><p>[bar]<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>baz</blockquote><p>extra",
    [["stylewithcss","true"],["indent",""]],
    "<blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo</p><p>[bar]</p><p>baz</p></blockquote><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"indent":[false,false,"",false,false,""]}],
["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo</blockquote><p>[bar]<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>baz</blockquote><p>extra",
    [["stylewithcss","false"],["indent",""]],
    "<blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo</p><p>[bar]</p><p>baz</p></blockquote><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"indent":[false,false,"",false,false,""]}],
["<p style=\"margin-left: 40px\">foo[bar]</p><p style=\"margin-left: 40px\">baz</p><p>extra",
    [["indent",""]],
    "<blockquote><p style=\"margin-left:40px\">foo[bar]</p></blockquote><p style=\"margin-left:40px\">baz</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p style=\"margin-left: 40px\">foo[bar</p><p style=\"margin-left: 40px\">b]az</p><p>extra",
    [["indent",""]],
    "<blockquote><p style=\"margin-left:40px\">foo[bar</p><p style=\"margin-left:40px\">b]az</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p style=\"margin-left: 40px\">foo[bar]</p><p>baz</p><p>extra",
    [["indent",""]],
    "<blockquote><p style=\"margin-left:40px\">foo[bar]</p></blockquote><p>baz</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p style=\"margin-left: 40px\">foo[bar</p><p>b]az</p><p>extra",
    [["indent",""]],
    "<blockquote><p style=\"margin-left:40px\">foo[bar</p><p>b]az</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo]<p style=\"margin-left: 40px\">bar<p>extra",
    [["indent",""]],
    "<blockquote><p>[foo]</p></blockquote><p style=\"margin-left:40px\">bar</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<p style=\"margin-left: 40px\">b]ar<p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><p style=\"margin-left:40px\">b]ar</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<p style=\"margin-left: 40px\">bar<p>[baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><p style=\"margin-left:40px\">bar</p><blockquote><p>[baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<p style=\"margin-left: 40px\">[bar<p>baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><blockquote><p style=\"margin-left:40px\">[bar</p><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<p style=\"margin-left: 40px\">bar<p>baz]<p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><p style=\"margin-left:40px\">bar</p><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p style=\"margin-left: 40px\">foo<p>[bar]<p style=\"margin-left: 40px\">baz<p>extra",
    [["indent",""]],
    "<p style=\"margin-left:40px\">foo</p><blockquote><p>[bar]</p></blockquote><p style=\"margin-left:40px\">baz</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>foo[bar]</p><p>baz</p></blockquote><p>extra",
    [["indent",""]],
    "<blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><blockquote><p>foo[bar]</p></blockquote><p>baz</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>foo[bar</p><p>b]az</p></blockquote><p>extra",
    [["indent",""]],
    "<blockquote><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>foo[bar</p><p>b]az</p></blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>foo[bar]</p></blockquote><p>baz</p><p>extra",
    [["indent",""]],
    "<blockquote><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>foo[bar]</p></blockquote></blockquote><p>baz</p><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>foo[bar</p></blockquote><p>b]az</p><p>extra",
    [["indent",""]],
    "<blockquote><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>foo[bar</p></blockquote><p>b]az</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo]<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>bar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><p>[foo]</p></blockquote><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>bar</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>b]ar</blockquote><p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>b]ar</p></blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>bar</blockquote><p>[baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>bar</p></blockquote><blockquote><p>[baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>[bar</blockquote><p>baz]<p>extra",
    [["indent",""]],
    "<p>foo</p><blockquote><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>[bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>bar</blockquote><p>baz]<p>extra",
    [["indent",""]],
    "<blockquote><p>[foo</p><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>foo</blockquote><p>[bar]<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>baz</blockquote><p>extra",
    [["indent",""]],
    "<blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>foo</p></blockquote><blockquote><p>[bar]</p></blockquote><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>baz</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote>f[oo<blockquote>b]ar</blockquote></blockquote><p>extra",
    [["indent",""]],
    "<blockquote><blockquote>f[oo<blockquote>b]ar</blockquote></blockquote></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar]<li>baz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar]</li></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol data-start=1 data-end=2><li>foo<li>bar<li>baz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol>{<li>bar</li>}</ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</ol>[bar]",
    [["indent",""]],
    "<ol><li>foo</li></ol><blockquote>[bar]</blockquote>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo]<br>bar<li>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>[foo]<br>bar</li></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<br>[bar]<li>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>foo<br>[bar]</li></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li><div>[foo]</div>bar<li>baz</ol>",
    [["indent",""]],
    "<ol><ol><li><div>[foo]</div>bar</li></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>[bar]<li>baz</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol><li>[bar]</li></ol><li>baz</li></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>bar<li>[baz]</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li><ol><li>[baz]</li></ol></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>[bar]<li>baz</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol><li>[bar]</li></ol><li>baz</li></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol data-start=0 data-end=1><li>bar<li>baz</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol>{<li>bar</li>}</ol><li>baz</li></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>bar<li>[baz]</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li><ol><li>[baz]</li></ol></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol data-start=1 data-end=2><li>bar<li>baz</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li><ol>{<li>baz</li>}</ol></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>b[a]r</ol><li>baz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol><li>b[a]r</li></ol></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>b[a]r</ol><li>baz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol><li>b[a]r</li></ol></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo{<ol><li>bar</ol>}<li>baz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol>{<ol><li>bar</li></ol>}</ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li>{<ol><li>bar</ol>}<li>baz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol>{<ol><li>bar</li></ol>}</ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo]<ol><li>bar</ol><li>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>[foo]</li><li>bar</li></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo]</li><ol><li>bar</ol><li>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>[foo]</li><li>bar</li></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar]<ol><li>baz</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar]</li><li>baz</li></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar]</li><ol><li>baz</ol><li>quz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar]</li><li>baz</li></ol><li>quz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>bar<li>baz</ol><li>[quz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li><li>baz</li><li>[quz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>bar<li>baz</ol><li>[quz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li><li>baz</li><li>[quz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>",
    [["indent",""]],
    "<ol><ol id=\"u1\"><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><ol><li id=i1>foo</ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>",
    [["indent",""]],
    "<ol><ol><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</li><ol><li id=i3>baz</ol></ol>",
    [["indent",""]],
    "<ol><ol id=\"u1\"><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>",
    [["indent",""]],
    "<ol><ol id=\"u3\"><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</ol>",
    [["indent",""]],
    "<ol><ol id=\"u1\"><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>b[ar<li>baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>b[ar</li><li>baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo<ol><li>bar]</ol><li>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>[foo</li><ol><li>bar]</li></ol></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo</li><ol><li>bar]</ol><li>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>[foo</li><ol><li>bar]</li></ol></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>b[ar</ol><li>b]az</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol><li>b[ar</li></ol><li>b]az</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>b[ar</ol><li>b]az</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol><li>b[ar</li></ol><li>b]az</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo<ol><li>bar</ol><li>baz]</ol><p>extra",
    [["indent",""]],
    "<blockquote><ol><li>[foo</li><ol><li>bar</li></ol><li>baz]</li></ol></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo</li><ol><li>bar</ol><li>baz]</ol><p>extra",
    [["indent",""]],
    "<blockquote><ol><li>[foo</li><ol><li>bar</li></ol><li>baz]</li></ol></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo]<ol><li>bar</ol>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>[foo]</li><li>bar</li></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>[bar]</ol>baz</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><ol><li>[bar]</li></ol></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>bar</ol>[baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li><li>[baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>[foo<ol><li>bar]</ol>baz</ol>",
    [["indent",""]],
    "<ol><ol><li>[foo</li><ol><li>bar]</li></ol></ol><li>baz</li></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["foo<!--bar-->[baz]<p>extra",
    [["indent",""]],
    "<blockquote>foo<!--bar-->[baz]</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["[foo]<!--bar-->baz<p>extra",
    [["indent",""]],
    "<blockquote>[foo]<!--bar-->baz</blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>foo<!--bar-->{}<p>extra",
    [["indent",""]],
    "<blockquote><p>foo<!--bar-->{}</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>{}<!--foo-->bar<p>extra",
    [["indent",""]],
    "<blockquote><p>{}<!--foo-->bar</p></blockquote><p>extra</p>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote><p>foo</blockquote> <p>[bar]",
    [["indent",""]],
    "<blockquote><p>foo</p> <p>[bar]</p></blockquote>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[foo]</p> <blockquote><p>bar</blockquote>",
    [["indent",""]],
    "<blockquote><p>[foo]</p> <p>bar</p></blockquote>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<blockquote><p>foo</blockquote> <p>[bar]</p> <blockquote><p>baz</blockquote>",
    [["indent",""]],
    "<blockquote><p>foo</p> <p>[bar]</p> <p>baz</p></blockquote>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>bar</li> </ol><li>[baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li> <li>[baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>bar</li></ol> <li>[baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li> <li>[baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo</li><ol><li>bar</li> </ol> <li>[baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li>  <li>[baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>bar</li> </ol></li><li>[baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li> <li>[baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>bar</li></ol></li> <li>[baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li> <li>[baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<ol><li>bar</li> </ol></li> <li>[baz]</ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>bar</li>  <li>[baz]</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar]</li> <ol><li>baz</ol></ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar]</li> <li>baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar]</li><ol> <li>baz</ol></ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar]</li> <li>baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar]</li> <ol> <li>baz</ol></ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar]</li>  <li>baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar] <ol><li>baz</ol></ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar] </li><li>baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar]<ol> <li>baz</ol></ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar]</li> <li>baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ol><li>foo<li>[bar] <ol> <li>baz</ol></ol>",
    [["indent",""]],
    "<ol><li>foo</li><ol><li>[bar] </li> <li>baz</li></ol></ol>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<ul><li>a<br>{<br>}</li><li>b</li></ul>",
    [["indent",""]],
    "<ul><ul><li>a<br>{<br>}</li></ul><li>b</li></ul>",
    [true],
    {"indent":[false,false,"",false,false,""]}],
["<p>[abc]</p>",
    [["stylewithcss","true"],["indent",""]],
    ["<p style=\"margin-left:40px\">abc</p>",
     "<blockquote style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>abc</p></blockquote>"],
    [true,true],
    {"indent":[false,false,"",false,false,""]}],
["<div contenteditable=false><div contenteditable>[abc]</div></div>",
    [["stylewithcss","true"],["indent",""]],
    ["<div contenteditable=\"false\"><div contenteditable=\"\"><div style=\"margin-left:40px\">abc</div></div></div>",
     "<div contenteditable=\"false\"><div contenteditable=\"\"><blockquote style=\"margin:0 0 0 40px; border:none; padding:0px\">abc</blockquote></div></div>"],
    [true,true],
    {"indent":[false,false,"",false,false,""]}],
]