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
|
var browserTests = [
["foo[]bar",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}bar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo[]bar",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}bar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>[bar]</span>baz",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>[bar]</span>baz",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>{bar}</span>baz",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>{bar}</span>baz",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo{<span style=color:#aBcDeF>bar</span>}baz",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo{<span style=color:#aBcDeF>bar</span>}baz",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["[foo<span style=color:#aBcDeF>bar]</span>baz",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"ab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["[foo<span style=color:#aBcDeF>bar]</span>baz",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"ab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["{foo<span style=color:#aBcDeF>bar}</span>baz",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"ab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["{foo<span style=color:#aBcDeF>bar}</span>baz",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"ab<b>c</b>d{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>[bar</span>baz]",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>[bar</span>baz]",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>{bar</span>baz}",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>{bar</span>baz}",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
[["stylewithcss","true"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}quz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
"fooab<b>c</b>d{}quz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["inserthtml",""]],
"foo[]baz",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["inserthtml","\u0000"]],
"foo[]baz",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["inserthtml","\u0007"]],
"foo\u0007{}baz",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["stylewithcss","true"],["inserthtml","<b>"]],
"foo<b></b>{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["stylewithcss","false"],["inserthtml","<b>"]],
"foo<b></b>{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["stylewithcss","true"],["inserthtml","<b>abc"]],
"foo<b>abc</b>{}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["stylewithcss","false"],["inserthtml","<b>abc"]],
"foo<b>abc</b>{}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["<p>foo[bar]baz",
[["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<p>foo</p><p>abc</p>{}<p>baz</p>",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<p>foo[bar]baz",
[["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<p>foo</p><p>abc</p>{}<p>baz</p>",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<p>foo[bar]baz",
[["defaultparagraphseparator","div"],["inserthtml","<li>abc"]],
"<p>foo</p><div>abc</div>{}<p>baz</p>",
[true,true],
{"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<p>foo[bar]baz",
[["defaultparagraphseparator","p"],["inserthtml","<li>abc"]],
"<p>foo</p><p>abc</p>{}<p>baz</p>",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<ol>{<li>foo</li>}<li>bar</ol>",
[["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<p>abc</p>{}<ol><li>bar</li></ol>",
[true,true],
{"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<ol>{<li>foo</li>}<li>bar</ol>",
[["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<p>abc</p>{}<ol><li>bar</li></ol>",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>foo</li>{<li>bar</li>}<li>baz</ol>",
[["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<ol><li>foo</li></ol><p>abc</p>{}<ol><li>baz</li></ol>",
[true,true],
{"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>foo</li>{<li>bar</li>}<li>baz</ol>",
[["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<ol><li>foo</li></ol><p>abc</p>{}<ol><li>baz</li></ol>",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>[foo]</li><li>bar</ol>",
[["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<ol><li><p>abc</p>{}</li><li>bar</li></ol>",
[true,true],
{"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>[foo]</li><li>bar</ol>",
[["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<ol><li><p>abc</p>{}</li><li>bar</li></ol>",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<xmp>f[o]o</xmp>",
[["inserthtml","abc"]],
"<xmp>fabc{}o</xmp>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<xmp>f[o]o</xmp>",
[["stylewithcss","true"],["inserthtml","<b>abc</b>"]],
"<xmp>f<b>abc</b>{}o</xmp>",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["<xmp>f[o]o</xmp>",
[["stylewithcss","false"],["inserthtml","<b>abc</b>"]],
"<xmp>f<b>abc</b>{}o</xmp>",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["<script>f[o]o</script>bar",
[["inserthtml","abc"]],
"<script>fabc{}o</script>bar",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<script>f[o]o</script>bar",
[["stylewithcss","true"],["inserthtml","<b>abc</b>"]],
"<script>f<b>abc</b>{}o</script>bar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["<script>f[o]o</script>bar",
[["stylewithcss","false"],["inserthtml","<b>abc</b>"]],
"<script>f<b>abc</b>{}o</script>bar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["<a>f[o]o</a>",
[["inserthtml","<a>abc</a>"]],
"<a>f</a><a>abc</a>{}<a>o</a>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<a href=.>f[o]o</a>",
[["inserthtml","<a href=/>abc</a>"]],
"<a href=\".\">f</a><a href=\"/\">abc</a>{}<a href=\".\">o</a>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p>f[o]o",
[["defaultparagraphseparator","div"],["inserthtml","<hr>"]],
"<p>f</p><hr>{}<p>o</p>",
[true,true],
{"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<p>f[o]o",
[["defaultparagraphseparator","p"],["inserthtml","<hr>"]],
"<p>f</p><hr>{}<p>o</p>",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<b>f[o]o</b>",
[["stylewithcss","true"],["inserthtml","<hr>"]],
"<b>f</b><hr>{}<b>o</b>",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["<b>f[o]o</b>",
[["stylewithcss","false"],["inserthtml","<hr>"]],
"<b>f</b><hr>{}<b>o</b>",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["<h1>f[o]o</h1>",
[["inserthtml","<h2>abc</h2>"]],
"<h1>f</h1><h2>abc</h2>{}<h1>o</h1>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<table><tr><td>f[o]o</table>",
[["inserthtml","<td>abc</td>"]],
"<table><tbody><tr><td>fabc{}o</td></tr></tbody></table>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["f[o]o",
[["inserthtml","<td>abc</td>"]],
"fabc{}o",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dl><dt>f[o]o<dd>bar</dl>",
[["inserthtml","<dt>abc</dt>"]],
"<dl><dt>f</dt><dt>abc</dt>{}<dt>o</dt><dd>bar</dd></dl>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dl><dt>foo<dd>b[a]r</dl>",
[["inserthtml","<dt>abc</dt>"]],
"<dl><dt>foo</dt><dd>b</dd><dt>abc</dt>{}<dd>r</dd></dl>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dl><dt>f[o]o<dd>bar</dl>",
[["inserthtml","<dd>abc</dd>"]],
"<dl><dt>f</dt><dd>abc</dd>{}<dt>o</dt><dd>bar</dd></dl>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dl><dt>foo<dd>b[a]r</dl>",
[["inserthtml","<dd>abc</dd>"]],
"<dl><dt>foo</dt><dd>b</dd><dd>abc</dd>{}<dd>r</dd></dl>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["f[o]o",
[["inserthtml","<dt>abc</dt>"]],
"f<dl><dt>abc</dt>{}</dl>o",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>f[o]o</ol>",
[["inserthtml","<dt>abc</dt>"]],
"<ol><li>f<dl><dt>abc</dt>{}</dl>o</li></ol>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["f[o]o",
[["inserthtml","<dd>abc</dd>"]],
"f<dl><dd>abc</dd>{}</dl>o",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>f[o]o</ol>",
[["inserthtml","<dd>abc</dd>"]],
"<ol><li>f<dl><dd>abc</dd>{}</dl>o</li></ol>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dir><li>f[o]o</dir>",
[["inserthtml","<li>abc</li>"]],
"<dir><li>f</li><li>abc</li>{}<li>o</li></dir>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>f[o]o</ol>",
[["inserthtml","<li>abc</li>"]],
"<ol><li>f</li><li>abc</li>{}<li>o</li></ol>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ul><li>f[o]o</ul>",
[["inserthtml","<li>abc</li>"]],
"<ul><li>f</li><li>abc</li>{}<li>o</li></ul>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dir><li>f[o]o</dir>",
[["inserthtml","<dir><li>abc</dir>"]],
"<dir><li>f<dir><li>abc</li></dir>{}o</li></dir>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>f[o]o</ol>",
[["inserthtml","<dir><li>abc</dir>"]],
"<ol><li>f<dir><li>abc</li></dir>{}o</li></ol>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ul><li>f[o]o</ul>",
[["inserthtml","<dir><li>abc</dir>"]],
"<ul><li>f<dir><li>abc</li></dir>{}o</li></ul>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dir><li>f[o]o</dir>",
[["inserthtml","<ol><li>abc</ol>"]],
"<dir><li>f<ol><li>abc</li></ol>{}o</li></dir>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>f[o]o</ol>",
[["inserthtml","<ol><li>abc</ol>"]],
"<ol><li>f<ol><li>abc</li></ol>{}o</li></ol>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ul><li>f[o]o</ul>",
[["inserthtml","<ol><li>abc</ol>"]],
"<ul><li>f<ol><li>abc</li></ol>{}o</li></ul>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<dir><li>f[o]o</dir>",
[["inserthtml","<ul><li>abc</ul>"]],
"<dir><li>f<ul><li>abc</li></ul>{}o</li></dir>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ol><li>f[o]o</ol>",
[["inserthtml","<ul><li>abc</ul>"]],
"<ol><li>f<ul><li>abc</li></ul>{}o</li></ol>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<ul><li>f[o]o</ul>",
[["inserthtml","<ul><li>abc</ul>"]],
"<ul><li>f<ul><li>abc</li></ul>{}o</li></ul>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["f[o]o",
[["defaultparagraphseparator","div"],["inserthtml","<li>abc</li>"]],
"f<div>abc</div>{}o",
[true,true],
{"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["f[o]o",
[["defaultparagraphseparator","p"],["inserthtml","<li>abc</li>"]],
"f<p>abc</p>{}o",
[true,true],
{"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<nobr>f[o]o</nobr>",
[["inserthtml","<nobr>abc</nobr>"]],
"<nobr>f</nobr><nobr>abc</nobr>{}<nobr>o</nobr>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["f[o]o",
[["inserthtml","<nobr>abc</nobr>"]],
"f<nobr>abc</nobr>{}o",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<font color=blue>foo[]bar</font>",
[["stylewithcss","true"],["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<font color=\"blue\">foo</font><p><span style=\"color:rgb(0, 0, 255)\">abc</span></p>{}<font color=\"blue\">bar</font>",
[true,true,true],
{"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<font color=blue>foo[]bar</font>",
[["stylewithcss","false"],["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<font color=\"blue\">foo</font><p><font color=\"#0000ff\">abc</font></p>{}<font color=\"blue\">bar</font>",
[true,true,true],
{"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<font color=blue>foo[]bar</font>",
[["stylewithcss","true"],["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<font color=\"blue\">foo</font><p><span style=\"color:rgb(0, 0, 255)\">abc</span></p>{}<font color=\"blue\">bar</font>",
[true,true,true],
{"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<font color=blue>foo[]bar</font>",
[["stylewithcss","false"],["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<font color=\"blue\">foo</font><p><font color=\"#0000ff\">abc</font></p>{}<font color=\"blue\">bar</font>",
[true,true,true],
{"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=color:blue>foo[]bar</span>",
[["stylewithcss","true"],["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<span style=\"color:rgb(0, 0, 255)\">foo</span><p><span style=\"color:rgb(0, 0, 255)\">abc</span></p>{}<span style=\"color:rgb(0, 0, 255)\">bar</span>",
[true,true,true],
{"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=color:blue>foo[]bar</span>",
[["stylewithcss","false"],["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<span style=\"color:rgb(0, 0, 255)\">foo</span><p><font color=\"#0000ff\">abc</font></p>{}<span style=\"color:rgb(0, 0, 255)\">bar</span>",
[true,true,true],
{"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=color:blue>foo[]bar</span>",
[["stylewithcss","true"],["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<span style=\"color:rgb(0, 0, 255)\">foo</span><p><span style=\"color:rgb(0, 0, 255)\">abc</span></p>{}<span style=\"color:rgb(0, 0, 255)\">bar</span>",
[true,true,true],
{"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=color:blue>foo[]bar</span>",
[["stylewithcss","false"],["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<span style=\"color:rgb(0, 0, 255)\">foo</span><p><font color=\"#0000ff\">abc</font></p>{}<span style=\"color:rgb(0, 0, 255)\">bar</span>",
[true,true,true],
{"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=font-variant:small-caps>foo[]bar</span>",
[["stylewithcss","true"],["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<span style=\"font-variant:small-caps\">foo</span><p>abc</p>{}<span style=\"font-variant:small-caps\">bar</span>",
[true,true,true],
{"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=font-variant:small-caps>foo[]bar</span>",
[["stylewithcss","false"],["defaultparagraphseparator","div"],["inserthtml","<p>abc"]],
"<span style=\"font-variant:small-caps\">foo</span><p>abc</p>{}<span style=\"font-variant:small-caps\">bar</span>",
[true,true,true],
{"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=font-variant:small-caps>foo[]bar</span>",
[["stylewithcss","true"],["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<span style=\"font-variant:small-caps\">foo</span><p>abc</p>{}<span style=\"font-variant:small-caps\">bar</span>",
[true,true,true],
{"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<span style=font-variant:small-caps>foo[]bar</span>",
[["stylewithcss","false"],["defaultparagraphseparator","p"],["inserthtml","<p>abc"]],
"<span style=\"font-variant:small-caps\">foo</span><p>abc</p>{}<span style=\"font-variant:small-caps\">bar</span>",
[true,true,true],
{"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"inserthtml":[false,false,"",false,false,""]}],
["<p>[foo]</p>",
[["inserthtml"," "]],
"<p> {}<br></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p>[foo]</p>",
[["stylewithcss","true"],["inserthtml","<span style=display:none></span>"]],
"<p><span style=\"display:none\"></span>{}<br></p>",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"inserthtml":[false,false,"",false,false,""]}],
["<p>[foo]</p>",
[["stylewithcss","false"],["inserthtml","<span style=display:none></span>"]],
"<p><span style=\"display:none\"></span>{}<br></p>",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"inserthtml":[false,false,"",false,false,""]}],
["<p>[foo]</p>",
[["inserthtml","<!--abc-->"]],
"<p><!--abc-->{}<br></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p>{}<br></p>",
[["inserthtml","abc"]],
"<p>abc{}</p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p>{}<br></p>",
[["inserthtml","<!--abc-->"]],
"<p><!--abc-->{}<br></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><!--foo-->{}<span><br></span><!--bar--></p>",
[["inserthtml","abc"]],
"<p><!--foo-->abc{}<!--bar--></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><!--foo-->{}<span><br></span><!--bar--></p>",
[["inserthtml","<!--abc-->"]],
"<p><!--foo--><!--abc-->{}<!--bar--><br></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p>{}<span><!--foo--><br><!--bar--></span></p>",
[["inserthtml","abc"]],
"<p>abc{}</p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p>{}<span><!--foo--><br><!--bar--></span></p>",
[["inserthtml","<!--abc-->"]],
"<p><!--abc-->{}<br></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><br>{}</p>",
[["inserthtml","abc"]],
"<p><br>abc{}</p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><br>{}</p>",
[["inserthtml","<!--abc-->"]],
"<p><br><!--abc-->{}</p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><!--foo--><span><br></span>{}<!--bar--></p>",
[["inserthtml","abc"]],
"<p><!--foo--><span><br></span>abc{}<!--bar--></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><!--foo--><span><br></span>{}<!--bar--></p>",
[["inserthtml","<!--abc-->"]],
"<p><!--foo--><span><br></span><!--abc-->{}<!--bar--></p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><span><!--foo--><br><!--bar--></span>{}</p>",
[["inserthtml","abc"]],
"<p><span><!--foo--><br><!--bar--></span>abc{}</p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}],
["<p><span><!--foo--><br><!--bar--></span>{}</p>",
[["inserthtml","<!--abc-->"]],
"<p><span><!--foo--><br><!--bar--></span><!--abc-->{}</p>",
[true],
{"inserthtml":[false,false,"",false,false,""]}]
]
|