summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/data/inserthorizontalrule.js
blob: 6f0cdba33c17f509a1fec87bdf50cd7cd075aff1 (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
var browserTests = [
["foo[]bar",
    [["inserthorizontalrule",""]],
    "foo<hr>{}bar",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<span>foo</span>{}<span>bar</span>",
    [["inserthorizontalrule",""]],
    "<span>foo</span><hr>{}<span>bar</span>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<span>foo[</span><span>]bar</span>",
    [["inserthorizontalrule",""]],
    "<span>foo</span><hr>{}<span>bar</span>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo[bar<p>baz]quz",
    [["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>quz</p>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<div><b>foo</b>{}<b>bar</b></div>",
    [["inserthorizontalrule",""]],
    "<div><b>foo</b><hr>{}<b>bar</b></div>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<div><b>foo[</b><b>]bar</b></div>",
    [["inserthorizontalrule",""]],
    "<div><b>foo</b><hr>{}<b>bar</b></div>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<div><b>foo</b>{<b>bar</b>}<b>baz</b></div>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<div><b>foo</b><hr>{}<b>baz</b></div>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<div><b>foo</b>{<b>bar</b>}<b>baz</b></div>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<div><b>foo</b><hr>{}<b>baz</b></div>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<b>foo[]bar</b>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<b>foo</b><hr>{}<b>bar</b>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<b>foo[]bar</b>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<b>foo</b><hr>{}<b>bar</b>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<b id=abc>foo[]bar</b>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<b id=\"abc\">foo</b><hr>{}<b>bar</b>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<b id=abc>foo[]bar</b>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<b id=\"abc\">foo</b><hr>{}<b>bar</b>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo[bar]baz",
    [["inserthorizontalrule","abc"]],
    "foo<hr>{}baz",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo[bar]baz",
    [["inserthorizontalrule",""]],
    "foo<hr>{}baz",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo<b>[bar]</b>baz",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "foo<hr>{}baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo<b>[bar]</b>baz",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "foo<hr>{}baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo<b>{bar}</b>baz",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "foo<hr>{}baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo<b>{bar}</b>baz",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "foo<hr>{}baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo{<b>bar</b>}baz",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "foo<hr>{}baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["foo{<b>bar</b>}baz",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "foo<hr>{}baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<p>[bar]<p>baz",
    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<p>[bar]<p>baz",
    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<p>{bar}<p>baz",
    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<p>{bar}<p>baz",
    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo{<p>bar</p>}<p>baz",
    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo{<p>bar</p>}<p>baz",
    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo[bar]baz</p>",
    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo[bar]baz</p>",
    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p id=abc>foo[bar]baz</p>",
    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p id=\"abc\">foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p id=abc>foo[bar]baz</p>",
    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p id=\"abc\">foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<h1>foo[bar]baz</h1>",
    [["inserthorizontalrule",""]],
    "<h1>foo</h1><hr>{}<h1>baz</h1>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<b>b[a]r</b>baz</p>",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<b>b[a]r</b>baz</p>",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<b>b[a]r</b>baz</p>",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo<b>b[a]r</b>baz</p>",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<a>foo[bar]baz</a>",
    [["inserthorizontalrule",""]],
    "<a>foo</a><hr>{}<a>baz</a>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<a href=/>foo[bar]baz</a>",
    [["inserthorizontalrule",""]],
    "<a href=\"/\">foo</a><hr>{}<a href=\"/\">baz</a>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<abbr>foo[bar]baz</abbr>",
    [["inserthorizontalrule",""]],
    "<abbr>foo</abbr><hr>{}<abbr>baz</abbr>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<address>foo[bar]baz</address>",
    [["inserthorizontalrule",""]],
    "<address>foo<hr>{}baz</address>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<article>foo[bar]baz</article>",
    [["inserthorizontalrule",""]],
    "<article>foo<hr>{}baz</article>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<aside>foo[bar]baz</aside>",
    [["inserthorizontalrule",""]],
    "<aside>foo<hr>{}baz</aside>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<b>foo[bar]baz</b>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<b>foo</b><hr>{}<b>baz</b>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<b>foo[bar]baz</b>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<b>foo</b><hr>{}<b>baz</b>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<bdi>foo[bar]baz</bdi>",
    [["inserthorizontalrule",""]],
    "<bdi>foo</bdi><hr>{}<bdi>baz</bdi>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<bdo dir=rtl>foo[bar]baz</bdo>",
    [["inserthorizontalrule",""]],
    "<bdo dir=\"rtl\">foo</bdo><hr>{}<bdo dir=\"rtl\">baz</bdo>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<blockquote>foo[bar]baz</blockquote>",
    [["inserthorizontalrule",""]],
    "<blockquote>foo<hr>{}baz</blockquote>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<table><caption>foo[bar]baz</caption><tr><td>quz</table>",
    [["inserthorizontalrule",""]],
    "<table><caption>foo<hr>{}baz</caption><tbody><tr><td>quz</td></tr></tbody></table>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<cite>foo[bar]baz</cite>",
    [["inserthorizontalrule",""]],
    "<cite>foo</cite><hr>{}<cite>baz</cite>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<code>foo[bar]baz</code>",
    [["inserthorizontalrule",""]],
    "<code>foo</code><hr>{}<code>baz</code>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<dl><dd>foo[bar]baz</dd></dl>",
    [["inserthorizontalrule",""]],
    "<dl><dd>foo<hr>{}baz</dd></dl>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<del>foo[bar]baz</del>",
    [["inserthorizontalrule",""]],
    "<del>foo<hr>{}baz</del>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<details>foo[bar]baz</details>",
    [["inserthorizontalrule",""]],
    "<details>foo<hr>{}baz</details>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<dfn>foo[bar]baz</dfn>",
    [["inserthorizontalrule",""]],
    "<dfn>foo</dfn><hr>{}<dfn>baz</dfn>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<div>foo[bar]baz</div>",
    [["inserthorizontalrule",""]],
    "<div>foo<hr>{}baz</div>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<dl><dt>foo[bar]baz</dt></dl>",
    [["inserthorizontalrule",""]],
    "<dl><dt>foo<hr>{}baz</dt></dl>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<em>foo[bar]baz</em>",
    [["inserthorizontalrule",""]],
    "<em>foo</em><hr>{}<em>baz</em>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<figure><figcaption>foo[bar]baz</figcaption>quz</figure>",
    [["inserthorizontalrule",""]],
    "<figure><figcaption>foo<hr>{}baz</figcaption>quz</figure>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<figure>foo[bar]baz</figure>",
    [["inserthorizontalrule",""]],
    "<figure>foo<hr>{}baz</figure>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<footer>foo[bar]baz</footer>",
    [["inserthorizontalrule",""]],
    "<footer>foo<hr>{}baz</footer>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<h1>foo[bar]baz</h1>",
    [["inserthorizontalrule",""]],
    "<h1>foo</h1><hr>{}<h1>baz</h1>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<h2>foo[bar]baz</h2>",
    [["inserthorizontalrule",""]],
    "<h2>foo</h2><hr>{}<h2>baz</h2>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<h3>foo[bar]baz</h3>",
    [["inserthorizontalrule",""]],
    "<h3>foo</h3><hr>{}<h3>baz</h3>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<h4>foo[bar]baz</h4>",
    [["inserthorizontalrule",""]],
    "<h4>foo</h4><hr>{}<h4>baz</h4>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<h5>foo[bar]baz</h5>",
    [["inserthorizontalrule",""]],
    "<h5>foo</h5><hr>{}<h5>baz</h5>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<h6>foo[bar]baz</h6>",
    [["inserthorizontalrule",""]],
    "<h6>foo</h6><hr>{}<h6>baz</h6>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<header>foo[bar]baz</header>",
    [["inserthorizontalrule",""]],
    "<header>foo<hr>{}baz</header>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<hgroup>foo[bar]baz</hgroup>",
    [["inserthorizontalrule",""]],
    "<hgroup>foo</hgroup><hr>{}<hgroup>baz</hgroup>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<hgroup><h1>foo[bar]baz</h1></hgroup>",
    [["inserthorizontalrule",""]],
    "<hgroup><h1>foo</h1></hgroup><hr>{}<hgroup><h1>baz</h1></hgroup>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<i>foo[bar]baz</i>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<i>foo</i><hr>{}<i>baz</i>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<i>foo[bar]baz</i>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<i>foo</i><hr>{}<i>baz</i>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<ins>foo[bar]baz</ins>",
    [["inserthorizontalrule",""]],
    "<ins>foo<hr>{}baz</ins>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<kbd>foo[bar]baz</kbd>",
    [["inserthorizontalrule",""]],
    "<kbd>foo</kbd><hr>{}<kbd>baz</kbd>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<mark>foo[bar]baz</mark>",
    [["inserthorizontalrule",""]],
    "<mark>foo</mark><hr>{}<mark>baz</mark>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<nav>foo[bar]baz</nav>",
    [["inserthorizontalrule",""]],
    "<nav>foo<hr>{}baz</nav>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<ol><li>foo[bar]baz</li></ol>",
    [["inserthorizontalrule",""]],
    "<ol><li>foo<hr>{}baz</li></ol>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo[bar]baz</p>",
    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<p>foo[bar]baz</p>",
    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    "<p>foo</p><hr>{}<p>baz</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<pre>foo[bar]baz</pre>",
    [["inserthorizontalrule",""]],
    "<pre>foo</pre><hr>{}<pre>baz</pre>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<q>foo[bar]baz</q>",
    [["inserthorizontalrule",""]],
    "<q>foo</q><hr>{}<q>baz</q>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<ruby>foo[bar]baz<rt>quz</rt></ruby>",
    [["inserthorizontalrule",""]],
    "<ruby>foo</ruby><hr>{}<ruby>baz<rt>quz</rt></ruby>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<ruby>foo<rt>bar[baz]quz</rt></ruby>",
    [["inserthorizontalrule",""]],
    "<ruby>foo<rt>bar</rt></ruby><hr>{}<ruby><rt>quz</rt></ruby>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<ruby>foo<rp>bar[baz]quz</rp><rt>qoz</rt><rp>qiz</rp></ruby>",
    [["inserthorizontalrule",""]],
    "<ruby>foo<rp>bar</rp></ruby><hr>{}<ruby><rp>quz</rp><rt>qoz</rt><rp>qiz</rp></ruby>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<s>foo[bar]baz</s>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<s>foo</s><hr>{}<s>baz</s>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<s>foo[bar]baz</s>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<s>foo</s><hr>{}<s>baz</s>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<samp>foo[bar]baz</samp>",
    [["inserthorizontalrule",""]],
    "<samp>foo</samp><hr>{}<samp>baz</samp>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<section>foo[bar]baz</section>",
    [["inserthorizontalrule",""]],
    "<section>foo<hr>{}baz</section>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<small>foo[bar]baz</small>",
    [["inserthorizontalrule",""]],
    "<small>foo</small><hr>{}<small>baz</small>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<span>foo[bar]baz</span>",
    [["inserthorizontalrule",""]],
    "<span>foo</span><hr>{}<span>baz</span>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<strong>foo[bar]baz</strong>",
    [["inserthorizontalrule",""]],
    "<strong>foo</strong><hr>{}<strong>baz</strong>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<sub>foo[bar]baz</sub>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<sub>foo</sub><hr>{}<sub>baz</sub>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<sub>foo[bar]baz</sub>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<sub>foo</sub><hr>{}<sub>baz</sub>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<sup>foo[bar]baz</sup>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<sup>foo</sup><hr>{}<sup>baz</sup>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<sup>foo[bar]baz</sup>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<sup>foo</sup><hr>{}<sup>baz</sup>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<table><tr><td>foo[bar]baz</td></table>",
    [["inserthorizontalrule",""]],
    "<table><tbody><tr><td>foo<hr>{}baz</td></tr></tbody></table>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<table><tr><th>foo[bar]baz</th></table>",
    [["inserthorizontalrule",""]],
    "<table><tbody><tr><th>foo<hr>{}baz</th></tr></tbody></table>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<u>foo[bar]baz</u>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<u>foo</u><hr>{}<u>baz</u>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<u>foo[bar]baz</u>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<u>foo</u><hr>{}<u>baz</u>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<ul><li>foo[bar]baz</li></ul>",
    [["inserthorizontalrule",""]],
    "<ul><li>foo<hr>{}baz</li></ul>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<var>foo[bar]baz</var>",
    [["inserthorizontalrule",""]],
    "<var>foo</var><hr>{}<var>baz</var>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<acronym>foo[bar]baz</acronym>",
    [["inserthorizontalrule",""]],
    "<acronym>foo</acronym><hr>{}<acronym>baz</acronym>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<big>foo[bar]baz</big>",
    [["inserthorizontalrule",""]],
    "<big>foo</big><hr>{}<big>baz</big>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<blink>foo[bar]baz</blink>",
    [["inserthorizontalrule",""]],
    "<blink>foo</blink><hr>{}<blink>baz</blink>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<center>foo[bar]baz</center>",
    [["inserthorizontalrule",""]],
    "<center>foo<hr>{}baz</center>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<dir>foo[bar]baz</dir>",
    [["inserthorizontalrule",""]],
    "<dir>foo</dir><hr>{}<dir>baz</dir>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<dir><li>foo[bar]baz</li></dir>",
    [["inserthorizontalrule",""]],
    "<dir><li>foo<hr>{}baz</li></dir>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<font>foo[bar]baz</font>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<font>foo</font><hr>{}<font>baz</font>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<font>foo[bar]baz</font>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<font>foo</font><hr>{}<font>baz</font>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<listing>foo[bar]baz</listing>",
    [["inserthorizontalrule",""]],
    "<listing>foo</listing><hr>{}<listing>baz</listing>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<marquee>foo[bar]baz</marquee>",
    [["inserthorizontalrule",""]],
    "<marquee>foo</marquee><hr>{}<marquee>baz</marquee>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<nobr>foo[bar]baz</nobr>",
    [["inserthorizontalrule",""]],
    "<nobr>foo</nobr><hr>{}<nobr>baz</nobr>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<strike>foo[bar]baz</strike>",
    [["stylewithcss","true"],["inserthorizontalrule",""]],
    "<strike>foo</strike><hr>{}<strike>baz</strike>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<strike>foo[bar]baz</strike>",
    [["stylewithcss","false"],["inserthorizontalrule",""]],
    "<strike>foo</strike><hr>{}<strike>baz</strike>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
["<tt>foo[bar]baz</tt>",
    [["inserthorizontalrule",""]],
    "<tt>foo</tt><hr>{}<tt>baz</tt>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<xmp>foo[bar]baz</xmp>",
    [["inserthorizontalrule",""]],
    "<xmp>foo</xmp><hr>{}<xmp>baz</xmp>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<quasit>foo[bar]baz</quasit>",
    [["inserthorizontalrule",""]],
    "<quasit>foo<hr>{}baz</quasit>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["<table><tr><td>fo[o<td>b]ar</table>",
    [["inserthorizontalrule",""]],
    "<table><tbody><tr><td>fo<hr>{}</td><td>ar</td></tr></tbody></table>",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}],
["fo[o<span contenteditable=false>bar</span>b]az",
    [["inserthorizontalrule",""]],
    "fo<hr>{}<span contenteditable=\"false\">bar</span>az",
    [true],
    {"inserthorizontalrule":[false,false,"",false,false,""]}]
]