Add preliminary conformance tests
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Fri, 02 Sep 2011 16:05:32 -0600
changeset 559 71b92c9eaaa8
parent 558 c990babdb668
child 560 460ece410c7e
Add preliminary conformance tests

This begins to fix http://www.w3.org/Bugs/Public/show_bug.cgi?id=13956.
They're still a fair way from being ready for real use. Documentation
is in the spec.
conformancetest/data.js
conformancetest/gentest.html
conformancetest/runtest.html
editing.html
source.html
tests.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/conformancetest/data.js	Fri Sep 02 16:05:32 2011 -0600
@@ -0,0 +1,16494 @@
+var browserTests = [
+["foo[]bar",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar</span><i><span style=\"background-color:rgb(0, 255, 255)\">baz]</span>qoz</i>quz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar</span><i><span style=\"background-color:rgb(0, 255, 255)\">baz]</span>qoz</i>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"background-color:rgb(0, 255, 255)\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"background-color:rgb(0, 255, 255)\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<table><tbody><tr>{<td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<table><tbody><tr>{<td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<table><tbody>{<tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<table><tbody>{<tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<table>{<tbody><tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<table>{<tbody><tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"{<table><tbody><tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"{<table><tbody><tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr></tbody></table>}",
+	[]],
+["<p style=\"background-color: rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<p style=\"background-color: rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<p style=\"background-color: #00ffff\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<p style=\"background-color: #00ffff\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<p style=\"background-color: aqua\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<p style=\"background-color: aqua\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["{<p style=\"background-color: aqua\">foo</p><p>bar</p>}",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"{<p style=\"background-color:rgb(0, 255, 255)\">foo</p><p><span style=\"background-color:rgb(0, 255, 255)\">bar</span></p>}",
+	[]],
+["{<p style=\"background-color: aqua\">foo</p><p>bar</p>}",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"{<p style=\"background-color:rgb(0, 255, 255)\">foo</p><p><span style=\"background-color:rgb(0, 255, 255)\">bar</span></p>}",
+	[]],
+["<span style=\"background-color: aqua\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: aqua\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: #00ffff\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: #00ffff\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: #0ff\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: #0ff\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: rgb(0, 255, 255)\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: rgb(0, 255, 255)\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: aqua\">foo<span style=\"background-color: tan\">b[ar]</span>baz</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo<span style=\"background-color:rgb(210, 180, 140)\">b</span>[ar]baz</span>",
+	[]],
+["<span style=\"background-color: aqua\">foo<span style=\"background-color: tan\">b[ar]</span>baz</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo<span style=\"background-color:rgb(210, 180, 140)\">b</span>[ar]baz</span>",
+	[]],
+["<p style=\"background-color: aqua\">foo<span style=\"background-color: tan\">b[ar]</span>baz</p>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo<span style=\"background-color:rgb(210, 180, 140)\">b</span>[ar]baz</p>",
+	[]],
+["<p style=\"background-color: aqua\">foo<span style=\"background-color: tan\">b[ar]</span>baz</p>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo<span style=\"background-color:rgb(210, 180, 140)\">b</span>[ar]baz</p>",
+	[]],
+["<div style=\"background-color: aqua\"><p style=\"background-color: tan\">b[ar]</p></div>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<div style=\"background-color:rgb(0, 255, 255)\"><p style=\"background-color:rgb(210, 180, 140)\">b<span style=\"background-color:rgb(0, 255, 255)\">[ar]</span></p></div>",
+	[]],
+["<div style=\"background-color: aqua\"><p style=\"background-color: tan\">b[ar]</p></div>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<div style=\"background-color:rgb(0, 255, 255)\"><p style=\"background-color:rgb(210, 180, 140)\">b<span style=\"background-color:rgb(0, 255, 255)\">[ar]</span></p></div>",
+	[]],
+["<span style=\"display: block; background-color: aqua\"><span style=\"display: block; background-color: tan\">b[ar]</span></span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"display:block; background-color:rgb(0, 255, 255)\"><span style=\"display:block; background-color:rgb(210, 180, 140)\">b<span style=\"background-color:rgb(0, 255, 255)\">[ar]</span></span></span>",
+	[]],
+["<span style=\"display: block; background-color: aqua\"><span style=\"display: block; background-color: tan\">b[ar]</span></span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"display:block; background-color:rgb(0, 255, 255)\"><span style=\"display:block; background-color:rgb(210, 180, 140)\">b<span style=\"background-color:rgb(0, 255, 255)\">[ar]</span></span></span>",
+	[]],
+["fo[o<span style=background-color:tan>b]ar</span>baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span><span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>baz",
+	[]],
+["fo[o<span style=background-color:tan>b]ar</span>baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span><span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>baz",
+	[]],
+["foo<span style=background-color:tan>ba[r</span>b]az",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(210, 180, 140)\">ba<span style=\"background-color:rgb(0, 255, 255)\">[r</span></span><span style=\"background-color:rgb(0, 255, 255)\">b]</span>az",
+	[]],
+["foo<span style=background-color:tan>ba[r</span>b]az",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(210, 180, 140)\">ba<span style=\"background-color:rgb(0, 255, 255)\">[r</span></span><span style=\"background-color:rgb(0, 255, 255)\">b]</span>az",
+	[]],
+["fo[o<span style=background-color:tan>bar</span>b]az",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"fo<span style=\"background-color:rgb(0, 255, 255)\">[obarb]</span>az",
+	[]],
+["fo[o<span style=background-color:tan>bar</span>b]az",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"fo<span style=\"background-color:rgb(0, 255, 255)\">[obarb]</span>az",
+	[]],
+["foo[<span style=background-color:tan>b]ar</span>baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo[<span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>baz",
+	[]],
+["foo[<span style=background-color:tan>b]ar</span>baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo[<span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>baz",
+	[]],
+["foo<span style=background-color:tan>ba[r</span>]baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(210, 180, 140)\">ba<span style=\"background-color:rgb(0, 255, 255)\">[r</span></span>]baz",
+	[]],
+["foo<span style=background-color:tan>ba[r</span>]baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(210, 180, 140)\">ba<span style=\"background-color:rgb(0, 255, 255)\">[r</span></span>]baz",
+	[]],
+["foo[<span style=background-color:tan>bar</span>]baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo[<span style=\"background-color:rgb(0, 255, 255)\">bar</span>]baz",
+	[]],
+["foo[<span style=background-color:tan>bar</span>]baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo[<span style=\"background-color:rgb(0, 255, 255)\">bar</span>]baz",
+	[]],
+["foo<span style=background-color:tan>[bar]</span>baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo<span style=background-color:tan>[bar]</span>baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo{<span style=background-color:tan>bar</span>}baz",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"foo{<span style=\"background-color:rgb(0, 255, 255)\">bar}</span>baz",
+	[]],
+["foo{<span style=background-color:tan>bar</span>}baz",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"foo{<span style=\"background-color:rgb(0, 255, 255)\">bar}</span>baz",
+	[]],
+["<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b]ar</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span></span><span style=\"background-color:rgb(255, 255, 0)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>",
+	[]],
+["<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b]ar</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span></span><span style=\"background-color:rgb(255, 255, 0)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>",
+	[]],
+["<span style=background-color:tan>fo[o</span><span style=background-color:tan>b]ar</span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span></span><span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>",
+	[]],
+["<span style=background-color:tan>fo[o</span><span style=background-color:tan>b]ar</span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span></span><span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>",
+	[]],
+["<span style=background-color:tan>fo[o<span style=background-color:transparent>b]ar</span></span>",
+	[["stylewithcss","false"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span><span style=\"background-color:rgba(0, 0, 0, 0)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span></span>",
+	[]],
+["<span style=background-color:tan>fo[o<span style=background-color:transparent>b]ar</span></span>",
+	[["stylewithcss","true"],["backcolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span><span style=\"background-color:rgba(0, 0, 0, 0)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span></span>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[]bar",
+	[]],
+["<b>foo[]bar</b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo[]bar</b>",
+	[]],
+["<b>foo[]bar</b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b>foo[]bar</b>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar]</b>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar]</span>baz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar</b><i><b>baz]</b>qoz</i>quz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar</span><i><span style=\"font-weight:bold\">baz]</span>qoz</i>quz",
+	[]],
+["foo<span contenteditable=false>[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<span contenteditable=\"false\">[bar]</span>baz",
+	[]],
+["foo<span contenteditable=false>[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span contenteditable=\"false\">[bar]</span>baz",
+	[]],
+["fo[o<span contenteditable=false>bar</span>b]az",
+	[["stylewithcss","false"],["bold",""]],
+	"fo<b>[o</b><span contenteditable=\"false\">bar</span><b>b]</b>az",
+	[]],
+["fo[o<span contenteditable=false>bar</span>b]az",
+	[["stylewithcss","true"],["bold",""]],
+	"fo<span style=\"font-weight:bold\">[o</span><span contenteditable=\"false\">bar</span><span style=\"font-weight:bold\">b]</span>az",
+	[]],
+["foo<span contenteditable=false>ba[r</span>b]az",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<span contenteditable=\"false\">ba[r</span><b>b]</b>az",
+	[]],
+["foo<span contenteditable=false>ba[r</span>b]az",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span contenteditable=\"false\">ba[r</span><span style=\"font-weight:bold\">b]</span>az",
+	[]],
+["fo[o<span contenteditable=false>b]ar</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"fo<b>[o</b><span contenteditable=\"false\">b]ar</span>baz",
+	[]],
+["fo[o<span contenteditable=false>b]ar</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"fo<span style=\"font-weight:bold\">[o</span><span contenteditable=\"false\">b]ar</span>baz",
+	[]],
+["fo[<b>o</b><span contenteditable=false>bar</span><b>b</b>]az",
+	[["stylewithcss","false"],["bold",""]],
+	"fo[o<span contenteditable=\"false\">bar</span>b]az",
+	[]],
+["fo[<b>o</b><span contenteditable=false>bar</span><b>b</b>]az",
+	[["stylewithcss","true"],["bold",""]],
+	"fo[o<span contenteditable=\"false\">bar</span>b]az",
+	[]],
+["<span contenteditable=false>foo<span contenteditable=true>[bar]</span>baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span contenteditable=\"false\">foo<span contenteditable=\"true\"><b>[bar]</b></span>baz</span>",
+	[]],
+["<span contenteditable=false>foo<span contenteditable=true>[bar]</span>baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span contenteditable=\"false\">foo<span contenteditable=\"true\"><span style=\"font-weight:bold\">[bar]</span></span>baz</span>",
+	[]],
+["<span contenteditable=false>fo[o<span contenteditable=true>bar</span>b]az</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span contenteditable=\"false\">fo[o<span contenteditable=\"true\"><b>bar</b></span>b]az</span>",
+	[]],
+["<span contenteditable=false>fo[o<span contenteditable=true>bar</span>b]az</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span contenteditable=\"false\">fo[o<span contenteditable=\"true\"><span style=\"font-weight:bold\">bar</span></span>b]az</span>",
+	[]],
+["<span contenteditable=false>foo<span contenteditable=true>ba[r</span>b]az</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span contenteditable=\"false\">foo<span contenteditable=\"true\">ba<b>[r</b></span>b]az</span>",
+	[]],
+["<span contenteditable=false>foo<span contenteditable=true>ba[r</span>b]az</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span contenteditable=\"false\">foo<span contenteditable=\"true\">ba<span style=\"font-weight:bold\">[r</span></span>b]az</span>",
+	[]],
+["<span contenteditable=false>fo[o<span contenteditable=true>b]ar</span>baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span contenteditable=\"false\">fo[o<span contenteditable=\"true\"><b>b]</b>ar</span>baz</span>",
+	[]],
+["<span contenteditable=false>fo[o<span contenteditable=true>b]ar</span>baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span contenteditable=\"false\">fo[o<span contenteditable=\"true\"><span style=\"font-weight:bold\">b]</span>ar</span>baz</span>",
+	[]],
+["<span contenteditable=false>fo[<b>o<span contenteditable=true>bar</span>b</b>]az</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span contenteditable=\"false\">fo[<b>o<span contenteditable=\"true\"><span style=\"font-weight:normal\">bar</span></span>b</b>]az</span>",
+	[]],
+["<span contenteditable=false>fo[<b>o<span contenteditable=true>bar</span>b</b>]az</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span contenteditable=\"false\">fo[<b>o<span contenteditable=\"true\"><span style=\"font-weight:normal\">bar</span></span>b</b>]az</span>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["bold",""]],
+	"<table><tbody><tr><td>foo</td><td>b<b>[a]</b>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["bold",""]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"font-weight:bold\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["bold",""]],
+	"<table><tbody><tr><td>foo</td>{<td><b>bar</b></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["bold",""]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"font-weight:bold\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["bold",""]],
+	"<table><tbody><tr>{<td><b>foo</b></td><td><b>bar</b></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["bold",""]],
+	"<table><tbody><tr>{<td><span style=\"font-weight:bold\">foo</span></td><td><span style=\"font-weight:bold\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["bold",""]],
+	"<table><tbody>{<tr><td><b>foo</b></td><td><b>bar</b></td><td><b>baz</b></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["bold",""]],
+	"<table><tbody>{<tr><td><span style=\"font-weight:bold\">foo</span></td><td><span style=\"font-weight:bold\">bar</span></td><td><span style=\"font-weight:bold\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["bold",""]],
+	"<table>{<tbody><tr><td><b>foo</b></td><td><b>bar</b></td><td><b>baz</b></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["bold",""]],
+	"<table>{<tbody><tr><td><span style=\"font-weight:bold\">foo</span></td><td><span style=\"font-weight:bold\">bar</span></td><td><span style=\"font-weight:bold\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["bold",""]],
+	"{<table><tbody><tr><td><b>foo</b></td><td><b>bar</b></td><td><b>baz</b></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["bold",""]],
+	"{<table><tbody><tr><td><span style=\"font-weight:bold\">foo</span></td><td><span style=\"font-weight:bold\">bar</span></td><td><span style=\"font-weight:bold\">baz</span></td></tr></tbody></table>}",
+	[]],
+["foo<span style=\"font-weight: bold\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: bold\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>bar</b>[baz]",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>bar[baz]</b>",
+	[]],
+["foo<b>bar</b>[baz]",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<b>bar[baz]</b>",
+	[]],
+["[foo]<b>bar</b>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>[foo]bar</b>baz",
+	[]],
+["[foo]<b>bar</b>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"<b>[foo]bar</b>baz",
+	[]],
+["<b>foo</b>[bar]<b>baz</b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo[bar]baz</b>",
+	[]],
+["<b>foo</b>[bar]<b>baz</b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b>foo[bar]baz</b>",
+	[]],
+["foo<strong>bar</strong>[baz]",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<strong>bar[baz]</strong>",
+	[]],
+["foo<strong>bar</strong>[baz]",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<strong>bar[baz]</strong>",
+	[]],
+["[foo]<strong>bar</strong>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"<strong>[foo]bar</strong>baz",
+	[]],
+["[foo]<strong>bar</strong>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"<strong>[foo]bar</strong>baz",
+	[]],
+["<strong>foo</strong>[bar]<strong>baz</strong>",
+	[["stylewithcss","false"],["bold",""]],
+	"<strong>foo[bar]baz</strong>",
+	[]],
+["<strong>foo</strong>[bar]<strong>baz</strong>",
+	[["stylewithcss","true"],["bold",""]],
+	"<strong>foo[bar]baz</strong>",
+	[]],
+["<b>foo</b>[bar]<strong>baz</strong>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo[bar]baz</b>",
+	[]],
+["<b>foo</b>[bar]<strong>baz</strong>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b>foo[bar]baz</b>",
+	[]],
+["<strong>foo</strong>[bar]<b>baz</b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<strong>foo[bar]baz</strong>",
+	[]],
+["<strong>foo</strong>[bar]<b>baz</b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<strong>foo[bar]baz</strong>",
+	[]],
+["foo[<b>bar</b>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<b>bar</b>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<b>bar]</b>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<b>bar]</b>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>[bar</b>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>[bar</b>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo{<b></b>}baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo{<b></b>}baz",
+	[]],
+["foo{<b></b>}baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo{<b></b>}baz",
+	[]],
+["foo{<i></i>}baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo{<i></i>}baz",
+	[]],
+["foo{<i></i>}baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo{<i></i>}baz",
+	[]],
+["foo{<b><i></i></b>}baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo{<b><i></i></b>}baz",
+	[]],
+["foo{<b><i></i></b>}baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo{<b><i></i></b>}baz",
+	[]],
+["foo{<i><b></b></i>}baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo{<i><b></b></i>}baz",
+	[]],
+["foo{<i><b></b></i>}baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo{<i><b></b></i>}baz",
+	[]],
+["foo<strong>[bar]</strong>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<strong>[bar]</strong>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<strong>bar</strong>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<strong>bar</strong>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<strong>bar]</strong>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<strong>bar]</strong>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<strong>[bar</strong>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<strong>[bar</strong>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: bold\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: bold\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: bold\">bar</span>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: bold\">bar</span>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: bold\">bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: bold\">bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: bold\">[bar</span>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: bold\">[bar</span>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["<b>{<p>foo</p><p>bar</p>}<p>baz</p></b>",
+	[["stylewithcss","false"],["bold",""]],
+	"{<p>foo</p><p>bar</p>}<p><b>baz</b></p>",
+	[]],
+["<b>{<p>foo</p><p>bar</p>}<p>baz</p></b>",
+	[["stylewithcss","true"],["bold",""]],
+	"{<p>foo</p><p>bar</p>}<p><span style=\"font-weight:bold\">baz</span></p>",
+	[]],
+["<b><p>foo[<i>bar</i>}</p><p>baz</p></b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<p><b>foo[</b><i>bar</i>}</p><p><b>baz</b></p>",
+	[]],
+["<b><p>foo[<i>bar</i>}</p><p>baz</p></b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<p><span style=\"font-weight:bold\">foo[</span><i>bar</i>}</p><p><span style=\"font-weight:bold\">baz</span></p>",
+	[]],
+["foo [bar <b>baz] qoz</b> quz sic",
+	[["stylewithcss","false"],["bold",""]],
+	"foo <b>[bar baz] qoz</b> quz sic",
+	[]],
+["foo [bar <b>baz] qoz</b> quz sic",
+	[["stylewithcss","true"],["bold",""]],
+	"foo <b>[bar baz] qoz</b> quz sic",
+	[]],
+["foo bar <b>baz [qoz</b> quz] sic",
+	[["stylewithcss","false"],["bold",""]],
+	"foo bar <b>baz [qoz quz]</b> sic",
+	[]],
+["foo bar <b>baz [qoz</b> quz] sic",
+	[["stylewithcss","true"],["bold",""]],
+	"foo bar <b>baz [qoz quz]</b> sic",
+	[]],
+["<b id=purple>bar [baz] qoz</b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span id=\"purple\"><b>bar </b>[baz]<b> qoz</b></span>",
+	[]],
+["<b id=purple>bar [baz] qoz</b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span id=\"purple\"><span style=\"font-weight:bold\">bar </span>[baz]<span style=\"font-weight:bold\"> qoz</span></span>",
+	[]],
+["foo<span style=\"font-weight: 100\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar]</b>baz",
+	[]],
+["foo<span style=\"font-weight: 100\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar]</span>baz",
+	[]],
+["foo<span style=\"font-weight: 200\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar]</b>baz",
+	[]],
+["foo<span style=\"font-weight: 200\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar]</span>baz",
+	[]],
+["foo<span style=\"font-weight: 300\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar]</b>baz",
+	[]],
+["foo<span style=\"font-weight: 300\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar]</span>baz",
+	[]],
+["foo<span style=\"font-weight: 400\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar]</b>baz",
+	[]],
+["foo<span style=\"font-weight: 400\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar]</span>baz",
+	[]],
+["foo<span style=\"font-weight: 500\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar]</b>baz",
+	[]],
+["foo<span style=\"font-weight: 500\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar]</span>baz",
+	[]],
+["foo<span style=\"font-weight: 600\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 600\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 700\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 700\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 800\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 800\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 900\">[bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 900\">[bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 400\">[bar</span>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>[bar</b>]baz",
+	[]],
+["foo<span style=\"font-weight: 400\">[bar</span>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">[bar</span>]baz",
+	[]],
+["foo<span style=\"font-weight: 700\">[bar</span>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-weight: 700\">[bar</span>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: 400\">bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[<b>bar]</b>baz",
+	[]],
+["foo[<span style=\"font-weight: 400\">bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[<span style=\"font-weight:bold\">bar]</span>baz",
+	[]],
+["foo[<span style=\"font-weight: 700\">bar]</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: 700\">bar]</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: 400\">bar</span>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[<b>bar</b>]baz",
+	[]],
+["foo[<span style=\"font-weight: 400\">bar</span>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[<span style=\"font-weight:bold\">bar</span>]baz",
+	[]],
+["foo[<span style=\"font-weight: 700\">bar</span>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<span style=\"font-weight: 700\">bar</span>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["<span style=\"font-weight: 100\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:100\">foo<b>[bar]</b>baz</span>",
+	[]],
+["<span style=\"font-weight: 100\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:100\">foo<span style=\"font-weight:bold\">[bar]</span>baz</span>",
+	[]],
+["<span style=\"font-weight: 400\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:400\">foo<b>[bar]</b>baz</span>",
+	[]],
+["<span style=\"font-weight: 400\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:400\">foo<span style=\"font-weight:bold\">[bar]</span>baz</span>",
+	[]],
+["<span style=\"font-weight: 700\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo</b>[bar]<b>baz</b>",
+	[]],
+["<span style=\"font-weight: 700\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:700\">foo</span>[bar]<span style=\"font-weight:700\">baz</span>",
+	[]],
+["<span style=\"font-weight: 900\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:900\">foo</span>[bar]<span style=\"font-weight:900\">baz</span>",
+	[]],
+["<span style=\"font-weight: 900\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:900\">foo</span>[bar]<span style=\"font-weight:900\">baz</span>",
+	[]],
+["{<span style=\"font-weight: 100\">foobar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"{<span style=\"font-weight:100\"><b>foobar]</b>baz</span>",
+	[]],
+["{<span style=\"font-weight: 100\">foobar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"{<span style=\"font-weight:100\"><span style=\"font-weight:bold\">foobar]</span>baz</span>",
+	[]],
+["{<span style=\"font-weight: 400\">foobar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"{<span style=\"font-weight:400\"><b>foobar]</b>baz</span>",
+	[]],
+["{<span style=\"font-weight: 400\">foobar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"{<span style=\"font-weight:400\"><span style=\"font-weight:bold\">foobar]</span>baz</span>",
+	[]],
+["{<span style=\"font-weight: 700\">foobar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"{foobar]<b>baz</b>",
+	[]],
+["{<span style=\"font-weight: 700\">foobar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"{foobar]<span style=\"font-weight:700\">baz</span>",
+	[]],
+["{<span style=\"font-weight: 900\">foobar]baz</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"{foobar]<span style=\"font-weight:900\">baz</span>",
+	[]],
+["{<span style=\"font-weight: 900\">foobar]baz</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"{foobar]<span style=\"font-weight:900\">baz</span>",
+	[]],
+["<span style=\"font-weight: 100\">foo[barbaz</span>}",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:100\">foo<b>[barbaz</b></span>}",
+	[]],
+["<span style=\"font-weight: 100\">foo[barbaz</span>}",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:100\">foo<span style=\"font-weight:bold\">[barbaz</span></span>}",
+	[]],
+["<span style=\"font-weight: 400\">foo[barbaz</span>}",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:400\">foo<b>[barbaz</b></span>}",
+	[]],
+["<span style=\"font-weight: 400\">foo[barbaz</span>}",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:400\">foo<span style=\"font-weight:bold\">[barbaz</span></span>}",
+	[]],
+["<span style=\"font-weight: 700\">foo[barbaz</span>}",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo</b>[barbaz}",
+	[]],
+["<span style=\"font-weight: 700\">foo[barbaz</span>}",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:700\">foo</span>[barbaz}",
+	[]],
+["<span style=\"font-weight: 900\">foo[barbaz</span>}",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:900\">foo</span>[barbaz}",
+	[]],
+["<span style=\"font-weight: 900\">foo[barbaz</span>}",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:900\">foo</span>[barbaz}",
+	[]],
+["<h3>foo[bar]baz</h3>",
+	[["stylewithcss","false"],["bold",""]],
+	"<h3>foo<span style=\"font-weight:normal\">[bar]</span>baz</h3>",
+	[]],
+["<h3>foo[bar]baz</h3>",
+	[["stylewithcss","true"],["bold",""]],
+	"<h3>foo<span style=\"font-weight:normal\">[bar]</span>baz</h3>",
+	[]],
+["{<h3>foobar]baz</h3>",
+	[["stylewithcss","false"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foobar]</span>baz</h3>",
+	[]],
+["{<h3>foobar]baz</h3>",
+	[["stylewithcss","true"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foobar]</span>baz</h3>",
+	[]],
+["<h3>foo[barbaz</h3>}",
+	[["stylewithcss","false"],["bold",""]],
+	"<h3>foo<span style=\"font-weight:normal\">[barbaz</span></h3>}",
+	[]],
+["<h3>foo[barbaz</h3>}",
+	[["stylewithcss","true"],["bold",""]],
+	"<h3>foo<span style=\"font-weight:normal\">[barbaz</span></h3>}",
+	[]],
+["<h3>[foobarbaz]</h3>",
+	[["stylewithcss","false"],["bold",""]],
+	"<h3><span style=\"font-weight:normal\">[foobarbaz]</span></h3>",
+	[]],
+["<h3>[foobarbaz]</h3>",
+	[["stylewithcss","true"],["bold",""]],
+	"<h3><span style=\"font-weight:normal\">[foobarbaz]</span></h3>",
+	[]],
+["{<h3>foobarbaz]</h3>",
+	[["stylewithcss","false"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foobarbaz]</span></h3>",
+	[]],
+["{<h3>foobarbaz]</h3>",
+	[["stylewithcss","true"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foobarbaz]</span></h3>",
+	[]],
+["<h3>[foobarbaz</h3>}",
+	[["stylewithcss","false"],["bold",""]],
+	"<h3><span style=\"font-weight:normal\">[foobarbaz</span></h3>}",
+	[]],
+["<h3>[foobarbaz</h3>}",
+	[["stylewithcss","true"],["bold",""]],
+	"<h3><span style=\"font-weight:normal\">[foobarbaz</span></h3>}",
+	[]],
+["{<h3>foobarbaz</h3>}",
+	[["stylewithcss","false"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foobarbaz</span></h3>}",
+	[]],
+["{<h3>foobarbaz</h3>}",
+	[["stylewithcss","true"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foobarbaz</span></h3>}",
+	[]],
+["<b>foo<span style=\"font-weight: normal\">bar<b>[baz]</b>quz</span>qoz</b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo<span style=\"font-weight:normal\">bar[baz]quz</span>qoz</b>",
+	[]],
+["<b>foo<span style=\"font-weight: normal\">bar<b>[baz]</b>quz</span>qoz</b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b>foo<span style=\"font-weight:normal\">bar[baz]quz</span>qoz</b>",
+	[]],
+["<b>foo<span style=\"font-weight: normal\">[bar]</span>baz</b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo[bar]baz</b>",
+	[]],
+["<b>foo<span style=\"font-weight: normal\">[bar]</span>baz</b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b>foo[bar]baz</b>",
+	[]],
+["{<b>foo</b> <b>bar</b>}",
+	[["stylewithcss","false"],["bold",""]],
+	"{<b>foo bar}</b>",
+	[]],
+["{<b>foo</b> <b>bar</b>}",
+	[["stylewithcss","true"],["bold",""]],
+	"{<span style=\"font-weight:bold\">foo bar}</span>",
+	[]],
+["{<h3>foo</h3><b>bar</b>}",
+	[["stylewithcss","false"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foo</span></h3>bar}",
+	[]],
+["{<h3>foo</h3><b>bar</b>}",
+	[["stylewithcss","true"],["bold",""]],
+	"{<h3><span style=\"font-weight:normal\">foo</span></h3>bar}",
+	[]],
+["<i><b>foo</b></i>[bar]<i><b>baz</b></i>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b><i>foo</i>[bar]<i>baz</i></b>",
+	[]],
+["<i><b>foo</b></i>[bar]<i><b>baz</b></i>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b><i>foo</i>[bar]<i>baz</i></b>",
+	[]],
+["<i><b>foo</b></i>[bar]<b>baz</b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b><i>foo</i>[bar]baz</b>",
+	[]],
+["<i><b>foo</b></i>[bar]<b>baz</b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b><i>foo</i>[bar]baz</b>",
+	[]],
+["<b>foo</b>[bar]<i><b>baz</b></i>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>foo[bar]<i>baz</i></b>",
+	[]],
+["<b>foo</b>[bar]<i><b>baz</b></i>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b>foo[bar]<i>baz</i></b>",
+	[]],
+["<font color=blue face=monospace><b>foo</b></font>[bar]",
+	[["stylewithcss","false"],["bold",""]],
+	"<b><font color=\"blue\" face=\"monospace\">foo</font>[bar]</b>",
+	[]],
+["<font color=blue face=monospace><b>foo</b></font>[bar]",
+	[["stylewithcss","true"],["bold",""]],
+	"<b><font color=\"blue\" face=\"monospace\">foo</font>[bar]</b>",
+	[]],
+["foo<span style=\"font-weight: normal\"><b>{bar}</b></span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo{bar}baz",
+	[]],
+["foo<span style=\"font-weight: normal\"><b>{bar}</b></span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo{bar}baz",
+	[]],
+["[foo<span class=notbold>bar</span>baz]",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>[foo<span class=\"notbold\"><b>bar</b></span>baz]</b>",
+	[]],
+["[foo<span class=notbold>bar</span>baz]",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:bold\">[foo<span class=\"notbold\"><span style=\"font-weight:bold\">bar</span></span>baz]</span>",
+	[]],
+["<b><span class=notbold>[foo]</span></b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span class=\"notbold\"><b>[foo]</b></span>",
+	[]],
+["<b><span class=notbold>[foo]</span></b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span class=\"notbold\"><span style=\"font-weight:bold\">[foo]</span></span>",
+	[]],
+["<b><span class=notbold>foo[bar]baz</span></b>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b><span class=\"notbold\">foo<b>[bar]</b>baz</span></b>",
+	[]],
+["<b><span class=notbold>foo[bar]baz</span></b>",
+	[["stylewithcss","true"],["bold",""]],
+	"<b><span class=\"notbold\">foo<span style=\"font-weight:bold\">[bar]</span>baz</span></b>",
+	[]],
+["<p style=\"font-weight: bold\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["bold",""]],
+	"<p><b>foo</b>[bar]<b>baz</b></p>",
+	[]],
+["<p style=\"font-weight: bold\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["bold",""]],
+	"<p><span style=\"font-weight:bold\">foo</span>[bar]<span style=\"font-weight:bold\">baz</span></p>",
+	[]],
+["fo[o<b>b]ar</b>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"fo<b>[ob]ar</b>baz",
+	[]],
+["fo[o<b>b]ar</b>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"fo<b>[ob]ar</b>baz",
+	[]],
+["foo<b>ba[r</b>b]az",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>ba[rb]</b>az",
+	[]],
+["foo<b>ba[r</b>b]az",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<b>ba[rb]</b>az",
+	[]],
+["fo[o<b>bar</b>b]az",
+	[["stylewithcss","false"],["bold",""]],
+	"fo<b>[obarb]</b>az",
+	[]],
+["fo[o<b>bar</b>b]az",
+	[["stylewithcss","true"],["bold",""]],
+	"fo<span style=\"font-weight:bold\">[obarb]</span>az",
+	[]],
+["foo[<b>b]ar</b>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[b]<b>ar</b>baz",
+	[]],
+["foo[<b>b]ar</b>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[b]<span style=\"font-weight:bold\">ar</span>baz",
+	[]],
+["foo<b>ba[r</b>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo<b>ba</b>[r]baz",
+	[]],
+["foo<b>ba[r</b>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo<span style=\"font-weight:bold\">ba</span>[r]baz",
+	[]],
+["foo[<b>bar</b>]baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<b>bar</b>]baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo[bar]baz",
+	[]],
+["foo{<b>bar</b>}baz",
+	[["stylewithcss","false"],["bold",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<b>bar</b>}baz",
+	[["stylewithcss","true"],["bold",""]],
+	"foo{bar}baz",
+	[]],
+["fo[o<span style=font-weight:bold>b]ar</span>baz",
+	[["stylewithcss","false"],["bold",""]],
+	"fo<span style=\"font-weight:bold\">[ob]ar</span>baz",
+	[]],
+["fo[o<span style=font-weight:bold>b]ar</span>baz",
+	[["stylewithcss","true"],["bold",""]],
+	"fo<span style=\"font-weight:bold\">[ob]ar</span>baz",
+	[]],
+["<span style=font-weight:800>fo[o</span><span style=font-weight:900>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:800\">fo</span>[ob]<span style=\"font-weight:900\">ar</span>",
+	[]],
+["<span style=font-weight:800>fo[o</span><span style=font-weight:900>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:800\">fo</span>[ob]<span style=\"font-weight:900\">ar</span>",
+	[]],
+["<span style=font-weight:700>fo[o</span><span style=font-weight:800>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<b>fo</b>[ob]<span style=\"font-weight:800\">ar</span>",
+	[]],
+["<span style=font-weight:700>fo[o</span><span style=font-weight:800>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:700\">fo</span>[ob]<span style=\"font-weight:800\">ar</span>",
+	[]],
+["<span style=font-weight:600>fo[o</span><span style=font-weight:700>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:600\">fo</span>[ob]<b>ar</b>",
+	[]],
+["<span style=font-weight:600>fo[o</span><span style=font-weight:700>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:600\">fo</span>[ob]<span style=\"font-weight:700\">ar</span>",
+	[]],
+["<span style=font-weight:500>fo[o</span><span style=font-weight:600>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:500\">fo<b>[o</b></span><span style=\"font-weight:600\"><b>b]</b>ar</span>",
+	[]],
+["<span style=font-weight:500>fo[o</span><span style=font-weight:600>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:500\">fo<span style=\"font-weight:bold\">[o</span></span><span style=\"font-weight:600\"><span style=\"font-weight:bold\">b]</span>ar</span>",
+	[]],
+["<span style=font-weight:400>fo[o</span><span style=font-weight:500>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:400\">fo<b>[o</b></span><span style=\"font-weight:500\"><b>b]</b>ar</span>",
+	[]],
+["<span style=font-weight:400>fo[o</span><span style=font-weight:500>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:400\">fo<span style=\"font-weight:bold\">[o</span></span><span style=\"font-weight:500\"><span style=\"font-weight:bold\">b]</span>ar</span>",
+	[]],
+["<span style=font-weight:300>fo[o</span><span style=font-weight:400>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:300\">fo<b>[o</b></span><span style=\"font-weight:400\"><b>b]</b>ar</span>",
+	[]],
+["<span style=font-weight:300>fo[o</span><span style=font-weight:400>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:300\">fo<span style=\"font-weight:bold\">[o</span></span><span style=\"font-weight:400\"><span style=\"font-weight:bold\">b]</span>ar</span>",
+	[]],
+["<span style=font-weight:200>fo[o</span><span style=font-weight:300>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:200\">fo<b>[o</b></span><span style=\"font-weight:300\"><b>b]</b>ar</span>",
+	[]],
+["<span style=font-weight:200>fo[o</span><span style=font-weight:300>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:200\">fo<span style=\"font-weight:bold\">[o</span></span><span style=\"font-weight:300\"><span style=\"font-weight:bold\">b]</span>ar</span>",
+	[]],
+["<span style=font-weight:100>fo[o</span><span style=font-weight:200>b]ar</span>",
+	[["stylewithcss","false"],["bold",""]],
+	"<span style=\"font-weight:100\">fo<b>[o</b></span><span style=\"font-weight:200\"><b>b]</b>ar</span>",
+	[]],
+["<span style=font-weight:100>fo[o</span><span style=font-weight:200>b]ar</span>",
+	[["stylewithcss","true"],["bold",""]],
+	"<span style=\"font-weight:100\">fo<span style=\"font-weight:bold\">[o</span></span><span style=\"font-weight:200\"><span style=\"font-weight:bold\">b]</span>ar</span>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo<a href=\"http://www.google.com/\">[bar]</a>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo<a href=\"http://www.google.com/\">[bar]</a>baz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<table><tbody><tr><td>foo</td><td>b<a href=\"http://www.google.com/\">[a]</a>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<table><tbody><tr><td>foo</td>{<td><a href=\"http://www.google.com/\">bar</a></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<table><tbody><tr>{<td><a href=\"http://www.google.com/\">foo</a></td><td><a href=\"http://www.google.com/\">bar</a></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<table><tbody>{<tr><td><a href=\"http://www.google.com/\">foo</a></td><td><a href=\"http://www.google.com/\">bar</a></td><td><a href=\"http://www.google.com/\">baz</a></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<table>{<tbody><tr><td><a href=\"http://www.google.com/\">foo</a></td><td><a href=\"http://www.google.com/\">bar</a></td><td><a href=\"http://www.google.com/\">baz</a></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"{<table><tbody><tr><td><a href=\"http://www.google.com/\">foo</a></td><td><a href=\"http://www.google.com/\">bar</a></td><td><a href=\"http://www.google.com/\">baz</a></td></tr></tbody></table>}",
+	[]],
+["<a href=http://www.google.com/>foo[bar]baz</a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">foo[bar]baz</a>",
+	[]],
+["<a href=http://www.google.com/>foo[barbaz</a>}",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">foo[barbaz</a>}",
+	[]],
+["{<a href=http://www.google.com/>foobar]baz</a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"{<a href=\"http://www.google.com/\">foobar]baz</a>",
+	[]],
+["{<a href=http://www.google.com/>foobarbaz</a>}",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"{<a href=\"http://www.google.com/\">foobarbaz}</a>",
+	[]],
+["<a href=http://www.google.com/>[foobarbaz]</a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">[foobarbaz]</a>",
+	[]],
+["foo<a href=http://www.google.com/>[bar]</a>baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo<a href=\"http://www.google.com/\">[bar]</a>baz",
+	[]],
+["[foo]<a href=http://www.google.com/>bar</a>baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">[foo]bar</a>baz",
+	[]],
+["foo<a href=http://www.google.com/>bar</a>[baz]",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo<a href=\"http://www.google.com/\">bar[baz]</a>",
+	[]],
+["foo[<a href=http://www.google.com/>bar</a>]baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo[<a href=\"http://www.google.com/\">bar</a>]baz",
+	[]],
+["foo<a href=http://www.google.com/>[bar</a>baz]",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo<a href=\"http://www.google.com/\">[barbaz]</a>",
+	[]],
+["[foo<a href=http://www.google.com/>bar]</a>baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">[foobar]</a>baz",
+	[]],
+["[foo<a href=http://www.google.com/>bar</a>baz]",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">[foobarbaz]</a>",
+	[]],
+["<a href=otherurl>foo[bar]baz</a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">foo[bar]baz</a>",
+	[]],
+["<a href=otherurl>foo[barbaz</a>}",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">foo[barbaz</a>}",
+	[]],
+["{<a href=otherurl>foobar]baz</a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"{<a href=\"http://www.google.com/\">foobar]baz</a>",
+	[]],
+["{<a href=otherurl>foobarbaz</a>}",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"{<a href=\"http://www.google.com/\">foobarbaz}</a>",
+	[]],
+["<a href=otherurl>[foobarbaz]</a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">[foobarbaz]</a>",
+	[]],
+["foo<a href=otherurl>[bar]</a>baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo<a href=\"http://www.google.com/\">[bar]</a>baz",
+	[]],
+["foo[<a href=otherurl>bar</a>]baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo[<a href=\"http://www.google.com/\">bar</a>]baz",
+	[]],
+["foo<a href=otherurl>[bar</a>baz]",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"foo<a href=\"http://www.google.com/\">[barbaz]</a>",
+	[]],
+["[foo<a href=otherurl>bar]</a>baz",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">[foobar]</a>baz",
+	[]],
+["[foo<a href=otherurl>bar</a>baz]",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\">[foobarbaz]</a>",
+	[]],
+["<a href=otherurl><b>foo[bar]baz</b></a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\"><b>foo[bar]baz</b></a>",
+	[]],
+["<a href=otherurl><b>foo[barbaz</b></a>}",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\"><b>foo[barbaz</b></a>}",
+	[]],
+["{<a href=otherurl><b>foobar]baz</b></a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"{<a href=\"http://www.google.com/\"><b>foobar]baz</b></a>",
+	[]],
+["<a href=otherurl><b>[foobarbaz]</b></a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<a href=\"http://www.google.com/\"><b>[foobarbaz]</b></a>",
+	[]],
+["<a name=abc>foo[bar]baz</a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<span name=\"abc\">foo<a href=\"http://www.google.com/\">[bar]</a>baz</span>",
+	[]],
+["<a name=abc><b>foo[bar]baz</b></a>",
+	[["stylewithcss","false"],["createlink","http://www.google.com/"]],
+	"<span name=\"abc\"><b>foo<a href=\"http://www.google.com/\">[bar]</a>baz</b></span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["createlink",""]],
+	"foo[bar]baz",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["delete",""]],
+	"<span>fo[]</span><span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["delete",""]],
+	"<span>foo[]</span><span>bar</span>",
+	[]],
+["foo<span style=display:none>bar</span>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]baz",
+	[]],
+["foo<script>bar</script>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]baz",
+	[]],
+["fo&ouml;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]bar",
+	[]],
+["foo&#x308;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]bar",
+	[]],
+["foo&#x308;&#x327;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foö[]bar",
+	[]],
+["&ouml;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"{}bar",
+	[]],
+["o&#x308;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"o[]bar",
+	[]],
+["o&#x308;&#x327;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"ö[]bar",
+	[]],
+["&#x5e9;&#x5c1;&#x5b8;[]&#x5dc;&#x5d5;&#x5b9;&#x5dd;",
+	[["stylewithcss","false"],["delete",""]],
+	"שׁ[]לוֹם",
+	[]],
+["&#x5e9;&#x5c1;&#x5b8;&#x5dc;&#x5d5;&#x5b9;[]&#x5dd;",
+	[["stylewithcss","false"],["delete",""]],
+	"שָׁלו[]ם",
+	[]],
+["<p>foo</p><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo</p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["foo<p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<p>foo<br></p><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo<br></p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["foo<br><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<p>foo<br><br></p><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo<br>{}bar</p>",
+	[]],
+["<p>foo<br><br></p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo<br>{}bar</p>",
+	[]],
+["foo<br><br><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<br><p>{}bar</p>",
+	[]],
+["<div><p>foo</p></div><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["<p>foo</p><div><p>[]bar</p></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<div><p>foo</p></div><div><p>[]bar</p></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["<div><p>foo</p></div>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["foo<div><p>[]bar</p></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<div>foo</div><div>[]bar</div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div>foo{}bar</div>",
+	[]],
+["<pre>foo</pre>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<pre>foo{}bar</pre>",
+	[]],
+["foo<br>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo<br><b>[]bar</b>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}<b>bar</b>",
+	[]],
+["foo<hr>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<p>foo<hr><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><p>{}bar</p>",
+	[]],
+["<p>foo</p><br><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><p>{}bar</p>",
+	[]],
+["<p>foo</p><br><br><p>[]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><br><p>{}bar</p>",
+	[]],
+["<p>foo</p><img src=/img/lion.svg><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><img src=\"/img/lion.svg\">{}bar",
+	[]],
+["foo<img src=/img/lion.svg>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<a>foo</a>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]bar",
+	[]],
+["<a href=/>foo</a>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]bar",
+	[]],
+["<a name=abc>foo</a>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]bar",
+	[]],
+["<a href=/ name=abc>foo</a>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]bar",
+	[]],
+["<span><a>foo</a></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<span>foo</span>[]bar",
+	[]],
+["<span><a href=/>foo</a></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<span>foo</span>[]bar",
+	[]],
+["<span><a name=abc>foo</a></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<span>foo</span>[]bar",
+	[]],
+["<span><a href=/ name=abc>foo</a></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<span>foo</span>[]bar",
+	[]],
+["foo<a>[]bar</a>",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]<a>bar</a>",
+	[]],
+["foo<a href=/>[]bar</a>",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]<a href=\"/\">bar</a>",
+	[]],
+["foo<a name=abc>[]bar</a>",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]<a name=\"abc\">bar</a>",
+	[]],
+["foo<a href=/ name=abc>[]bar</a>",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]<a href=\"/\" name=\"abc\">bar</a>",
+	[]],
+["foo &nbsp;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo []bar",
+	[]],
+["foo&nbsp; []bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo []bar",
+	[]],
+["foo&nbsp;&nbsp;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo []bar",
+	[]],
+["foo  []bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]bar",
+	[]],
+["<b>foo </b>&nbsp;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<b>foo </b>{}bar",
+	[]],
+["<b>foo&nbsp;</b> []bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<b>foo </b>{}bar",
+	[]],
+["<b>foo&nbsp;</b>&nbsp;[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<b>foo </b>{}bar",
+	[]],
+["<b>foo </b> []bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<b>foo[]</b>bar",
+	[]],
+["foo<table><tr><td>[]bar</table>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<table><tbody><tr><td>[]bar</td></tr></tbody></table>baz",
+	[]],
+["foo<table><tr><td>bar</table>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{<table><tbody><tr><td>bar</td></tr></tbody></table>}baz",
+	[]],
+["<p>foo<table><tr><td>[]bar</table><p>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><table><tbody><tr><td>[]bar</td></tr></tbody></table><p>baz</p>",
+	[]],
+["<p>foo<table><tr><td>bar</table><p>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p>{<table><tbody><tr><td>bar</td></tr></tbody></table>}<p>baz</p>",
+	[]],
+["<table><tr><td>foo<td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo</td><td>{}bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>foo<tr><td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo</td></tr><tr><td>{}bar</td></tr></tbody></table>",
+	[]],
+["foo<br><table><tr><td>[]bar</table>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<table><tbody><tr><td>[]bar</td></tr></tbody></table>baz",
+	[]],
+["foo<table><tr><td>bar<br></table>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{<table><tbody><tr><td>bar<br></td></tr></tbody></table>}baz",
+	[]],
+["<p>foo<br><table><tr><td>[]bar</table><p>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo<br></p><table><tbody><tr><td>[]bar</td></tr></tbody></table><p>baz</p>",
+	[]],
+["<p>foo<table><tr><td>bar<br></table><p>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p>{<table><tbody><tr><td>bar<br></td></tr></tbody></table>}<p>baz</p>",
+	[]],
+["<table><tr><td>foo<br><td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo</td><td>{}bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>foo<br><tr><td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo</td></tr><tr><td>{}bar</td></tr></tbody></table>",
+	[]],
+["foo<br><br><table><tr><td>[]bar</table>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<br><br><table><tbody><tr><td>[]bar</td></tr></tbody></table>baz",
+	[]],
+["foo<table><tr><td>bar<br><br></table>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{<table><tbody><tr><td>bar<br><br></td></tr></tbody></table>}baz",
+	[]],
+["<p>foo<br><br><table><tr><td>[]bar</table><p>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo<br><br></p><table><tbody><tr><td>[]bar</td></tr></tbody></table><p>baz</p>",
+	[]],
+["<p>foo<table><tr><td>bar<br><br></table><p>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p>{<table><tbody><tr><td>bar<br><br></td></tr></tbody></table>}<p>baz</p>",
+	[]],
+["<table><tr><td>foo<br><br><td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo<br><br></td><td>{}bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>foo<br><br><tr><td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo<br><br></td></tr><tr><td>{}bar</td></tr></tbody></table>",
+	[]],
+["foo<hr><table><tr><td>[]bar</table>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<hr><table><tbody><tr><td>[]bar</td></tr></tbody></table>baz",
+	[]],
+["foo<table><tr><td>bar<hr></table>[]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{<table><tbody><tr><td>bar<hr></td></tr></tbody></table>}baz",
+	[]],
+["<table><tr><td>foo<hr><td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo<hr></td><td>{}bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>foo<hr><tr><td>[]bar</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo<hr></td></tr><tr><td>{}bar</td></tr></tbody></table>",
+	[]],
+["foo<ol><li>[]bar<li>baz</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p>[]bar</p><ol><li>baz</li></ol>",
+	[]],
+["foo<br><ol><li>[]bar<li>baz</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p>[]bar</p><ol><li>baz</li></ol>",
+	[]],
+["foo<br><br><ol><li>[]bar<li>baz</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<br><br><p>[]bar</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<li>[]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>[]bar</li></ol>",
+	[]],
+["<ol><li>foo<br><li>[]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>[]bar</li></ol>",
+	[]],
+["<ol><li>foo<br><br><li>[]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br><br>[]bar</li></ol>",
+	[]],
+["<ol><li>foo<li>[]bar<br>baz</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>[]bar<br>baz</li></ol>",
+	[]],
+["<ol><li>foo<br>bar<li>[]baz</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>bar<br>[]baz</li></ol>",
+	[]],
+["<ol><li><p>foo</p>{}bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li><p>foo{}bar</p></li></ol>",
+	[]],
+["<ol><li><p>foo<li>[]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li><p>foo</p>[]bar</li></ol>",
+	[]],
+["<ol><li>foo<li><p>[]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<p>[]bar</p></li></ol>",
+	[]],
+["<ol><li><p>foo<li><p>[]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li><p>foo</p><p>[]bar</p></li></ol>",
+	[]],
+["<ol><li>foo<ul><li>[]bar</ul></ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo</li><li>[]bar</li></ol>",
+	[]],
+["foo<ol><ol><li>[]bar</ol></ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<ol><li>[]bar</li></ol>",
+	[]],
+["foo<div><ol><li>[]bar</ol></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<div><p>[]bar</p></div>",
+	[]],
+["foo<dl><dt>[]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p>[]bar</p><dl><dd>baz</dd></dl>",
+	[]],
+["foo<dl><dd>[]bar</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p>[]bar</p>",
+	[]],
+["<dl><dt>foo<dd>[]bar</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"<dl><dt>foo<br>[]bar</dt></dl>",
+	[]],
+["<dl><dt>foo<dt>[]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"<dl><dt>foo<br>[]bar</dt><dd>baz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar<dd>[]baz</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"<dl><dt>foo</dt><dd>bar<br>[]baz</dd></dl>",
+	[]],
+["<ol><li>foo</ol>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo<br></ol>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo<br><br></ol>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>{}bar</li></ol>",
+	[]],
+["<ol><li><br></ol>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo<li><br></ol>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo</li><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo</ol><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo<br></ol><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo<br><br></ol><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>{}bar</li></ol>",
+	[]],
+["<ol><li><br></ol><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo<li><br></ol><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo</li><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo</ol>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>foo<br></ol>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>foo<br><br></ol>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>{}<br></li></ol>",
+	[]],
+["<ol><li><br></ol>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo<li><br></ol>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo</li><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo</ol><p>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>foo<br></ol><p>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>foo<br><br></ol><p>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo<br>{}<br></li></ol>",
+	[]],
+["<ol><li><br></ol><p>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo<li><br></ol><p>{}<br>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo</li><li>{}<br></li></ol>",
+	[]],
+["foo<blockquote>[]bar</blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<br>[]bar",
+	[]],
+["foo<blockquote><blockquote>[]bar</blockquote></blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<blockquote>[]bar</blockquote>",
+	[]],
+["foo<blockquote><div>[]bar</div></blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<div>[]bar</div>",
+	[]],
+["foo<blockquote style=\"color: blue\">[]bar</blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<div style=\"color:rgb(0, 0, 255)\">[]bar</div>",
+	[]],
+["foo<blockquote><blockquote><p>[]bar<p>baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<blockquote><p>[]bar</p><blockquote><p>baz</p></blockquote></blockquote>",
+	[]],
+["foo<blockquote><div><p>[]bar<p>baz</div></blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<div><p>[]bar</p><blockquote><p>baz</p></blockquote></div>",
+	[]],
+["foo<blockquote style=\"color: blue\"><p>[]bar<p>baz</blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<div style=\"color:rgb(0, 0, 255)\"><p>[]bar</p><blockquote><p>baz</p></blockquote></div>",
+	[]],
+["foo<blockquote><p><b>[]bar</b><p>baz</blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p><b>[]bar</b></p><blockquote><p>baz</p></blockquote>",
+	[]],
+["foo<blockquote><p><strong>[]bar</strong><p>baz</blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p><strong>[]bar</strong></p><blockquote><p>baz</p></blockquote>",
+	[]],
+["foo<blockquote><p><span>[]bar</span><p>baz</blockquote>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p><span>[]bar</span></p><blockquote><p>baz</p></blockquote>",
+	[]],
+["foo<blockquote><ol><li>[]bar</ol></blockquote><p>extra",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<blockquote><p>[]bar</p></blockquote><p>extra</p>",
+	[]],
+["foo<blockquote>bar<ol><li>[]baz</ol>quz</blockquote><p>extra",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<blockquote>bar<p>[]baz</p>quz</blockquote><p>extra</p>",
+	[]],
+["foo<blockquote><ol><li>bar</li><ol><li>[]baz</ol><li>quz</ol></blockquote><p>extra",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<blockquote><ol><li>bar</li><li>[]baz</li><li>quz</li></ol></blockquote><p>extra</p>",
+	[]],
+["foo<span></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]bar",
+	[]],
+["foo<span><span></span></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]bar",
+	[]],
+["foo<quasit></quasit>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]bar",
+	[]],
+["foo<br><span></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<span>foo<span></span></span>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<span>fo[]</span>bar",
+	[]],
+["foo<span></span><span>[]bar</span>",
+	[["stylewithcss","false"],["delete",""]],
+	"fo[]<span>bar</span>",
+	[]],
+["foo<div><div><p>[]bar</div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo<div><div><p><!--abc-->[]bar</div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo<div><div><!--abc--><p>[]bar</div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo<div><!--abc--><div><p>[]bar</div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo<!--abc--><div><div><p>[]bar</div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<div><div><p>foo</div></div>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</div></div><!--abc-->[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</div><!--abc--></div>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p><!--abc--></div></div>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo<!--abc--></div></div>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p></div></div><div><div><div>[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo<!--abc--></p></div></div><div><div><div>[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p><!--abc--></div></div><div><div><div>[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p></div><!--abc--></div><div><div><div>[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p></div></div><!--abc--><div><div><div>[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p></div></div><div><!--abc--><div><div>[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p></div></div><div><div><!--abc--><div>[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo</p></div></div><div><div><div><!--abc-->[]bar</div></div></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<p style=color:blue>foo<p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><font color=\"#0000ff\">foo{}</font>bar</p>",
+	[]],
+["<p style=color:blue>foo<p style=color:brown>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p style=\"color:rgb(0, 0, 255)\">foo{}<font color=\"#a52a2a\">bar</font></p>",
+	[]],
+["<p style=color:blue>foo<p style=color:rgba(0,0,255,1)>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p style=\"color:rgb(0, 0, 255)\">foo{}bar</p>",
+	[]],
+["<p style=color:transparent>foo<p style=color:rgba(0,0,0,0)>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p style=\"color:rgba(0, 0, 0, 0)\">foo{}bar</p>",
+	[]],
+["<p>foo<p style=color:brown>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<font color=\"#a52a2a\">bar</font></p>",
+	[]],
+["<p><font color=blue>foo</font><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><font color=\"blue\">foo</font>{}bar</p>",
+	[]],
+["<p><font color=blue>foo</font><p><font color=brown>[]bar</font>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><font color=\"blue\">foo</font>{}<font color=\"brown\">bar</font></p>",
+	[]],
+["<p>foo<p><font color=brown>[]bar</font>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<font color=\"brown\">bar</font></p>",
+	[]],
+["<p><span style=color:blue>foo</font><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><span style=\"color:rgb(0, 0, 255)\">foo</span>{}bar</p>",
+	[]],
+["<p><span style=color:blue>foo</font><p><span style=color:brown>[]bar</font>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><span style=\"color:rgb(0, 0, 255)\">foo</span>{}<span style=\"color:rgb(165, 42, 42)\">bar</span></p>",
+	[]],
+["<p>foo<p><span style=color:brown>[]bar</font>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<span style=\"color:rgb(165, 42, 42)\">bar</span></p>",
+	[]],
+["<p style=background-color:aqua>foo<p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo{}bar</p>",
+	[]],
+["<p style=background-color:aqua>foo<p style=background-color:tan>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo{}bar</p>",
+	[]],
+["<p>foo<p style=background-color:tan>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p><span style=background-color:aqua>foo</font><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>{}bar</p>",
+	[]],
+["<p><span style=background-color:aqua>foo</font><p><span style=background-color:tan>[]bar</font>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>{}<span style=\"background-color:rgb(210, 180, 140)\">bar</span></p>",
+	[]],
+["<p>foo<p><span style=background-color:tan>[]bar</font>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<span style=\"background-color:rgb(210, 180, 140)\">bar</span></p>",
+	[]],
+["<p style=text-decoration:underline>foo<p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><u>foo{}</u>bar</p>",
+	[]],
+["<p style=text-decoration:underline>foo<p style=text-decoration:line-through>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><u>foo{}</u><s>bar</s></p>",
+	[]],
+["<p>foo<p style=text-decoration:line-through>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<s>bar</s></p>",
+	[]],
+["<p><u>foo</u><p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><u>foo</u>{}bar</p>",
+	[]],
+["<p><u>foo</u><p><s>[]bar</s>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><u>foo</u>{}<s>bar</s></p>",
+	[]],
+["<p>foo<p><s>[]bar</s>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<s>bar</s></p>",
+	[]],
+["<p style=color:blue>foo</p>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><font color=\"#0000ff\">foo{}</font>bar</p>",
+	[]],
+["foo<p style=color:brown>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}<font color=\"#a52a2a\">bar</font>",
+	[]],
+["<div style=color:blue><p style=color:green>foo</div>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p><font color=\"#008000\">foo{}</font>bar</p></div>",
+	[]],
+["<div style=color:blue><p style=color:green>foo</div><p style=color:brown>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div style=\"color:rgb(0, 0, 255)\"><p style=\"color:rgb(0, 128, 0)\">foo{}<font color=\"#a52a2a\">bar</font></p></div>",
+	[]],
+["<p style=color:blue>foo<div style=color:brown><p style=color:green>[]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p style=\"color:rgb(0, 0, 255)\">foo{}<font color=\"#008000\">bar</font></p>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]baz",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar]</span>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar}</span>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}baz</p>",
+	[]],
+["<p>foo{<span style=color:#aBcDeF>bar</span>}baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}baz</p>",
+	[]],
+["<p>[foo<span style=color:#aBcDeF>bar]</span>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>{}baz</p>",
+	[]],
+["<p>{foo<span style=color:#aBcDeF>bar}</span>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>{}baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span>baz]",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar</span>baz}",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}baz",
+	[]],
+["foo<b>{bar}</b>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}baz",
+	[]],
+["foo{<b>bar</b>}baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}baz",
+	[]],
+["foo<span>[bar]</span>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}baz",
+	[]],
+["foo<span>{bar}</span>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}baz",
+	[]],
+["foo{<span>bar</span>}baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}baz",
+	[]],
+["<b>foo[bar</b><i>baz]quz</i>",
+	[["stylewithcss","false"],["delete",""]],
+	"<b>foo[]</b><i>quz</i>",
+	[]],
+["<p>foo</p><p>[bar]</p><p>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><p>{}<br></p><p>baz</p>",
+	[]],
+["<p>foo</p><p>{bar}</p><p>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><p>{}<br></p><p>baz</p>",
+	[]],
+["<p>foo</p><p>{bar</p>}<p>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><p>{}<br></p><p>baz</p>",
+	[]],
+["<p>foo</p>{<p>bar}</p><p>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p>{}<br><p>baz</p>",
+	[]],
+["<p>foo</p>{<p>bar</p>}<p>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p>{}<p>baz</p>",
+	[]],
+["<p>foo[bar<p>baz]quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["<p>foo[bar<div>baz]quz</div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["<p>foo[bar<h1>baz]quz</h1>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["<div>foo[bar</div><p>baz]quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<div>foo{}quz</div>",
+	[]],
+["<blockquote>foo[bar</blockquote><pre>baz]quz</pre>",
+	[["stylewithcss","false"],["delete",""]],
+	"<blockquote>foo{}quz</blockquote>",
+	[]],
+["<p><b>foo[bar</b><p>baz]quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p><b>foo</b>{}quz</p>",
+	[]],
+["<div><p>foo[bar</div><p>baz]quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p>foo{}quz</p></div>",
+	[]],
+["<p>foo[bar<blockquote><p>baz]quz<p>qoz</blockquote",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}quz</p><blockquote><p>qoz</p></blockquote>",
+	[]],
+["<p>foo[bar<p style=color:blue>baz]quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<font color=\"#0000ff\">quz</font></p>",
+	[]],
+["<p>foo[bar<p><b>baz]quz</b>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}<b>quz</b></p>",
+	[]],
+["<div><p>foo<p>[bar<p>baz]</div>",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p>foo</p><p>{}<br></p></div>",
+	[]],
+["foo[<br>]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"foo[]bar",
+	[]],
+["<p>foo[</p><p>]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo[</p><p>]bar<br>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar<br>baz</p>",
+	[]],
+["foo[<p>]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo{<p>}bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo[<p>]bar<br>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar<p>baz</p>",
+	[]],
+["foo[<p>]bar</p>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar<br>baz",
+	[]],
+["foo{<p>bar</p>}baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}baz",
+	[]],
+["foo<p>{bar</p>}baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<p>{}baz</p>",
+	[]],
+["foo{<p>bar}</p>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}<br>baz",
+	[]],
+["<p>foo[</p>]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo{</p>}bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo[</p>]bar<br>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>baz",
+	[]],
+["<p>foo[</p>]bar<p>baz</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p><p>baz</p>",
+	[]],
+["foo[<div><p>]bar</div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<div><p>foo[</p></div>]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["foo[<div><p>]bar</p>baz</div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar<div>baz</div>",
+	[]],
+["foo[<div>]bar<p>baz</p></div>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar<div><p>baz</p></div>",
+	[]],
+["<div><p>foo</p>bar[</div>]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<div><p>foo</p>bar{}baz</div>",
+	[]],
+["<div>foo<p>bar[</p></div>]baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<div>foo<p>bar{}baz</p></div>",
+	[]],
+["<p>foo<br>{</p>]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo<br><br>{</p>]bar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo<br>{}bar</p>",
+	[]],
+["foo<br>{<p>]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["foo<br><br>{<p>]bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo<br>{}bar",
+	[]],
+["<p>foo<br>{</p><p>}bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo<br><br>{</p><p>}bar</p>",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo<br>{}bar</p>",
+	[]],
+["<table><tbody><tr><th>foo<th>[bar]<th>baz<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><th>foo</th><th>{}<br></th><th>baz</th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>foo<th>ba[r<th>b]az<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><th>foo</th><th>ba[]</th><th>az</th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>fo[o<th>bar<th>b]az<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><th>fo[]</th><th><br></th><th>az</th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>foo<th>bar<th>ba[z<tr><td>q]uz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><th>foo</th><th>bar</th><th>ba[]</th></tr><tr><td>uz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>[foo<th>bar<th>baz]<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><th>{}<br></th><th><br></th><th><br></th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>[foo<th>bar<th>baz<tr><td>quz<td>qoz<td>qiz]</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><th>{}<br></th><th><br></th><th><br></th></tr><tr><td><br></td><td><br></td><td><br></td></tr></tbody></table>",
+	[]],
+["{<table><tbody><tr><th>foo<th>bar<th>baz<tr><td>quz<td>qoz<td>qiz</table>}",
+	[["stylewithcss","false"],["delete",""]],
+	"{}<br>",
+	[]],
+["<table><tbody><tr><td>foo<td>ba[r<tr><td>baz<td>quz<tr><td>q]oz<td>qiz</table>",
+	[["stylewithcss","false"],["delete",""]],
+	"<table><tbody><tr><td>foo</td><td>ba[]</td></tr><tr><td><br></td><td><br></td></tr><tr><td>oz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<p>fo[o<table><tr><td>b]ar</table><p>baz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>fo[]</p><table><tbody><tr><td>ar</td></tr></tbody></table><p>baz</p>",
+	[]],
+["<p>foo<table><tr><td>ba[r</table><p>b]az",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><table><tbody><tr><td>ba[]</td></tr></tbody></table><p>az</p>",
+	[]],
+["<p>fo[o<table><tr><td>bar</table><p>b]az",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>fo{}az</p>",
+	[]],
+["<p>foo<ol><li>ba[r<li>b]az</ol><p>quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><ol><li>ba{}az</li></ol><p>quz</p>",
+	[]],
+["<p>foo<ol><li>bar<li>[baz]</ol><p>quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><ol><li>bar</li><li>{}<br></li></ol><p>quz</p>",
+	[]],
+["<p>fo[o<ol><li>b]ar<li>baz</ol><p>quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>fo{}ar</p><ol><li>baz</li></ol><p>quz</p>",
+	[]],
+["<p>foo<ol><li>bar<li>ba[z</ol><p>q]uz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>foo</p><ol><li>bar</li><li>ba{}uz</li></ol>",
+	[]],
+["<p>fo[o<ol><li>bar<li>b]az</ol><p>quz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>fo{}az</p><p>quz</p>",
+	[]],
+["<p>fo[o<ol><li>bar<li>baz</ol><p>q]uz",
+	[["stylewithcss","false"],["delete",""]],
+	"<p>fo{}uz</p>",
+	[]],
+["<ol><li>fo[o</ol><ol><li>b]ar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>fo{}ar</li></ol>",
+	[]],
+["<ol><li>fo[o</ol><ul><li>b]ar</ul>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>fo{}ar</li></ol>",
+	[]],
+["foo[<ol><li>]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<ol><li>foo[<li>]bar</ol>",
+	[["stylewithcss","false"],["delete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["foo[<dl><dt>]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar<dl><dd>baz</dd></dl>",
+	[]],
+["foo[<dl><dd>]bar</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"foo{}bar",
+	[]],
+["<dl><dt>foo[<dd>]bar</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"<dl><dt>foo{}bar</dt></dl>",
+	[]],
+["<dl><dt>foo[<dt>]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"<dl><dt>foo{}bar</dt><dd>baz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[<dd>]baz</dl>",
+	[["stylewithcss","false"],["delete",""]],
+	"<dl><dt>foo</dt><dd>bar{}baz</dd></dl>",
+	[]],
+["<b>foo [&nbsp;</b>bar]",
+	[["stylewithcss","false"],["delete",""]],
+	"<b>foo&nbsp;[]</b>",
+	[]],
+["<p style=display:inline>fo[o<p style=display:inline>b]ar",
+	[["stylewithcss","false"],["delete",""]],
+	"<p style=\"display:inline\">fo[]</p><p style=\"display:inline\">ar</p>",
+	[]],
+["<span style=display:block>fo[o</span><span style=display:block>b]ar</span>",
+	[["stylewithcss","false"],["delete",""]],
+	"<span style=\"display:block\">fo{}ar</span>",
+	[]],
+["<span style=display:inline-block>fo[o</span><span style=display:inline-block>b]ar</span>",
+	[["stylewithcss","false"],["delete",""]],
+	"<span style=\"display:inline-block\">fo[]</span><span style=\"display:inline-block\">ar</span>",
+	[]],
+["<span style=display:inline-table>fo[o</span><span style=display:inline-table>b]ar</span>",
+	[["stylewithcss","false"],["delete",""]],
+	"<span style=\"display:inline-table\">fo[]</span><span style=\"display:inline-table\">ar</span>",
+	[]],
+["<span style=display:none>fo[o</span><span style=display:none>b]ar</span>",
+	[["stylewithcss","false"],["delete",""]],
+	"<span style=\"display:none\">fo[]</span><span style=\"display:none\">ar</span>",
+	[]],
+["<quasit style=display:block>fo[o</quasit><quasit style=display:block>b]ar</quasit>",
+	[["stylewithcss","false"],["delete",""]],
+	"<quasit style=\"display:block\">fo{}ar</quasit>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<font face=\"sans-serif\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:sans-serif\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<font face=\"sans-serif\">[bar]</font>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:sans-serif\">[bar]</span>baz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<table><tbody><tr><td>foo</td><td>b<font face=\"sans-serif\">[a]</font>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"font-family:sans-serif\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<table><tbody><tr><td>foo</td>{<td><font face=\"sans-serif\">bar</font></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"font-family:sans-serif\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<table><tbody><tr>{<td><font face=\"sans-serif\">foo</font></td><td><font face=\"sans-serif\">bar</font></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<table><tbody><tr>{<td><span style=\"font-family:sans-serif\">foo</span></td><td><span style=\"font-family:sans-serif\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<table><tbody>{<tr><td><font face=\"sans-serif\">foo</font></td><td><font face=\"sans-serif\">bar</font></td><td><font face=\"sans-serif\">baz</font></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<table><tbody>{<tr><td><span style=\"font-family:sans-serif\">foo</span></td><td><span style=\"font-family:sans-serif\">bar</span></td><td><span style=\"font-family:sans-serif\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<table>{<tbody><tr><td><font face=\"sans-serif\">foo</font></td><td><font face=\"sans-serif\">bar</font></td><td><font face=\"sans-serif\">baz</font></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<table>{<tbody><tr><td><span style=\"font-family:sans-serif\">foo</span></td><td><span style=\"font-family:sans-serif\">bar</span></td><td><span style=\"font-family:sans-serif\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"{<table><tbody><tr><td><font face=\"sans-serif\">foo</font></td><td><font face=\"sans-serif\">bar</font></td><td><font face=\"sans-serif\">baz</font></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"{<table><tbody><tr><td><span style=\"font-family:sans-serif\">foo</span></td><td><span style=\"font-family:sans-serif\">bar</span></td><td><span style=\"font-family:sans-serif\">baz</span></td></tr></tbody></table>}",
+	[]],
+["foo<code>[bar]</code>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<code><font face=\"sans-serif\">[bar]</font></code>baz",
+	[]],
+["foo<code>[bar]</code>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<code><span style=\"font-family:sans-serif\">[bar]</span></code>baz",
+	[]],
+["foo<kbd>[bar]</kbd>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<kbd><font face=\"sans-serif\">[bar]</font></kbd>baz",
+	[]],
+["foo<kbd>[bar]</kbd>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<kbd><span style=\"font-family:sans-serif\">[bar]</span></kbd>baz",
+	[]],
+["foo<listing>[bar]</listing>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<listing><font face=\"sans-serif\">[bar]</font></listing>baz",
+	[]],
+["foo<listing>[bar]</listing>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<listing><span style=\"font-family:sans-serif\">[bar]</span></listing>baz",
+	[]],
+["foo<pre>[bar]</pre>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<pre><font face=\"sans-serif\">[bar]</font></pre>baz",
+	[]],
+["foo<pre>[bar]</pre>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<pre><span style=\"font-family:sans-serif\">[bar]</span></pre>baz",
+	[]],
+["foo<samp>[bar]</samp>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<samp><font face=\"sans-serif\">[bar]</font></samp>baz",
+	[]],
+["foo<samp>[bar]</samp>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<samp><span style=\"font-family:sans-serif\">[bar]</span></samp>baz",
+	[]],
+["foo<tt>[bar]</tt>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<tt><font face=\"sans-serif\">[bar]</font></tt>baz",
+	[]],
+["foo<tt>[bar]</tt>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<tt><span style=\"font-family:sans-serif\">[bar]</span></tt>baz",
+	[]],
+["foo<code>b[a]r</code>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<code>b<font face=\"sans-serif\">[a]</font>r</code>baz",
+	[]],
+["foo<code>b[a]r</code>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<code>b<span style=\"font-family:sans-serif\">[a]</span>r</code>baz",
+	[]],
+["foo<kbd>b[a]r</kbd>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<kbd>b<font face=\"sans-serif\">[a]</font>r</kbd>baz",
+	[]],
+["foo<kbd>b[a]r</kbd>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<kbd>b<span style=\"font-family:sans-serif\">[a]</span>r</kbd>baz",
+	[]],
+["foo<listing>b[a]r</listing>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<listing>b<font face=\"sans-serif\">[a]</font>r</listing>baz",
+	[]],
+["foo<listing>b[a]r</listing>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<listing>b<span style=\"font-family:sans-serif\">[a]</span>r</listing>baz",
+	[]],
+["foo<pre>b[a]r</pre>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<pre>b<font face=\"sans-serif\">[a]</font>r</pre>baz",
+	[]],
+["foo<pre>b[a]r</pre>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<pre>b<span style=\"font-family:sans-serif\">[a]</span>r</pre>baz",
+	[]],
+["foo<samp>b[a]r</samp>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<samp>b<font face=\"sans-serif\">[a]</font>r</samp>baz",
+	[]],
+["foo<samp>b[a]r</samp>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<samp>b<span style=\"font-family:sans-serif\">[a]</span>r</samp>baz",
+	[]],
+["foo<tt>b[a]r</tt>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<tt>b<font face=\"sans-serif\">[a]</font>r</tt>baz",
+	[]],
+["foo<tt>b[a]r</tt>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<tt>b<span style=\"font-family:sans-serif\">[a]</span>r</tt>baz",
+	[]],
+["[foo<code>bar</code>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo<code><font face=\"sans-serif\">bar</font></code>baz]</font>",
+	[]],
+["[foo<code>bar</code>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo<code><span style=\"font-family:sans-serif\">bar</span></code>baz]</span>",
+	[]],
+["[foo<kbd>bar</kbd>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo<kbd><font face=\"sans-serif\">bar</font></kbd>baz]</font>",
+	[]],
+["[foo<kbd>bar</kbd>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo<kbd><span style=\"font-family:sans-serif\">bar</span></kbd>baz]</span>",
+	[]],
+["[foo<listing>bar</listing>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><listing><font face=\"sans-serif\">bar</font></listing><font face=\"sans-serif\">baz]</font>",
+	[]],
+["[foo<listing>bar</listing>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><listing><span style=\"font-family:sans-serif\">bar</span></listing><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["[foo<pre>bar</pre>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><pre><font face=\"sans-serif\">bar</font></pre><font face=\"sans-serif\">baz]</font>",
+	[]],
+["[foo<pre>bar</pre>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><pre><span style=\"font-family:sans-serif\">bar</span></pre><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["[foo<samp>bar</samp>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo<samp><font face=\"sans-serif\">bar</font></samp>baz]</font>",
+	[]],
+["[foo<samp>bar</samp>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo<samp><span style=\"font-family:sans-serif\">bar</span></samp>baz]</span>",
+	[]],
+["[foo<tt>bar</tt>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo<tt><font face=\"sans-serif\">bar</font></tt>baz]</font>",
+	[]],
+["[foo<tt>bar</tt>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo<tt><span style=\"font-family:sans-serif\">bar</span></tt>baz]</span>",
+	[]],
+["[foo<code>ba]r</code>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><code><font face=\"sans-serif\">ba]</font>r</code>baz",
+	[]],
+["[foo<code>ba]r</code>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><code><span style=\"font-family:sans-serif\">ba]</span>r</code>baz",
+	[]],
+["[foo<kbd>ba]r</kbd>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><kbd><font face=\"sans-serif\">ba]</font>r</kbd>baz",
+	[]],
+["[foo<kbd>ba]r</kbd>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><kbd><span style=\"font-family:sans-serif\">ba]</span>r</kbd>baz",
+	[]],
+["[foo<listing>ba]r</listing>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><listing><font face=\"sans-serif\">ba]</font>r</listing>baz",
+	[]],
+["[foo<listing>ba]r</listing>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><listing><span style=\"font-family:sans-serif\">ba]</span>r</listing>baz",
+	[]],
+["[foo<pre>ba]r</pre>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><pre><font face=\"sans-serif\">ba]</font>r</pre>baz",
+	[]],
+["[foo<pre>ba]r</pre>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><pre><span style=\"font-family:sans-serif\">ba]</span>r</pre>baz",
+	[]],
+["[foo<samp>ba]r</samp>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><samp><font face=\"sans-serif\">ba]</font>r</samp>baz",
+	[]],
+["[foo<samp>ba]r</samp>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><samp><span style=\"font-family:sans-serif\">ba]</span>r</samp>baz",
+	[]],
+["[foo<tt>ba]r</tt>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<font face=\"sans-serif\">[foo</font><tt><font face=\"sans-serif\">ba]</font>r</tt>baz",
+	[]],
+["[foo<tt>ba]r</tt>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:sans-serif\">[foo</span><tt><span style=\"font-family:sans-serif\">ba]</span>r</tt>baz",
+	[]],
+["foo<code>b[ar</code>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<code>b<font face=\"sans-serif\">[ar</font></code><font face=\"sans-serif\">baz]</font>",
+	[]],
+["foo<code>b[ar</code>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<code>b<span style=\"font-family:sans-serif\">[ar</span></code><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["foo<kbd>b[ar</kbd>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<kbd>b<font face=\"sans-serif\">[ar</font></kbd><font face=\"sans-serif\">baz]</font>",
+	[]],
+["foo<kbd>b[ar</kbd>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<kbd>b<span style=\"font-family:sans-serif\">[ar</span></kbd><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["foo<listing>b[ar</listing>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<listing>b<font face=\"sans-serif\">[ar</font></listing><font face=\"sans-serif\">baz]</font>",
+	[]],
+["foo<listing>b[ar</listing>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<listing>b<span style=\"font-family:sans-serif\">[ar</span></listing><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["foo<pre>b[ar</pre>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<pre>b<font face=\"sans-serif\">[ar</font></pre><font face=\"sans-serif\">baz]</font>",
+	[]],
+["foo<pre>b[ar</pre>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<pre>b<span style=\"font-family:sans-serif\">[ar</span></pre><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["foo<samp>b[ar</samp>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<samp>b<font face=\"sans-serif\">[ar</font></samp><font face=\"sans-serif\">baz]</font>",
+	[]],
+["foo<samp>b[ar</samp>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<samp>b<span style=\"font-family:sans-serif\">[ar</span></samp><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["foo<tt>b[ar</tt>baz]",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<tt>b<font face=\"sans-serif\">[ar</font></tt><font face=\"sans-serif\">baz]</font>",
+	[]],
+["foo<tt>b[ar</tt>baz]",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<tt>b<span style=\"font-family:sans-serif\">[ar</span></tt><span style=\"font-family:sans-serif\">baz]</span>",
+	[]],
+["foo<span style=\"font-family: sans-serif\">[bar]</span>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<font face=\"sans-serif\">[bar]</font>baz",
+	[]],
+["foo<span style=\"font-family: sans-serif\">[bar]</span>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:sans-serif\">[bar]</span>baz",
+	[]],
+["foo<span style=\"font-family: sans-serif\">b[a]r</span>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:sans-serif\">b[a]r</span>baz",
+	[]],
+["foo<span style=\"font-family: sans-serif\">b[a]r</span>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:sans-serif\">b[a]r</span>baz",
+	[]],
+["foo<span style=\"font-family: monospace\">[bar]</span>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<font face=\"sans-serif\">[bar]</font>baz",
+	[]],
+["foo<span style=\"font-family: monospace\">[bar]</span>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:sans-serif\">[bar]</span>baz",
+	[]],
+["foo<span style=\"font-family: monospace\">b[a]r</span>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:monospace\">b<font face=\"sans-serif\">[a]</font>r</span>baz",
+	[]],
+["foo<span style=\"font-family: monospace\">b[a]r</span>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:monospace\">b<span style=\"font-family:sans-serif\">[a]</span>r</span>baz",
+	[]],
+["foo<tt contenteditable=false>ba[r</tt>b]az",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<tt contenteditable=\"false\">ba[r</tt><font face=\"sans-serif\">b]</font>az",
+	[]],
+["foo<tt contenteditable=false>ba[r</tt>b]az",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<tt contenteditable=\"false\">ba[r</tt><span style=\"font-family:sans-serif\">b]</span>az",
+	[]],
+["fo[o<tt contenteditable=false>b]ar</tt>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><tt contenteditable=\"false\">b]ar</tt>baz",
+	[]],
+["fo[o<tt contenteditable=false>b]ar</tt>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><tt contenteditable=\"false\">b]ar</tt>baz",
+	[]],
+["foo<tt>{}<br></tt>bar",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<tt>{}<br></tt>bar",
+	[]],
+["foo<tt>{}<br></tt>bar",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<tt>{}<br></tt>bar",
+	[]],
+["foo<tt>{<br></tt>}bar",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<tt>{<br></tt>}bar",
+	[]],
+["foo<tt>{<br></tt>}bar",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<tt>{<br></tt>}bar",
+	[]],
+["foo<tt>{<br></tt>b]ar",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<tt>{<font face=\"sans-serif\"><br></font></tt><font face=\"sans-serif\">b]</font>ar",
+	[]],
+["foo<tt>{<br></tt>b]ar",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<tt>{<span style=\"font-family:sans-serif\"><br></span></tt><span style=\"font-family:sans-serif\">b]</span>ar",
+	[]],
+["fo[o<span style=font-family:monospace>b]ar</span>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><span style=\"font-family:monospace\"><font face=\"sans-serif\">b]</font>ar</span>baz",
+	[]],
+["fo[o<span style=font-family:monospace>b]ar</span>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><span style=\"font-family:monospace\"><span style=\"font-family:sans-serif\">b]</span>ar</span>baz",
+	[]],
+["foo<span style=font-family:monospace>ba[r</span>b]az",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:monospace\">ba<font face=\"sans-serif\">[r</font></span><font face=\"sans-serif\">b]</font>az",
+	[]],
+["foo<span style=font-family:monospace>ba[r</span>b]az",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:monospace\">ba<span style=\"font-family:sans-serif\">[r</span></span><span style=\"font-family:sans-serif\">b]</span>az",
+	[]],
+["fo[o<span style=font-family:monospace>bar</span>b]az",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[obarb]</font>az",
+	[]],
+["fo[o<span style=font-family:monospace>bar</span>b]az",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[obarb]</span>az",
+	[]],
+["foo[<span style=font-family:monospace>b]ar</span>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo[<span style=\"font-family:monospace\"><font face=\"sans-serif\">b]</font>ar</span>baz",
+	[]],
+["foo[<span style=font-family:monospace>b]ar</span>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo[<span style=\"font-family:monospace\"><span style=\"font-family:sans-serif\">b]</span>ar</span>baz",
+	[]],
+["foo<span style=font-family:monospace>ba[r</span>]baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:monospace\">ba<font face=\"sans-serif\">[r</font></span>]baz",
+	[]],
+["foo<span style=font-family:monospace>ba[r</span>]baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:monospace\">ba<span style=\"font-family:sans-serif\">[r</span></span>]baz",
+	[]],
+["foo[<span style=font-family:monospace>bar</span>]baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo[<font face=\"sans-serif\">bar</font>]baz",
+	[]],
+["foo[<span style=font-family:monospace>bar</span>]baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo[<span style=\"font-family:sans-serif\">bar</span>]baz",
+	[]],
+["foo<span style=font-family:monospace>[bar]</span>baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo<font face=\"sans-serif\">[bar]</font>baz",
+	[]],
+["foo<span style=font-family:monospace>[bar]</span>baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo<span style=\"font-family:sans-serif\">[bar]</span>baz",
+	[]],
+["foo{<span style=font-family:monospace>bar</span>}baz",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"foo{<font face=\"sans-serif\">bar}</font>baz",
+	[]],
+["foo{<span style=font-family:monospace>bar</span>}baz",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"foo{<span style=\"font-family:sans-serif\">bar}</span>baz",
+	[]],
+["fo[o<code>b]ar</code>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><code><font face=\"sans-serif\">b]</font>ar</code>",
+	[]],
+["fo[o<code>b]ar</code>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><code><span style=\"font-family:sans-serif\">b]</span>ar</code>",
+	[]],
+["fo[o<kbd>b]ar</kbd>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><kbd><font face=\"sans-serif\">b]</font>ar</kbd>",
+	[]],
+["fo[o<kbd>b]ar</kbd>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><kbd><span style=\"font-family:sans-serif\">b]</span>ar</kbd>",
+	[]],
+["fo[o<listing>b]ar</listing>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><listing><font face=\"sans-serif\">b]</font>ar</listing>",
+	[]],
+["fo[o<listing>b]ar</listing>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><listing><span style=\"font-family:sans-serif\">b]</span>ar</listing>",
+	[]],
+["fo[o<pre>b]ar</pre>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><pre><font face=\"sans-serif\">b]</font>ar</pre>",
+	[]],
+["fo[o<pre>b]ar</pre>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><pre><span style=\"font-family:sans-serif\">b]</span>ar</pre>",
+	[]],
+["fo[o<samp>b]ar</samp>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><samp><font face=\"sans-serif\">b]</font>ar</samp>",
+	[]],
+["fo[o<samp>b]ar</samp>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><samp><span style=\"font-family:sans-serif\">b]</span>ar</samp>",
+	[]],
+["fo[o<tt>b]ar</tt>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"fo<font face=\"sans-serif\">[o</font><tt><font face=\"sans-serif\">b]</font>ar</tt>",
+	[]],
+["fo[o<tt>b]ar</tt>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"fo<span style=\"font-family:sans-serif\">[o</span><tt><span style=\"font-family:sans-serif\">b]</span>ar</tt>",
+	[]],
+["<tt>fo[o</tt><code>b]ar</code>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<tt>fo<font face=\"sans-serif\">[o</font></tt><code><font face=\"sans-serif\">b]</font>ar</code>",
+	[]],
+["<tt>fo[o</tt><code>b]ar</code>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<tt>fo<span style=\"font-family:sans-serif\">[o</span></tt><code><span style=\"font-family:sans-serif\">b]</span>ar</code>",
+	[]],
+["<pre>fo[o</pre><samp>b]ar</samp>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<pre>fo<font face=\"sans-serif\">[o</font></pre><samp><font face=\"sans-serif\">b]</font>ar</samp>",
+	[]],
+["<pre>fo[o</pre><samp>b]ar</samp>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<pre>fo<span style=\"font-family:sans-serif\">[o</span></pre><samp><span style=\"font-family:sans-serif\">b]</span>ar</samp>",
+	[]],
+["<span style=font-family:monospace>fo[o</span><kbd>b]ar</kbd>",
+	[["stylewithcss","false"],["fontname","sans-serif"]],
+	"<span style=\"font-family:monospace\">fo<font face=\"sans-serif\">[o</font></span><kbd><font face=\"sans-serif\">b]</font>ar</kbd>",
+	[]],
+["<span style=font-family:monospace>fo[o</span><kbd>b]ar</kbd>",
+	[["stylewithcss","true"],["fontname","sans-serif"]],
+	"<span style=\"font-family:monospace\">fo<span style=\"font-family:sans-serif\">[o</span></span><kbd><span style=\"font-family:sans-serif\">b]</span>ar</kbd>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","1"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","1"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","0"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","0"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","-5"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","-5"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","6"]],
+	"foo<font size=\"6\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","6"]],
+	"foo<span style=\"font-size:xx-large\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","7"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","7"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","8"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","8"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","100"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","100"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","2em"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","2em"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","20pt"]],
+	"foo<span style=\"font-size:20pt\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","20pt"]],
+	"foo<span style=\"font-size:20pt\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","xx-large"]],
+	"foo<font size=\"6\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","xx-large"]],
+	"foo<span style=\"font-size:xx-large\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize"," 1 "]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize"," 1 "]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","1."]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","1."]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","1.0"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","1.0"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","1.0e2"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","1.0e2"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","1.1"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","1.1"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","1.9"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","1.9"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","+0"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","+0"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","+1"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","+1"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","+9"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","+9"]],
+	"foo<font size=\"7\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","-0"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","-0"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","-1"]],
+	"foo<font size=\"2\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","-1"]],
+	"foo<span style=\"font-size:small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize","-9"]],
+	"foo<font size=\"1\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize","-9"]],
+	"foo<span style=\"font-size:xx-small\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["fontsize",""]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["fontsize",""]],
+	"foo[bar]baz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar</font><i><font size=\"4\">baz]</font>qoz</i>quz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar</span><i><span style=\"font-size:large\">baz]</span>qoz</i>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<table><tbody><tr><td>foo</td><td>b<font size=\"4\">[a]</font>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"font-size:large\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<table><tbody><tr><td>foo</td>{<td><font size=\"4\">bar</font></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"font-size:large\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<table><tbody><tr>{<td><font size=\"4\">foo</font></td><td><font size=\"4\">bar</font></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<table><tbody><tr>{<td><span style=\"font-size:large\">foo</span></td><td><span style=\"font-size:large\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<table><tbody>{<tr><td><font size=\"4\">foo</font></td><td><font size=\"4\">bar</font></td><td><font size=\"4\">baz</font></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<table><tbody>{<tr><td><span style=\"font-size:large\">foo</span></td><td><span style=\"font-size:large\">bar</span></td><td><span style=\"font-size:large\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<table>{<tbody><tr><td><font size=\"4\">foo</font></td><td><font size=\"4\">bar</font></td><td><font size=\"4\">baz</font></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<table>{<tbody><tr><td><span style=\"font-size:large\">foo</span></td><td><span style=\"font-size:large\">bar</span></td><td><span style=\"font-size:large\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"{<table><tbody><tr><td><font size=\"4\">foo</font></td><td><font size=\"4\">bar</font></td><td><font size=\"4\">baz</font></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"{<table><tbody><tr><td><span style=\"font-size:large\">foo</span></td><td><span style=\"font-size:large\">bar</span></td><td><span style=\"font-size:large\">baz</span></td></tr></tbody></table>}",
+	[]],
+["foo<font size=1>[bar]</font>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<font size=1>[bar]</font>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<font size=1>foo[bar]baz</font>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"1\">foo<font size=\"4\">[bar]</font>baz</font>",
+	[]],
+["<font size=1>foo[bar]baz</font>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"1\">foo<span style=\"font-size:large\">[bar]</span>baz</font>",
+	[]],
+["foo<font size=3>[bar]</font>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<font size=3>[bar]</font>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<font size=3>foo[bar]baz</font>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"3\">foo<font size=\"4\">[bar]</font>baz</font>",
+	[]],
+["<font size=3>foo[bar]baz</font>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"3\">foo<span style=\"font-size:large\">[bar]</span>baz</font>",
+	[]],
+["foo<font size=4>[bar]</font>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<font size=4>[bar]</font>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<font size=4>foo[bar]baz</font>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"4\">foo[bar]baz</font>",
+	[]],
+["<font size=4>foo[bar]baz</font>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"4\">foo[bar]baz</font>",
+	[]],
+["foo<font size=+1>[bar]</font>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<font size=+1>[bar]</font>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<font size=+1>foo[bar]baz</font>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"+1\">foo[bar]baz</font>",
+	[]],
+["<font size=+1>foo[bar]baz</font>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"+1\">foo[bar]baz</font>",
+	[]],
+["<font size=4>foo<font size=1>b[a]r</font>baz</font>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"4\">foo<font size=\"1\">b</font>[a]<font size=\"1\">r</font>baz</font>",
+	[]],
+["<font size=4>foo<font size=1>b[a]r</font>baz</font>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"4\">foo<span style=\"font-size:xx-small\">b</span>[a]<span style=\"font-size:xx-small\">r</span>baz</font>",
+	[]],
+["foo<span style=\"font-size: xx-small\">[bar]</span>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<span style=\"font-size: xx-small\">[bar]</span>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<span style=\"font-size: xx-small\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<span style=\"font-size:xx-small\">foo<font size=\"4\">[bar]</font>baz</span>",
+	[]],
+["<span style=\"font-size: xx-small\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<span style=\"font-size:xx-small\">foo<span style=\"font-size:large\">[bar]</span>baz</span>",
+	[]],
+["foo<span style=\"font-size: medium\">[bar]</span>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<span style=\"font-size: medium\">[bar]</span>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<span style=\"font-size: medium\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<span style=\"font-size:medium\">foo<font size=\"4\">[bar]</font>baz</span>",
+	[]],
+["<span style=\"font-size: medium\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<span style=\"font-size:medium\">foo<span style=\"font-size:large\">[bar]</span>baz</span>",
+	[]],
+["foo<span style=\"font-size: large\">[bar]</span>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<span style=\"font-size: large\">[bar]</span>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<span style=\"font-size: large\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<span style=\"font-size:large\">foo[bar]baz</span>",
+	[]],
+["<span style=\"font-size: large\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<span style=\"font-size:large\">foo[bar]baz</span>",
+	[]],
+["<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<span style=\"font-size:large\">foo<font size=\"1\">b</font>[a]<font size=\"1\">r</font>baz</span>",
+	[]],
+["<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<span style=\"font-size:large\">foo<span style=\"font-size:xx-small\">b</span>[a]<span style=\"font-size:xx-small\">r</span>baz</span>",
+	[]],
+["foo<span style=\"font-size: 2em\">[bar]</span>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<span style=\"font-size: 2em\">[bar]</span>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["<span style=\"font-size: 2em\">foo[bar]baz</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<span style=\"font-size:2em\">foo<font size=\"4\">[bar]</font>baz</span>",
+	[]],
+["<span style=\"font-size: 2em\">foo[bar]baz</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<span style=\"font-size:2em\">foo<span style=\"font-size:large\">[bar]</span>baz</span>",
+	[]],
+["<p style=\"font-size: xx-small\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<p style=\"font-size:xx-small\">foo<font size=\"4\">[bar]</font>baz</p>",
+	[]],
+["<p style=\"font-size: xx-small\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<p style=\"font-size:xx-small\">foo<span style=\"font-size:large\">[bar]</span>baz</p>",
+	[]],
+["<p style=\"font-size: medium\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<p style=\"font-size:medium\">foo<font size=\"4\">[bar]</font>baz</p>",
+	[]],
+["<p style=\"font-size: medium\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<p style=\"font-size:medium\">foo<span style=\"font-size:large\">[bar]</span>baz</p>",
+	[]],
+["<p style=\"font-size: large\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<p style=\"font-size:large\">foo[bar]baz</p>",
+	[]],
+["<p style=\"font-size: large\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<p style=\"font-size:large\">foo[bar]baz</p>",
+	[]],
+["<p style=\"font-size: 2em\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<p style=\"font-size:2em\">foo<font size=\"4\">[bar]</font>baz</p>",
+	[]],
+["<p style=\"font-size: 2em\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<p style=\"font-size:2em\">foo<span style=\"font-size:large\">[bar]</span>baz</p>",
+	[]],
+["<p style=\"font-size: xx-small\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"<p><font size=\"1\">foo</font>[bar]<font size=\"1\">baz</font></p>",
+	[]],
+["<p style=\"font-size: xx-small\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"<p><span style=\"font-size:xx-small\">foo</span>[bar]<span style=\"font-size:xx-small\">baz</span></p>",
+	[]],
+["<p style=\"font-size: medium\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"<p style=\"font-size:medium\">foo[bar]baz</p>",
+	[]],
+["<p style=\"font-size: medium\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"<p style=\"font-size:medium\">foo[bar]baz</p>",
+	[]],
+["<p style=\"font-size: large\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"<p><font size=\"4\">foo</font>[bar]<font size=\"4\">baz</font></p>",
+	[]],
+["<p style=\"font-size: large\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"<p><span style=\"font-size:large\">foo</span>[bar]<span style=\"font-size:large\">baz</span></p>",
+	[]],
+["<p style=\"font-size: 2em\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"<p><span style=\"font-size:2em\">foo</span>[bar]<span style=\"font-size:2em\">baz</span></p>",
+	[]],
+["<p style=\"font-size: 2em\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"<p><span style=\"font-size:2em\">foo</span>[bar]<span style=\"font-size:2em\">baz</span></p>",
+	[]],
+["<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"<font size=\"6\">foo </font><span style=\"font-size:2em\">b</span>[a]<span style=\"font-size:2em\">r</span><font size=\"6\"> baz</font>",
+	[]],
+["<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"<span style=\"font-size:xx-large\">foo </span><span style=\"font-size:2em\">b</span>[a]<span style=\"font-size:2em\">r</span><span style=\"font-size:xx-large\"> baz</span>",
+	[]],
+["foo<big>[bar]</big>baz",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"foo<big><font size=\"3\">[bar]</font></big>baz",
+	[]],
+["foo<big>[bar]</big>baz",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"foo<big><span style=\"font-size:medium\">[bar]</span></big>baz",
+	[]],
+["foo<big>b[a]r</big>baz",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"foo<big>b<font size=\"3\">[a]</font>r</big>baz",
+	[]],
+["foo<big>b[a]r</big>baz",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"foo<big>b<span style=\"font-size:medium\">[a]</span>r</big>baz",
+	[]],
+["foo<small>[bar]</small>baz",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"foo<small><font size=\"3\">[bar]</font></small>baz",
+	[]],
+["foo<small>[bar]</small>baz",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"foo<small><span style=\"font-size:medium\">[bar]</span></small>baz",
+	[]],
+["foo<small>b[a]r</small>baz",
+	[["stylewithcss","false"],["fontsize","3"]],
+	"foo<small>b<font size=\"3\">[a]</font>r</small>baz",
+	[]],
+["foo<small>b[a]r</small>baz",
+	[["stylewithcss","true"],["fontsize","3"]],
+	"foo<small>b<span style=\"font-size:medium\">[a]</span>r</small>baz",
+	[]],
+["fo[o<font size=2>b]ar</font>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"fo<font size=\"4\">[o</font><font size=\"2\"><font size=\"4\">b]</font>ar</font>baz",
+	[]],
+["fo[o<font size=2>b]ar</font>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"fo<span style=\"font-size:large\">[o</span><font size=\"2\"><span style=\"font-size:large\">b]</span>ar</font>baz",
+	[]],
+["foo<font size=2>ba[r</font>b]az",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"2\">ba<font size=\"4\">[r</font></font><font size=\"4\">b]</font>az",
+	[]],
+["foo<font size=2>ba[r</font>b]az",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<font size=\"2\">ba<span style=\"font-size:large\">[r</span></font><span style=\"font-size:large\">b]</span>az",
+	[]],
+["fo[o<font size=2>bar</font>b]az",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"fo<font size=\"4\">[obarb]</font>az",
+	[]],
+["fo[o<font size=2>bar</font>b]az",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"fo<span style=\"font-size:large\">[obarb]</span>az",
+	[]],
+["foo[<font size=2>b]ar</font>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo[<font size=\"2\"><font size=\"4\">b]</font>ar</font>baz",
+	[]],
+["foo[<font size=2>b]ar</font>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo[<font size=\"2\"><span style=\"font-size:large\">b]</span>ar</font>baz",
+	[]],
+["foo<font size=2>ba[r</font>]baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"2\">ba<font size=\"4\">[r</font></font>]baz",
+	[]],
+["foo<font size=2>ba[r</font>]baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<font size=\"2\">ba<span style=\"font-size:large\">[r</span></font>]baz",
+	[]],
+["foo[<font size=2>bar</font>]baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo[<font size=\"4\">bar</font>]baz",
+	[]],
+["foo[<font size=2>bar</font>]baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo[<span style=\"font-size:large\">bar</span>]baz",
+	[]],
+["foo<font size=2>[bar]</font>baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo<font size=\"4\">[bar]</font>baz",
+	[]],
+["foo<font size=2>[bar]</font>baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo<span style=\"font-size:large\">[bar]</span>baz",
+	[]],
+["foo{<font size=2>bar</font>}baz",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"foo{<font size=\"4\">bar}</font>baz",
+	[]],
+["foo{<font size=2>bar</font>}baz",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"foo{<span style=\"font-size:large\">bar}</span>baz",
+	[]],
+["<font size=1>fo[o</font><span style=font-size:xx-small>b]ar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"1\">fo<font size=\"4\">[o</font></font><span style=\"font-size:xx-small\"><font size=\"4\">b]</font>ar</span>",
+	[]],
+["<font size=1>fo[o</font><span style=font-size:xx-small>b]ar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"1\">fo<span style=\"font-size:large\">[o</span></font><span style=\"font-size:xx-small\"><span style=\"font-size:large\">b]</span>ar</span>",
+	[]],
+["<font size=2>fo[o</font><span style=font-size:small>b]ar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"2\">fo<font size=\"4\">[o</font></font><span style=\"font-size:small\"><font size=\"4\">b]</font>ar</span>",
+	[]],
+["<font size=2>fo[o</font><span style=font-size:small>b]ar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"2\">fo<span style=\"font-size:large\">[o</span></font><span style=\"font-size:small\"><span style=\"font-size:large\">b]</span>ar</span>",
+	[]],
+["<font size=3>fo[o</font><span style=font-size:medium>b]ar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"3\">fo<font size=\"4\">[o</font></font><span style=\"font-size:medium\"><font size=\"4\">b]</font>ar</span>",
+	[]],
+["<font size=3>fo[o</font><span style=font-size:medium>b]ar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"3\">fo<span style=\"font-size:large\">[o</span></font><span style=\"font-size:medium\"><span style=\"font-size:large\">b]</span>ar</span>",
+	[]],
+["<font size=4>fo[o</font><span style=font-size:large>b]ar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"4\">fo[o</font><span style=\"font-size:large\">b]ar</span>",
+	[]],
+["<font size=4>fo[o</font><span style=font-size:large>b]ar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"4\">fo[o</font><span style=\"font-size:large\">b]ar</span>",
+	[]],
+["<font size=5>fo[o</font><span style=font-size:x-large>b]ar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"5\">fo<font size=\"4\">[o</font></font><span style=\"font-size:x-large\"><font size=\"4\">b]</font>ar</span>",
+	[]],
+["<font size=5>fo[o</font><span style=font-size:x-large>b]ar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"5\">fo<span style=\"font-size:large\">[o</span></font><span style=\"font-size:x-large\"><span style=\"font-size:large\">b]</span>ar</span>",
+	[]],
+["<font size=6>fo[o</font><span style=font-size:xx-large>b]ar</span>",
+	[["stylewithcss","false"],["fontsize","4"]],
+	"<font size=\"6\">fo<font size=\"4\">[o</font></font><span style=\"font-size:xx-large\"><font size=\"4\">b]</font>ar</span>",
+	[]],
+["<font size=6>fo[o</font><span style=font-size:xx-large>b]ar</span>",
+	[["stylewithcss","true"],["fontsize","4"]],
+	"<font size=\"6\">fo<span style=\"font-size:large\">[o</span></font><span style=\"font-size:xx-large\"><span style=\"font-size:large\">b]</span>ar</span>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<font color=\"#0000ff\">[bar</font><i><font color=\"#0000ff\">baz]</font>qoz</i>quz",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar</span><i><span style=\"color:rgb(0, 0, 255)\">baz]</span>qoz</i>quz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","blue"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","blue"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","f"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","f"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","#f"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","#f"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","00f"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","00f"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","#00f"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","#00f"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","0000ff"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","0000ff"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","#0000ff"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","#0000ff"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","000000fff"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","000000fff"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","#000000fff"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","#000000fff"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgb(0, 0, 255)"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgb(0, 0, 255)"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgb(0%, 0%, 100%)"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgb(0%, 0%, 100%)"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgb( 0 ,0 ,255)"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgb( 0 ,0 ,255)"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgba(0, 0, 255, 0.0)"]],
+	"foo<span style=\"color:rgba(0, 0, 0, 0)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgba(0, 0, 255, 0.0)"]],
+	"foo<span style=\"color:rgba(0, 0, 0, 0)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgb(15, -10, 375)"]],
+	"foo<font color=\"#0f00ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgb(15, -10, 375)"]],
+	"foo<span style=\"color:rgb(15, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgba(0, 0, 0, 1)"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgba(0, 0, 0, 1)"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgba(255, 255, 255, 1)"]],
+	"foo<font color=\"#ffffff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgba(255, 255, 255, 1)"]],
+	"foo<span style=\"color:rgb(255, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","rgba(0, 0, 255, 0.5)"]],
+	"foo<span style=\"color:rgba(0, 0, 255, 0.5)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","rgba(0, 0, 255, 0.5)"]],
+	"foo<span style=\"color:rgba(0, 0, 255, 0.5)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","hsl(240, 100%, 50%)"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","hsl(240, 100%, 50%)"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","cornsilk"]],
+	"foo<font color=\"#fff8dc\">[bar]</font>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","cornsilk"]],
+	"foo<span style=\"color:rgb(255, 248, 220)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","potato quiche"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","potato quiche"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","transparent"]],
+	"foo<span style=\"color:rgba(0, 0, 0, 0)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","transparent"]],
+	"foo<span style=\"color:rgba(0, 0, 0, 0)\">[bar]</span>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forecolor","currentColor"]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["forecolor","currentColor"]],
+	"foo[bar]baz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<table><tbody><tr><td>foo</td><td>b<font color=\"#0000ff\">[a]</font>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"color:rgb(0, 0, 255)\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<table><tbody><tr><td>foo</td>{<td><font color=\"#0000ff\">bar</font></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"color:rgb(0, 0, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<table><tbody><tr>{<td><font color=\"#0000ff\">foo</font></td><td><font color=\"#0000ff\">bar</font></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<table><tbody><tr>{<td><span style=\"color:rgb(0, 0, 255)\">foo</span></td><td><span style=\"color:rgb(0, 0, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<table><tbody>{<tr><td><font color=\"#0000ff\">foo</font></td><td><font color=\"#0000ff\">bar</font></td><td><font color=\"#0000ff\">baz</font></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<table><tbody>{<tr><td><span style=\"color:rgb(0, 0, 255)\">foo</span></td><td><span style=\"color:rgb(0, 0, 255)\">bar</span></td><td><span style=\"color:rgb(0, 0, 255)\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<table>{<tbody><tr><td><font color=\"#0000ff\">foo</font></td><td><font color=\"#0000ff\">bar</font></td><td><font color=\"#0000ff\">baz</font></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<table>{<tbody><tr><td><span style=\"color:rgb(0, 0, 255)\">foo</span></td><td><span style=\"color:rgb(0, 0, 255)\">bar</span></td><td><span style=\"color:rgb(0, 0, 255)\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"{<table><tbody><tr><td><font color=\"#0000ff\">foo</font></td><td><font color=\"#0000ff\">bar</font></td><td><font color=\"#0000ff\">baz</font></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"{<table><tbody><tr><td><span style=\"color:rgb(0, 0, 255)\">foo</span></td><td><span style=\"color:rgb(0, 0, 255)\">bar</span></td><td><span style=\"color:rgb(0, 0, 255)\">baz</span></td></tr></tbody></table>}",
+	[]],
+["foo<font color=blue>[bar]</font>baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo<font color=blue>[bar]</font>baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo{<font color=blue>bar</font>}baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo{<font color=\"#0000ff\">bar}</font>baz",
+	[]],
+["foo{<font color=blue>bar</font>}baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo{<span style=\"color:rgb(0, 0, 255)\">bar}</span>baz",
+	[]],
+["<span style=\"color: blue\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"color: blue\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"color: #00f\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"color: #00f\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"color: #0000ff\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"color: #0000ff\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">foo<span style=\"color: brown\">[bar]</span>baz</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo[bar]baz</span>",
+	[]],
+["<font color=blue>foo<font color=brown>[bar]</font>baz</font>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"blue\">foo[bar]baz</font>",
+	[]],
+["<font color=blue>foo<font color=brown>[bar]</font>baz</font>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<font color=\"blue\">foo[bar]baz</font>",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">foo<span style=\"color: brown\">b[ar]</span>baz</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo<font color=\"#a52a2a\">b</font>[ar]baz</span>",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">foo<span style=\"color: brown\">b[ar]</span>baz</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo<span style=\"color:rgb(165, 42, 42)\">b</span>[ar]baz</span>",
+	[]],
+["foo<span id=purple>ba[r</span>ba]z",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<span id=\"purple\">ba<font color=\"#0000ff\">[r</font></span><font color=\"#0000ff\">ba]</font>z",
+	[]],
+["foo<span id=purple>ba[r</span>ba]z",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<span id=\"purple\">ba<span style=\"color:rgb(0, 0, 255)\">[r</span></span><span style=\"color:rgb(0, 0, 255)\">ba]</span>z",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">foo<span id=purple>b[a]r</span>baz</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo<span id=\"purple\">b<font color=\"#0000ff\">[a]</font>r</span>baz</span>",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">foo<span id=purple>b[a]r</span>baz</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">foo<span id=\"purple\">b<span style=\"color:rgb(0, 0, 255)\">[a]</span>r</span>baz</span>",
+	[]],
+["<a href=http://www.google.com>foo[bar]baz</a>",
+	[["stylewithcss","false"],["forecolor","blue"]],
+	"<a href=\"http://www.google.com\">foo[bar]baz</a>",
+	[]],
+["<a href=http://www.google.com>foo[bar]baz</a>",
+	[["stylewithcss","true"],["forecolor","blue"]],
+	"<a href=\"http://www.google.com\">foo[bar]baz</a>",
+	[]],
+["<a href=http://www.google.com>foo[bar]baz</a>",
+	[["stylewithcss","false"],["forecolor","#0000ff"]],
+	"<a href=\"http://www.google.com\">foo[bar]baz</a>",
+	[]],
+["<a href=http://www.google.com>foo[bar]baz</a>",
+	[["stylewithcss","true"],["forecolor","#0000ff"]],
+	"<a href=\"http://www.google.com\">foo[bar]baz</a>",
+	[]],
+["<a href=http://www.google.com>foo[bar]baz</a>",
+	[["stylewithcss","false"],["forecolor","rgb(0,0,255)"]],
+	"<a href=\"http://www.google.com\">foo[bar]baz</a>",
+	[]],
+["<a href=http://www.google.com>foo[bar]baz</a>",
+	[["stylewithcss","true"],["forecolor","rgb(0,0,255)"]],
+	"<a href=\"http://www.google.com\">foo[bar]baz</a>",
+	[]],
+["<font color=\"blue\">[foo]</font>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<font color=\"blue\">[foo]</font>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<font color=\"0000ff\">[foo]</font>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<font color=\"0000ff\">[foo]</font>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<font color=\"#0000ff\">[foo]</font>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<font color=\"#0000ff\">[foo]</font>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: blue\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: blue\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: #0000ff\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: #0000ff\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgb(0, 0, 255)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgb(0%, 0%, 100%)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgb(0%, 0%, 100%)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgb( 0 ,0 ,255)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgb( 0 ,0 ,255)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgba(0, 0, 255, 0.0)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgba(0, 0, 255, 0.0)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgb(15, -10, 375)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgb(15, -10, 375)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgba(0, 0, 0, 1)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgba(0, 0, 0, 1)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgba(255, 255, 255, 1)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgba(255, 255, 255, 1)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: rgba(0, 0, 255, 0.5)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: rgba(0, 0, 255, 0.5)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: hsl(240, 100%, 50%)\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: hsl(240, 100%, 50%)\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: cornsilk\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: cornsilk\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: transparent\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: transparent\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["<span style=\"color: currentColor\">[foo]</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"#0000ff\">[foo]</font>",
+	[]],
+["<span style=\"color: currentColor\">[foo]</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(0, 0, 255)\">[foo]</span>",
+	[]],
+["fo[o<font color=brown>b]ar</font>baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"fo<font color=\"#0000ff\">[o</font><font color=\"brown\"><font color=\"#0000ff\">b]</font>ar</font>baz",
+	[]],
+["fo[o<font color=brown>b]ar</font>baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"fo<span style=\"color:rgb(0, 0, 255)\">[o</span><font color=\"brown\"><span style=\"color:rgb(0, 0, 255)\">b]</span>ar</font>baz",
+	[]],
+["foo<font color=brown>ba[r</font>b]az",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<font color=\"brown\">ba<font color=\"#0000ff\">[r</font></font><font color=\"#0000ff\">b]</font>az",
+	[]],
+["foo<font color=brown>ba[r</font>b]az",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<font color=\"brown\">ba<span style=\"color:rgb(0, 0, 255)\">[r</span></font><span style=\"color:rgb(0, 0, 255)\">b]</span>az",
+	[]],
+["fo[o<font color=brown>bar</font>b]az",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"fo<font color=\"#0000ff\">[obarb]</font>az",
+	[]],
+["fo[o<font color=brown>bar</font>b]az",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"fo<span style=\"color:rgb(0, 0, 255)\">[obarb]</span>az",
+	[]],
+["foo[<font color=brown>b]ar</font>baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo[<font color=\"brown\"><font color=\"#0000ff\">b]</font>ar</font>baz",
+	[]],
+["foo[<font color=brown>b]ar</font>baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo[<font color=\"brown\"><span style=\"color:rgb(0, 0, 255)\">b]</span>ar</font>baz",
+	[]],
+["foo<font color=brown>ba[r</font>]baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<font color=\"brown\">ba<font color=\"#0000ff\">[r</font></font>]baz",
+	[]],
+["foo<font color=brown>ba[r</font>]baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<font color=\"brown\">ba<span style=\"color:rgb(0, 0, 255)\">[r</span></font>]baz",
+	[]],
+["foo[<font color=brown>bar</font>]baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo[<font color=\"#0000ff\">bar</font>]baz",
+	[]],
+["foo[<font color=brown>bar</font>]baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo[<span style=\"color:rgb(0, 0, 255)\">bar</span>]baz",
+	[]],
+["foo<font color=brown>[bar]</font>baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo<font color=\"#0000ff\">[bar]</font>baz",
+	[]],
+["foo<font color=brown>[bar]</font>baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo<span style=\"color:rgb(0, 0, 255)\">[bar]</span>baz",
+	[]],
+["foo{<font color=brown>bar</font>}baz",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"foo{<font color=\"#0000ff\">bar}</font>baz",
+	[]],
+["foo{<font color=brown>bar</font>}baz",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"foo{<span style=\"color:rgb(0, 0, 255)\">bar}</span>baz",
+	[]],
+["<font color=brown>fo[o</font><span style=color:brown>b]ar</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<font color=\"brown\">fo<font color=\"#0000ff\">[o</font></font><span style=\"color:rgb(165, 42, 42)\"><font color=\"#0000ff\">b]</font>ar</span>",
+	[]],
+["<font color=brown>fo[o</font><span style=color:brown>b]ar</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<font color=\"brown\">fo<span style=\"color:rgb(0, 0, 255)\">[o</span></font><span style=\"color:rgb(165, 42, 42)\"><span style=\"color:rgb(0, 0, 255)\">b]</span>ar</span>",
+	[]],
+["<span style=color:brown>fo[o</span><span style=color:#0000ff>b]ar</span>",
+	[["stylewithcss","false"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(165, 42, 42)\">fo<font color=\"#0000ff\">[o</font></span><span style=\"color:rgb(0, 0, 255)\">b]ar</span>",
+	[]],
+["<span style=color:brown>fo[o</span><span style=color:#0000ff>b]ar</span>",
+	[["stylewithcss","true"],["forecolor","#0000FF"]],
+	"<span style=\"color:rgb(165, 42, 42)\">fo<span style=\"color:rgb(0, 0, 255)\">[o</span></span><span style=\"color:rgb(0, 0, 255)\">b]ar</span>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>foo[]bar</div><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><span>foo</span>{}<span>bar</span></div><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><span>foo[</span><span>]bar</span></div><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>foo[bar]baz</div><p>extra</p>",
+	[]],
+["foo]bar[baz<p>extra",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>foo[bar]baz</div><p>extra</p>",
+	[]],
+["{<p><p> <p>foo</p>}",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>{ </div><div>foo}</div>",
+	[]],
+["foo[bar<i>baz]qoz</i>quz<p>extra",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>foo[bar<i>baz]qoz</i>quz</div><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<table><tbody><tr><td>foo</td><td><div>b[a]r</div></td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<table><tbody><tr><td>foo</td>{<td><div>bar</div></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<table><tbody><tr>{<td><div>foo</div></td><td><div>bar</div></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<table><tbody>{<tr><td><div>foo</div></td><td><div>bar</div></td><td><div>baz</div></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<table>{<tbody><tr><td><div>foo</div></td><td><div>bar</div></td><td><div>baz</div></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"{<table><tbody><tr><td><div>foo</div></td><td><div>bar</div></td><td><div>baz</div></td></tr></tbody></table>}",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<blockquote>[foobar]</blockquote>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<blockquote><div>[foobar]</div></blockquote>",
+	[]],
+["<h1>[foobar]</h1>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<h2>[foobar]</h2>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<h3>[foobar]</h3>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<h4>[foobar]</h4>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<h5>[foobar]</h5>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<h6>[foobar]</h6>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<dl><dt>[foo]<dd>bar</dl>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foo]</div><dl><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>[bar]</dl>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<dl><dt>foo</dt></dl><div>[bar]</div>",
+	[]],
+["<dl><dt>[foo<dd>bar]</dl>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foo</div><div>bar]</div>",
+	[]],
+["<ol><li>[foobar]</ol>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<ol><li><div>[foobar]</div></li></ol>",
+	[]],
+["<ul><li>[foobar]</ul>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<ul><li><div>[foobar]</div></li></ul>",
+	[]],
+["<address>[foobar]</address>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<pre>[foobar]</pre>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<article>[foobar]</article>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<article><div>[foobar]</div></article>",
+	[]],
+["<ins>[foobar]</ins>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><ins>[foobar]</ins></div>",
+	[]],
+["<del>[foobar]</del>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><del>[foobar]</del></div>",
+	[]],
+["<quasit>[foobar]</quasit>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><quasit>[foobar]</quasit></div>",
+	[]],
+["<quasit style=\"display: block\">[foobar]</quasit>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><quasit style=\"display:block\">[foobar]</quasit></div>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>foo[]bar</p><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p><span>foo</span>{}<span>bar</span></p><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p><span>foo[</span><span>]bar</span></p><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>foo[bar]baz</p><p>extra</p>",
+	[]],
+["foo]bar[baz<p>extra",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>foo[bar]baz</p><p>extra</p>",
+	[]],
+["{<p><p> <p>foo</p>}",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>{ </p><p>foo}</p>",
+	[]],
+["foo[bar<i>baz]qoz</i>quz<p>extra",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>foo[bar<i>baz]qoz</i>quz</p><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<table><tbody><tr><td>foo</td><td><p>b[a]r</p></td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<table><tbody><tr><td>foo</td>{<td><p>bar</p></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<table><tbody><tr>{<td><p>foo</p></td><td><p>bar</p></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<table><tbody>{<tr><td><p>foo</p></td><td><p>bar</p></td><td><p>baz</p></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<table>{<tbody><tr><td><p>foo</p></td><td><p>bar</p></td><td><p>baz</p></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"{<table><tbody><tr><td><p>foo</p></td><td><p>bar</p></td><td><p>baz</p></td></tr></tbody></table>}",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<blockquote>[foobar]</blockquote>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<blockquote><p>[foobar]</p></blockquote>",
+	[]],
+["<h1>[foobar]</h1>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<h2>[foobar]</h2>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<h3>[foobar]</h3>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<h4>[foobar]</h4>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<h5>[foobar]</h5>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<h6>[foobar]</h6>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<dl><dt>[foo]<dd>bar</dl>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo]</p><dl><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>[bar]</dl>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<dl><dt>foo</dt></dl><p>[bar]</p>",
+	[]],
+["<dl><dt>[foo<dd>bar]</dl>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<ol><li>[foobar]</ol>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<ol><li><p>[foobar]</p></li></ol>",
+	[]],
+["<ul><li>[foobar]</ul>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<ul><li><p>[foobar]</p></li></ul>",
+	[]],
+["<address>[foobar]</address>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<pre>[foobar]</pre>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<listing>[foobar]</listing>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<xmp>[foobar]</xmp>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<article>[foobar]</article>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<article><p>[foobar]</p></article>",
+	[]],
+["<ins>[foobar]</ins>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p><ins>[foobar]</ins></p>",
+	[]],
+["<del>[foobar]</del>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p><del>[foobar]</del></p>",
+	[]],
+["<quasit>[foobar]</quasit>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p><quasit>[foobar]</quasit></p>",
+	[]],
+["<quasit style=\"display: block\">[foobar]</quasit>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p><quasit style=\"display:block\">[foobar]</quasit></p>",
+	[]],
+["<blockquote>[foo]</blockquote><p>extra",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<blockquote>[foo]</blockquote><p>extra</p>",
+	[]],
+["<blockquote><p>[foo]<p>bar</blockquote><p>extra",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<blockquote><p>[foo]</p><p>bar</p></blockquote><p>extra</p>",
+	[]],
+["[foo]<blockquote>bar</blockquote><p>extra",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"[foo]<blockquote>bar</blockquote><p>extra</p>",
+	[]],
+["<p>[foo<p>bar]<p>baz",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<p>[foo</p><p>bar]</p><p>baz</p>",
+	[]],
+["<section>[foo]</section>",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<section>[foo]</section>",
+	[]],
+["<section><p>[foo]</section>",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<section><p>[foo]</p></section>",
+	[]],
+["<section><hgroup><h1>[foo]</h1><h2>bar</h2></hgroup><p>baz</section>",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<section><hgroup><h1>[foo]</h1><h2>bar</h2></hgroup><p>baz</p></section>",
+	[]],
+["<section>[foo]</section>",
+	[["stylewithcss","false"],["formatblock","<article>"]],
+	"<section>[foo]</section>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foobar]</address>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<article>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<dd>"]],
+	"<dl><dd>[foobar]</dd></dl>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<del>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<dl>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<dt>"]],
+	"<dl><dt>[foobar]</dt></dl>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foobar]</h1>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<h2>"]],
+	"<h2>[foobar]</h2>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<h3>"]],
+	"<h3>[foobar]</h3>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<h4>"]],
+	"<h4>[foobar]</h4>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<h5>"]],
+	"<h5>[foobar]</h5>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<h6>"]],
+	"<h6>[foobar]</h6>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<ins>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<li>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<ol>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foobar]</pre>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<ul>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","<quasit>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foobar]</address>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<article>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<aside>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<body>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<dd>"]],
+	"<dl><dd>[foobar]</dd></dl>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<del>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<details>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<dir>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foobar]</div>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<dl>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<dt>"]],
+	"<dl><dt>[foobar]</dt></dl>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<fieldset>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<figcaption>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<figure>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<footer>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<form>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foobar]</h1>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<h2>"]],
+	"<h2>[foobar]</h2>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<h3>"]],
+	"<h3>[foobar]</h3>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<h4>"]],
+	"<h4>[foobar]</h4>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<h5>"]],
+	"<h5>[foobar]</h5>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<h6>"]],
+	"<h6>[foobar]</h6>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<header>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<head>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<hgroup>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<hr>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<html>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<ins>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<li>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<listing>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<menu>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<nav>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<ol>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<plaintext>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foobar]</pre>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<section>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<ul>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<xmp>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foobar]</p>",
+	[["stylewithcss","false"],["formatblock","<quasit>"]],
+	"<p>[foobar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foo<br>bar]</address>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<article>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<aside>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<blockquote>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<body>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<dd>"]],
+	"<dl><dd>[foo</dd><dd>bar]</dd></dl>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<del>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<details>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<dir>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foo</div><div>bar]</div>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<dl>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<dt>"]],
+	"<dl><dt>[foo</dt><dt>bar]</dt></dl>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<fieldset>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<figcaption>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<figure>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<footer>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<form>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo<br>bar]</h1>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<h2>"]],
+	"<h2>[foo<br>bar]</h2>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<h3>"]],
+	"<h3>[foo<br>bar]</h3>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<h4>"]],
+	"<h4>[foo<br>bar]</h4>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<h5>"]],
+	"<h5>[foo<br>bar]</h5>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<h6>"]],
+	"<h6>[foo<br>bar]</h6>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<header>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<head>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<hgroup>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<hr>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<html>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<ins>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<li>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<listing>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<menu>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<nav>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<ol>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<plaintext>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foo<br>bar]</pre>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<section>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<ul>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<xmp>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<p>[foo<p>bar]",
+	[["stylewithcss","false"],["formatblock","<quasit>"]],
+	"<p>[foo</p><p>bar]</p>",
+	[]],
+["<div>[foobar]</div>",
+	[["stylewithcss","false"],["formatblock","p"]],
+	"<p>[foobar]</p>",
+	[]],
+["<ol><li>[foo]<li>bar</ol>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<ol><li><div>[foo]</div></li><li>bar</li></ol>",
+	[]],
+["<h1>[foo]<br>bar</h1>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo]</p><h1>bar</h1>",
+	[]],
+["<h1>foo<br>[bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<h1>foo</h1><p>[bar]</p>",
+	[]],
+["<h1>[foo<br>bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo<br>bar]</p>",
+	[]],
+["<h1>[foo]<br>bar</h1>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foo]</address><h1>bar</h1>",
+	[]],
+["<h1>foo<br>[bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<h1>foo</h1><address>[bar]</address>",
+	[]],
+["<h1>[foo<br>bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foo<br>bar]</address>",
+	[]],
+["<h1>[foo]<br>bar</h1>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foo]</pre><h1>bar</h1>",
+	[]],
+["<h1>foo<br>[bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<h1>foo</h1><pre>[bar]</pre>",
+	[]],
+["<h1>[foo<br>bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foo<br>bar]</pre>",
+	[]],
+["<h1>[foo]<br>bar</h1>",
+	[["stylewithcss","false"],["formatblock","<h2>"]],
+	"<h2>[foo]</h2><h1>bar</h1>",
+	[]],
+["<h1>foo<br>[bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<h2>"]],
+	"<h1>foo</h1><h2>[bar]</h2>",
+	[]],
+["<h1>[foo<br>bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<h2>"]],
+	"<h2>[foo<br>bar]</h2>",
+	[]],
+["<p>[foo]<br>bar</p>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo]</h1><p>bar</p>",
+	[]],
+["<p>foo<br>[bar]</p>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<p>foo</p><h1>[bar]</h1>",
+	[]],
+["<p>[foo<br>bar]</p>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo<br>bar]</h1>",
+	[]],
+["<p>[foo]<br>bar</p>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foo]</address><p>bar</p>",
+	[]],
+["<p>foo<br>[bar]</p>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<p>foo</p><address>[bar]</address>",
+	[]],
+["<p>[foo<br>bar]</p>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foo<br>bar]</address>",
+	[]],
+["<p>[foo]<br>bar</p>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foo]</pre><p>bar</p>",
+	[]],
+["<p>foo<br>[bar]</p>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<p>foo</p><pre>[bar]</pre>",
+	[]],
+["<p>[foo<br>bar]</p>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foo<br>bar]</pre>",
+	[]],
+["<address>[foo]<br>bar</address>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo]</p><address>bar</address>",
+	[]],
+["<address>foo<br>[bar]</address>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<address>foo</address><p>[bar]</p>",
+	[]],
+["<address>[foo<br>bar]</address>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo<br>bar]</p>",
+	[]],
+["<address>[foo]<br>bar</address>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foo]</pre><address>bar</address>",
+	[]],
+["<address>foo<br>[bar]</address>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<address>foo</address><pre>[bar]</pre>",
+	[]],
+["<address>[foo<br>bar]</address>",
+	[["stylewithcss","false"],["formatblock","<pre>"]],
+	"<pre>[foo<br>bar]</pre>",
+	[]],
+["<address>[foo]<br>bar</address>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo]</h1><address>bar</address>",
+	[]],
+["<address>foo<br>[bar]</address>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<address>foo</address><h1>[bar]</h1>",
+	[]],
+["<address>[foo<br>bar]</address>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo<br>bar]</h1>",
+	[]],
+["<pre>[foo]<br>bar</pre>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo]</p><pre>bar</pre>",
+	[]],
+["<pre>foo<br>[bar]</pre>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<pre>foo</pre><p>[bar]</p>",
+	[]],
+["<pre>[foo<br>bar]</pre>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo<br>bar]</p>",
+	[]],
+["<pre>[foo]<br>bar</pre>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foo]</address><pre>bar</pre>",
+	[]],
+["<pre>foo<br>[bar]</pre>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<pre>foo</pre><address>[bar]</address>",
+	[]],
+["<pre>[foo<br>bar]</pre>",
+	[["stylewithcss","false"],["formatblock","<address>"]],
+	"<address>[foo<br>bar]</address>",
+	[]],
+["<pre>[foo]<br>bar</pre>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo]</h1><pre>bar</pre>",
+	[]],
+["<pre>foo<br>[bar]</pre>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<pre>foo</pre><h1>[bar]</h1>",
+	[]],
+["<pre>[foo<br>bar]</pre>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo<br>bar]</h1>",
+	[]],
+["<p>[foo</p>bar]",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo<br>bar]</h1>",
+	[]],
+["[foo<p>bar]</p>",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>[foo<br>bar]</h1>",
+	[]],
+["<div>[foo<p>bar]</p></div>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<div><p>[foo</p><p>bar]</p></div>",
+	[]],
+["<xmp>[foo]</xmp>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p>[foo]</p>",
+	[]],
+["<xmp>[foo]</xmp>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foo]</div>",
+	[]],
+["<div><ol><li>[foo]</ol></div>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><ol><li><div>[foo]</div></li></ol></div>",
+	[]],
+["<div><table><tr><td>[foo]</table></div>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div><table><tbody><tr><td><div>[foo]</div></td></tr></tbody></table></div>",
+	[]],
+["<p>[foo<h1>bar]</h1>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foo</div><div>bar]</div>",
+	[]],
+["<h1>[foo</h1><h2>bar]</h2>",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foo</div><div>bar]</div>",
+	[]],
+["<div>[foo</div>bar]",
+	[["stylewithcss","false"],["formatblock","<div>"]],
+	"<div>[foo</div><div>bar]</div>",
+	[]],
+["<div style=color:blue>[foo]</div>",
+	[["stylewithcss","false"],["formatblock","<p>"]],
+	"<p><font color=\"#0000ff\">[foo]</font></p>",
+	[]],
+["{<p>foo</p>ba]r",
+	[["stylewithcss","false"],["formatblock","<h1>"]],
+	"<h1>{foo<br>ba]r</h1>",
+	[]],
+["foo[]",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["<span>foo[]</span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<span>foo</span>{}",
+	[]],
+["<p>foo[]</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}</p>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo[]ar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<span>foo</span><span>{}ar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<span>foo[]</span><span>bar</span>",
+	[]],
+["foo[]<span style=display:none>bar</span>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}az",
+	[]],
+["foo[]<script>bar</script>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}az",
+	[]],
+["fo[]&ouml;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"fo[]bar",
+	[]],
+["fo[]o&#x308;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"fo[]bar",
+	[]],
+["fo[]o&#x308;&#x327;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"fo[]bar",
+	[]],
+["[]&ouml;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"{}bar",
+	[]],
+["[]o&#x308;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"{}bar",
+	[]],
+["[]o&#x308;&#x327;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"{}bar",
+	[]],
+["[]&#x5e9;&#x5c1;&#x5b8;&#x5dc;&#x5d5;&#x5b9;&#x5dd;",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"{}לוֹם",
+	[]],
+["&#x5e9;&#x5c1;&#x5b8;&#x5dc;[]&#x5d5;&#x5b9;&#x5dd;",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"שָׁל[]ם",
+	[]],
+["<p>foo[]</p><p>bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo[]</p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["foo[]<p>bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<p>foo[]<br></p><p>bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo[]<br></p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["foo[]<br><p>bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<p>{}<br></p>foo",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>{}foo</p>",
+	[]],
+["<p>{}<span><br></span></p>foo",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>{}foo</p>",
+	[]],
+["foo{}<p><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["foo{}<p><span><br></span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["foo{}<br><p><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["foo{}<span><br></span><p><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["foo{}<br><p><span><br></span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["foo{}<span><br></span><p><span><br></span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["foo{}<p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}",
+	[]],
+["<table><tr><td>{}</table>foo",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>{}</td></tr></tbody></table>foo",
+	[]],
+["<table><tr><td>{}<br></table>foo",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>{}<br></td></tr></tbody></table>foo",
+	[]],
+["<table><tr><td>{}<span><br></span></table>foo",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>{}<span><br></span></td></tr></tbody></table>foo",
+	[]],
+["<div><p>foo[]</p></div><p>bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["<p>foo[]</p><div><p>bar</p></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<div><p>foo[]</p></div><div><p>bar</p></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["<div><p>foo[]</p></div>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["foo[]<div><p>bar</p></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<div>foo[]</div><div>bar</div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div>foo{}bar</div>",
+	[]],
+["<pre>foo[]</pre>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<pre>foo{}bar</pre>",
+	[]],
+["foo[]<br>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<b>foo[]</b><br>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<b>foo</b>{}bar",
+	[]],
+["foo[]<hr>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<p>foo[]<hr><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}</p><p>bar</p>",
+	[]],
+["<p>foo[]</p><br><p>bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}</p><p>bar</p>",
+	[]],
+["<p>foo[]</p><br><br><p>bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}</p><br><p>bar</p>",
+	[]],
+["<p>foo[]</p><img src=/img/lion.svg><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<img src=\"/img/lion.svg\"></p><p>bar</p>",
+	[]],
+["foo[]<img src=/img/lion.svg>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<a>bar</a>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<a>{}ar</a>",
+	[]],
+["foo[]<a href=/>bar</a>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<a href=\"/\">{}ar</a>",
+	[]],
+["foo[]<a name=abc>bar</a>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<a name=\"abc\">{}ar</a>",
+	[]],
+["foo[]<a href=/ name=abc>bar</a>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<a href=\"/\" name=\"abc\">{}ar</a>",
+	[]],
+["foo[]<span><a>bar</a></span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<span><a>{}ar</a></span>",
+	[]],
+["foo[]<span><a href=/>bar</a></span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<span><a href=\"/\">{}ar</a></span>",
+	[]],
+["foo[]<span><a name=abc>bar</a></span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<span><a name=\"abc\">{}ar</a></span>",
+	[]],
+["foo[]<span><a href=/ name=abc>bar</a></span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<span><a href=\"/\" name=\"abc\">{}ar</a></span>",
+	[]],
+["<a>foo[]</a>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<a>foo</a>{}ar",
+	[]],
+["<a href=/>foo[]</a>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<a href=\"/\">foo</a>{}ar",
+	[]],
+["<a name=abc>foo[]</a>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<a name=\"abc\">foo</a>{}ar",
+	[]],
+["<a href=/ name=abc>foo[]</a>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<a href=\"/\" name=\"abc\">foo</a>{}ar",
+	[]],
+["foo[] &nbsp;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo[] bar",
+	[]],
+["foo[]&nbsp; bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo[] bar",
+	[]],
+["foo[]&nbsp;&nbsp;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo[] bar",
+	[]],
+["foo[]  bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo[]bar",
+	[]],
+["<b>foo[] </b>&nbsp;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<b>foo[]</b> bar",
+	[]],
+["<b>foo[]&nbsp;</b> bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<b>foo[]</b> bar",
+	[]],
+["<b>foo[]&nbsp;</b>&nbsp;bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<b>foo[]</b> bar",
+	[]],
+["<b>foo[] </b> bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<b>foo[]</b>bar",
+	[]],
+["foo[]<table><tr><td>bar</table>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{<table><tbody><tr><td>bar</td></tr></tbody></table>}baz",
+	[]],
+["foo<table><tr><td>bar[]</table>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<table><tbody><tr><td>bar[]</td></tr></tbody></table>baz",
+	[]],
+["<p>foo[]<table><tr><td>bar</table><p>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p>{<table><tbody><tr><td>bar</td></tr></tbody></table>}<p>baz</p>",
+	[]],
+["<table><tr><td>foo[]<td>bar</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>foo{}</td><td>bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>foo[]<tr><td>bar</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>foo{}</td></tr><tr><td>bar</td></tr></tbody></table>",
+	[]],
+["foo[]<br><table><tr><td>bar</table>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{<table><tbody><tr><td>bar</td></tr></tbody></table>}baz",
+	[]],
+["foo<table><tr><td>bar[]<br></table>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<table><tbody><tr><td>bar[]</td></tr></tbody></table>baz",
+	[]],
+["<p>foo[]<br><table><tr><td>bar</table><p>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p>{<table><tbody><tr><td>bar</td></tr></tbody></table>}<p>baz</p>",
+	[]],
+["<p>foo<table><tr><td>bar[]<br></table><p>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><table><tbody><tr><td>bar[]</td></tr></tbody></table><p>baz</p>",
+	[]],
+["<table><tr><td>foo[]<br><td>bar</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>foo{}</td><td>bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>foo[]<br><tr><td>bar</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>foo{}</td></tr><tr><td>bar</td></tr></tbody></table>",
+	[]],
+["foo<table><tr><td>bar[]</table><br>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<table><tbody><tr><td>bar[]</td></tr></tbody></table><br>baz",
+	[]],
+["foo[]<table><tr><td><hr>bar</table>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{<table><tbody><tr><td><hr>bar</td></tr></tbody></table>}baz",
+	[]],
+["<table><tr><td>foo[]<td><hr>bar</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>foo{}</td><td><hr>bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>foo[]<tr><td><hr>bar</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>foo{}</td></tr><tr><td><hr>bar</td></tr></tbody></table>",
+	[]],
+["foo[]<ol><li>bar<li>baz</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<ol><li>baz</li></ol>",
+	[]],
+["foo[]<br><ol><li>bar<li>baz</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo[]<li>bar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo[]<br><li>bar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo[]<li>bar<br>baz</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar<br>baz</li></ol>",
+	[]],
+["<ol><li><p>foo[]<li>bar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li><p>foo{}bar</p></li></ol>",
+	[]],
+["<ol><li>foo[]<li><p>bar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li><p>foo[]<li><p>bar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li><p>foo{}bar</p></li></ol>",
+	[]],
+["<ol><li>foo[]<ul><li>bar</ul></ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["foo[]<ol><ol><li>bar</ol></ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<div><ol><li>bar</ol></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<dl><dt>bar<dd>baz</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<dl><dd>baz</dd></dl>",
+	[]],
+["foo[]<dl><dd>bar</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<dl><dt>foo[]<dd>bar</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<dl><dt>foo{}bar</dt></dl>",
+	[]],
+["<dl><dt>foo[]<dt>bar<dd>baz</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<dl><dt>foo{}bar</dt><dd>baz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[]<dd>baz</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<dl><dt>foo</dt><dd>bar{}baz</dd></dl>",
+	[]],
+["<ol><li>foo[]</ol>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo[]<br></ol>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>{}<br></ol>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo<li>{}<br></ol>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo</li><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo[]</ol><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>foo[]<br></ol><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["<ol><li>{}<br></ol><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo<li>{}<br></ol><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo</li><li>{}bar</li></ol>",
+	[]],
+["<ol><li>foo[]</ol><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>foo[]<br></ol><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>{}<br></ol><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo<li>{}<br></ol><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo</li><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo[]</ol><p><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>foo[]<br></ol><p><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}</li></ol>",
+	[]],
+["<ol><li>{}<br></ol><p><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo<li>{}<br></ol><p><br>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo</li><li>{}<br></li></ol>",
+	[]],
+["foo[]<blockquote>bar</blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<blockquote><blockquote>bar</blockquote></blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<blockquote><div>bar</div></blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<blockquote style=\"color: blue\">bar</blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}<font color=\"#0000ff\">bar</font>",
+	[]],
+["foo[]<blockquote><blockquote><p>bar<p>baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<blockquote><blockquote><p>baz</p></blockquote></blockquote>",
+	[]],
+["foo[]<blockquote><div><p>bar<p>baz</div></blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<blockquote><div><p>baz</p></div></blockquote>",
+	[]],
+["foo[]<blockquote style=\"color: blue\"><p>bar<p>baz</blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}<font color=\"#0000ff\">bar</font><blockquote style=\"color:rgb(0, 0, 255)\"><p>baz</p></blockquote>",
+	[]],
+["foo[]<blockquote><p><b>bar</b><p>baz</blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}<b>bar</b><blockquote><p>baz</p></blockquote>",
+	[]],
+["foo[]<blockquote><p><strong>bar</strong><p>baz</blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}<strong>bar</strong><blockquote><p>baz</p></blockquote>",
+	[]],
+["foo[]<blockquote><p><span>bar</span><p>baz</blockquote>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}<span>bar</span><blockquote><p>baz</p></blockquote>",
+	[]],
+["foo[]<blockquote><ol><li>bar</ol></blockquote><p>extra",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<p>extra</p>",
+	[]],
+["foo[]<blockquote>bar<ol><li>baz</ol>quz</blockquote><p>extra",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<blockquote><ol><li>baz</li></ol>quz</blockquote><p>extra</p>",
+	[]],
+["foo<blockquote><ol><li>bar[]</li><ol><li>baz</ol><li>quz</ol></blockquote><p>extra",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<blockquote><ol><li>bar{}baz</li><li>quz</li></ol></blockquote><p>extra</p>",
+	[]],
+["foo[]<span></span>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}ar",
+	[]],
+["foo[]<span><span></span></span>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}ar",
+	[]],
+["foo[]<quasit></quasit>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}ar",
+	[]],
+["foo[]<span></span><br>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<span>foo[]<span></span></span>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<span>foo</span>{}ar",
+	[]],
+["foo[]<span></span><span>bar</span>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<span>{}ar</span>",
+	[]],
+["foo[]<div><div><p>bar</div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<div><div><p><!--abc-->bar</div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<div><div><!--abc--><p>bar</div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<div><!--abc--><div><p>bar</div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[]<!--abc--><div><div><p>bar</div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<div><div><p>foo[]</div></div>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</div></div><!--abc-->bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</div><!--abc--></div>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p><!--abc--></div></div>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]<!--abc--></div></div>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p></div></div><div><div><div>bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]<!--abc--></p></div></div><div><div><div>bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p><!--abc--></div></div><div><div><div>bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p></div><!--abc--></div><div><div><div>bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p></div></div><!--abc--><div><div><div>bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p></div></div><div><!--abc--><div><div>bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p></div></div><div><div><!--abc--><div>bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<div><div><p>foo[]</p></div></div><div><div><div><!--abc-->bar</div></div></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><div><p>foo{}bar</p></div></div>",
+	[]],
+["<p style=color:blue>foo[]<p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><font color=\"#0000ff\">foo{}</font>bar</p>",
+	[]],
+["<p style=color:blue>foo[]<p style=color:brown>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p style=\"color:rgb(0, 0, 255)\">foo{}<font color=\"#a52a2a\">bar</font></p>",
+	[]],
+["<p>foo[]<p style=color:brown>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<font color=\"#a52a2a\">bar</font></p>",
+	[]],
+["<p><font color=blue>foo[]</font><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><font color=\"blue\">foo</font>{}bar</p>",
+	[]],
+["<p><font color=blue>foo[]</font><p><font color=brown>bar</font>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><font color=\"blue\">foo</font>{}<font color=\"brown\">bar</font></p>",
+	[]],
+["<p>foo[]<p><font color=brown>bar</font>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<font color=\"brown\">bar</font></p>",
+	[]],
+["<p><span style=color:blue>foo[]</font><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><span style=\"color:rgb(0, 0, 255)\">foo</span>{}bar</p>",
+	[]],
+["<p><span style=color:blue>foo[]</font><p><span style=color:brown>bar</font>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><span style=\"color:rgb(0, 0, 255)\">foo</span>{}<span style=\"color:rgb(165, 42, 42)\">bar</span></p>",
+	[]],
+["<p>foo[]<p><span style=color:brown>bar</font>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<span style=\"color:rgb(165, 42, 42)\">bar</span></p>",
+	[]],
+["<p style=background-color:aqua>foo[]<p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo{}bar</p>",
+	[]],
+["<p style=background-color:aqua>foo[]<p style=background-color:tan>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo{}bar</p>",
+	[]],
+["<p>foo[]<p style=background-color:tan>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p><span style=background-color:aqua>foo[]</font><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>{}bar</p>",
+	[]],
+["<p><span style=background-color:aqua>foo[]</font><p><span style=background-color:tan>bar</font>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>{}<span style=\"background-color:rgb(210, 180, 140)\">bar</span></p>",
+	[]],
+["<p>foo[]<p><span style=background-color:tan>bar</font>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<span style=\"background-color:rgb(210, 180, 140)\">bar</span></p>",
+	[]],
+["<p style=text-decoration:underline>foo[]<p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><u>foo{}</u>bar</p>",
+	[]],
+["<p style=text-decoration:underline>foo[]<p style=text-decoration:line-through>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><u>foo{}</u><s>bar</s></p>",
+	[]],
+["<p>foo[]<p style=text-decoration:line-through>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<s>bar</s></p>",
+	[]],
+["<p><u>foo[]</u><p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><u>foo</u>{}bar</p>",
+	[]],
+["<p><u>foo[]</u><p><s>bar</s>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><u>foo</u>{}<s>bar</s></p>",
+	[]],
+["<p>foo[]<p><s>bar</s>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<s>bar</s></p>",
+	[]],
+["<p style=color:blue>foo[]</p>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><font color=\"#0000ff\">foo{}</font>bar</p>",
+	[]],
+["foo[]<p style=color:brown>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}<font color=\"#a52a2a\">bar</font>",
+	[]],
+["<div style=color:blue><p style=color:green>foo[]</div>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p><font color=\"#008000\">foo{}</font>bar</p></div>",
+	[]],
+["<div style=color:blue><p style=color:green>foo[]</div><p style=color:brown>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div style=\"color:rgb(0, 0, 255)\"><p style=\"color:rgb(0, 128, 0)\">foo{}<font color=\"#a52a2a\">bar</font></p></div>",
+	[]],
+["<p style=color:blue>foo[]<div style=color:brown><p style=color:green>bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p style=\"color:rgb(0, 0, 255)\">foo{}<font color=\"#008000\">bar</font></p>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo[]baz",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar]</span>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar}</span>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}baz</p>",
+	[]],
+["<p>foo{<span style=color:#aBcDeF>bar</span>}baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}baz</p>",
+	[]],
+["<p>[foo<span style=color:#aBcDeF>bar]</span>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>{}baz</p>",
+	[]],
+["<p>{foo<span style=color:#aBcDeF>bar}</span>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>{}baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span>baz]",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar</span>baz}",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}baz",
+	[]],
+["foo<b>{bar}</b>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}baz",
+	[]],
+["foo{<b>bar</b>}baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}baz",
+	[]],
+["foo<span>[bar]</span>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}baz",
+	[]],
+["foo<span>{bar}</span>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}baz",
+	[]],
+["foo{<span>bar</span>}baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}baz",
+	[]],
+["<b>foo[bar</b><i>baz]quz</i>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<b>foo[]</b><i>quz</i>",
+	[]],
+["<p>foo</p><p>[bar]</p><p>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><p>{}<br></p><p>baz</p>",
+	[]],
+["<p>foo</p><p>{bar}</p><p>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><p>{}<br></p><p>baz</p>",
+	[]],
+["<p>foo</p><p>{bar</p>}<p>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><p>{}<br></p><p>baz</p>",
+	[]],
+["<p>foo</p>{<p>bar}</p><p>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p>{}<br><p>baz</p>",
+	[]],
+["<p>foo</p>{<p>bar</p>}<p>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p>{}<p>baz</p>",
+	[]],
+["<p>foo[bar<p>baz]quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["<p>foo[bar<div>baz]quz</div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["<p>foo[bar<h1>baz]quz</h1>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}quz</p>",
+	[]],
+["<div>foo[bar</div><p>baz]quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div>foo{}quz</div>",
+	[]],
+["<blockquote>foo[bar</blockquote><pre>baz]quz</pre>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<blockquote>foo{}quz</blockquote>",
+	[]],
+["<p><b>foo[bar</b><p>baz]quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p><b>foo</b>{}quz</p>",
+	[]],
+["<div><p>foo[bar</div><p>baz]quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p>foo{}quz</p></div>",
+	[]],
+["<p>foo[bar<blockquote><p>baz]quz<p>qoz</blockquote",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}quz</p><blockquote><p>qoz</p></blockquote>",
+	[]],
+["<p>foo[bar<p style=color:blue>baz]quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<font color=\"#0000ff\">quz</font></p>",
+	[]],
+["<p>foo[bar<p><b>baz]quz</b>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}<b>quz</b></p>",
+	[]],
+["<div><p>foo<p>[bar<p>baz]</div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p>foo</p><p>{}<br></p></div>",
+	[]],
+["foo[<br>]bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo[]bar",
+	[]],
+["<p>foo[</p><p>]bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo[</p><p>]bar<br>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar<br>baz</p>",
+	[]],
+["foo[<p>]bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo{<p>}bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo[<p>]bar<br>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<p>baz</p>",
+	[]],
+["foo[<p>]bar</p>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<br>baz",
+	[]],
+["foo{<p>bar</p>}baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}baz",
+	[]],
+["foo<p>{bar</p>}baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<p>{}baz</p>",
+	[]],
+["foo{<p>bar}</p>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}<br>baz",
+	[]],
+["<p>foo[</p>]bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo{</p>}bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo[</p>]bar<br>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>baz",
+	[]],
+["<p>foo[</p>]bar<p>baz</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p><p>baz</p>",
+	[]],
+["foo[<div><p>]bar</div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<div><p>foo[</p></div>]bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p>foo{}bar</p></div>",
+	[]],
+["foo[<div><p>]bar</p>baz</div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<div>baz</div>",
+	[]],
+["foo[<div>]bar<p>baz</p></div>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<div><p>baz</p></div>",
+	[]],
+["<div><p>foo</p>bar[</div>]baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div><p>foo</p>bar{}baz</div>",
+	[]],
+["<div>foo<p>bar[</p></div>]baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<div>foo<p>bar{}baz</p></div>",
+	[]],
+["<p>foo<br>{</p>]bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo<br><br>{</p>]bar",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo<br>{}bar</p>",
+	[]],
+["foo<br>{<p>]bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["foo<br><br>{<p>]bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo<br>{}bar",
+	[]],
+["<p>foo<br>{</p><p>}bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo{}bar</p>",
+	[]],
+["<p>foo<br><br>{</p><p>}bar</p>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo<br>{}bar</p>",
+	[]],
+["<table><tbody><tr><th>foo<th>[bar]<th>baz<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><th>foo</th><th>{}<br></th><th>baz</th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>foo<th>ba[r<th>b]az<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><th>foo</th><th>ba[]</th><th>az</th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>fo[o<th>bar<th>b]az<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><th>fo[]</th><th><br></th><th>az</th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>foo<th>bar<th>ba[z<tr><td>q]uz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><th>foo</th><th>bar</th><th>ba[]</th></tr><tr><td>uz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>[foo<th>bar<th>baz]<tr><td>quz<td>qoz<td>qiz</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><th>{}<br></th><th><br></th><th><br></th></tr><tr><td>quz</td><td>qoz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><th>[foo<th>bar<th>baz<tr><td>quz<td>qoz<td>qiz]</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><th>{}<br></th><th><br></th><th><br></th></tr><tr><td><br></td><td><br></td><td><br></td></tr></tbody></table>",
+	[]],
+["{<table><tbody><tr><th>foo<th>bar<th>baz<tr><td>quz<td>qoz<td>qiz</table>}",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"{}<br>",
+	[]],
+["<table><tbody><tr><td>foo<td>ba[r<tr><td>baz<td>quz<tr><td>q]oz<td>qiz</table>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<table><tbody><tr><td>foo</td><td>ba[]</td></tr><tr><td><br></td><td><br></td></tr><tr><td>oz</td><td>qiz</td></tr></tbody></table>",
+	[]],
+["<p>fo[o<table><tr><td>b]ar</table><p>baz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>fo[]</p><table><tbody><tr><td>ar</td></tr></tbody></table><p>baz</p>",
+	[]],
+["<p>foo<table><tr><td>ba[r</table><p>b]az",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><table><tbody><tr><td>ba[]</td></tr></tbody></table><p>az</p>",
+	[]],
+["<p>fo[o<table><tr><td>bar</table><p>b]az",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>fo{}az</p>",
+	[]],
+["<p>foo<ol><li>ba[r<li>b]az</ol><p>quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><ol><li>ba{}az</li></ol><p>quz</p>",
+	[]],
+["<p>foo<ol><li>bar<li>[baz]</ol><p>quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><ol><li>bar</li><li>{}<br></li></ol><p>quz</p>",
+	[]],
+["<p>fo[o<ol><li>b]ar<li>baz</ol><p>quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>fo{}ar</p><ol><li>baz</li></ol><p>quz</p>",
+	[]],
+["<p>foo<ol><li>bar<li>ba[z</ol><p>q]uz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>foo</p><ol><li>bar</li><li>ba{}uz</li></ol>",
+	[]],
+["<p>fo[o<ol><li>bar<li>b]az</ol><p>quz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>fo{}az</p><p>quz</p>",
+	[]],
+["<p>fo[o<ol><li>bar<li>baz</ol><p>q]uz",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<p>fo{}uz</p>",
+	[]],
+["<ol><li>fo[o</ol><ol><li>b]ar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>fo{}ar</li></ol>",
+	[]],
+["<ol><li>fo[o</ol><ul><li>b]ar</ul>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>fo{}ar</li></ol>",
+	[]],
+["foo[<ol><li>]bar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<ol><li>foo[<li>]bar</ol>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<ol><li>foo{}bar</li></ol>",
+	[]],
+["foo[<dl><dt>]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar<dl><dd>baz</dd></dl>",
+	[]],
+["foo[<dl><dd>]bar</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"foo{}bar",
+	[]],
+["<dl><dt>foo[<dd>]bar</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<dl><dt>foo{}bar</dt></dl>",
+	[]],
+["<dl><dt>foo[<dt>]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<dl><dt>foo{}bar</dt><dd>baz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[<dd>]baz</dl>",
+	[["stylewithcss","false"],["forwarddelete",""]],
+	"<dl><dt>foo</dt><dd>bar{}baz</dd></dl>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["{<p><p> <p>foo</p>}",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"{<p></p><p><span style=\"background-color:rgb(0, 255, 255)\"> </span></p><p><span style=\"background-color:rgb(0, 255, 255)\">foo</span></p>}",
+	[]],
+["foo[bar<i>baz]qoz</i>quz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar</span><i><span style=\"background-color:rgb(0, 255, 255)\">baz]</span>qoz</i>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"background-color:rgb(0, 255, 255)\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<table><tbody><tr>{<td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<table><tbody>{<tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<table>{<tbody><tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"{<table><tbody><tr><td><span style=\"background-color:rgb(0, 255, 255)\">foo</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">bar</span></td><td><span style=\"background-color:rgb(0, 255, 255)\">baz</span></td></tr></tbody></table>}",
+	[]],
+["<p style=\"background-color: rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<p style=\"background-color: #00ffff\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<p style=\"background-color: aqua\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["{<p style=\"background-color: aqua\">foo</p><p>bar</p>}",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"{<p style=\"background-color:rgb(0, 255, 255)\">foo</p><p><span style=\"background-color:rgb(0, 255, 255)\">bar</span></p>}",
+	[]],
+["<span style=\"background-color: aqua\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: #00ffff\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: #0ff\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: rgb(0, 255, 255)\">foo<span style=\"background-color: tan\">[bar]</span>baz</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</span>",
+	[]],
+["<span style=\"background-color: aqua\">foo<span style=\"background-color: tan\">b[ar]</span>baz</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">foo<span style=\"background-color:rgb(210, 180, 140)\">b</span>[ar]baz</span>",
+	[]],
+["<p style=\"background-color: aqua\">foo<span style=\"background-color: tan\">b[ar]</span>baz</p>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo<span style=\"background-color:rgb(210, 180, 140)\">b</span>[ar]baz</p>",
+	[]],
+["<div style=\"background-color: aqua\"><p style=\"background-color: tan\">b[ar]</p></div>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<div style=\"background-color:rgb(0, 255, 255)\"><p style=\"background-color:rgb(210, 180, 140)\">b<span style=\"background-color:rgb(0, 255, 255)\">[ar]</span></p></div>",
+	[]],
+["<span style=\"display: block; background-color: aqua\"><span style=\"display: block; background-color: tan\">b[ar]</span></span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"display:block; background-color:rgb(0, 255, 255)\"><span style=\"display:block; background-color:rgb(210, 180, 140)\">b<span style=\"background-color:rgb(0, 255, 255)\">[ar]</span></span></span>",
+	[]],
+["fo[o<span style=background-color:tan>b]ar</span>baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span><span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>baz",
+	[]],
+["foo<span style=background-color:tan>ba[r</span>b]az",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(210, 180, 140)\">ba<span style=\"background-color:rgb(0, 255, 255)\">[r</span></span><span style=\"background-color:rgb(0, 255, 255)\">b]</span>az",
+	[]],
+["fo[o<span style=background-color:tan>bar</span>b]az",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"fo<span style=\"background-color:rgb(0, 255, 255)\">[obarb]</span>az",
+	[]],
+["foo[<span style=background-color:tan>b]ar</span>baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo[<span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>baz",
+	[]],
+["foo<span style=background-color:tan>ba[r</span>]baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(210, 180, 140)\">ba<span style=\"background-color:rgb(0, 255, 255)\">[r</span></span>]baz",
+	[]],
+["foo[<span style=background-color:tan>bar</span>]baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo[<span style=\"background-color:rgb(0, 255, 255)\">bar</span>]baz",
+	[]],
+["foo<span style=background-color:tan>[bar]</span>baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz",
+	[]],
+["foo{<span style=background-color:tan>bar</span>}baz",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"foo{<span style=\"background-color:rgb(0, 255, 255)\">bar}</span>baz",
+	[]],
+["<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b]ar</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span></span><span style=\"background-color:rgb(255, 255, 0)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>",
+	[]],
+["<span style=background-color:tan>fo[o</span><span style=background-color:tan>b]ar</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span></span><span style=\"background-color:rgb(210, 180, 140)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span>",
+	[]],
+["<span style=background-color:tan>fo[o<span style=background-color:transparent>b]ar</span></span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(210, 180, 140)\">fo<span style=\"background-color:rgb(0, 255, 255)\">[o</span><span style=\"background-color:rgba(0, 0, 0, 0)\"><span style=\"background-color:rgb(0, 255, 255)\">b]</span>ar</span></span>",
+	[]],
+["<font size=6>[foo]</font>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\"><font size=\"6\">[foo]</font></span>",
+	[]],
+["<span style=font-size:xx-large>[foo]</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\"><span style=\"font-size:xx-large\">[foo]</span></span>",
+	[]],
+["<font size=6>foo[bar]baz</font>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<font size=\"6\">foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz</font>",
+	[]],
+["<span style=font-size:xx-large>foo[bar]baz</span>",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"font-size:xx-large\">foo<span style=\"background-color:rgb(0, 255, 255)\">[bar]</span>baz</span>",
+	[]],
+["[foo<font size=6>bar</font>baz]",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">[foo<font size=\"6\">bar</font>baz]</span>",
+	[]],
+["[foo<span style=font-size:xx-large>bar</span>baz]",
+	[["stylewithcss","false"],["hilitecolor","#00FFFF"]],
+	"<span style=\"background-color:rgb(0, 255, 255)\">[foo<span style=\"font-size:xx-large\">bar</span>baz]</span>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[]bar</blockquote><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><span>foo</span>{}<span>bar</span></blockquote><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><span>foo[</span><span>]bar</span></blockquote><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[bar]baz</blockquote><p>extra</p>",
+	[]],
+["<p dir=rtl>פו[בר]בז<p dir=rtl>נוםף",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p dir=\"rtl\">פו[בר]בז</p></blockquote><p dir=\"rtl\">נוםף</p>",
+	[]],
+["<p dir=rtl>פו[ברבז<p>Foobar]baz<p>Extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p dir=\"rtl\">פו[ברבז</p><p>Foobar]baz</p></blockquote><p>Extra</p>",
+	[]],
+["<p>Foo[barbaz<p dir=rtl>פובר]בז<p>Extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>Foo[barbaz</p><p dir=\"rtl\">פובר]בז</p></blockquote><p>Extra</p>",
+	[]],
+["<div><p>Foo[barbaz<p dir=rtl>פובר]בז</div><p>Extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><div><p>Foo[barbaz</p><p dir=\"rtl\">פובר]בז</p></div></blockquote><p>Extra</p>",
+	[]],
+["foo]bar[baz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[bar]baz</blockquote><p>extra</p>",
+	[]],
+["{<p><p> <p>foo</p>}<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>{<p></p><p> </p><p>foo</p>}</blockquote><p>extra</p>",
+	[]],
+["foo[bar<i>baz]qoz</i>quz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[bar<i>baz]qoz</i>quz</blockquote><p>extra</p>",
+	[]],
+["[]foo<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>[]foo</blockquote><p>extra</p>",
+	[]],
+["foo[]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[]</blockquote><p>extra</p>",
+	[]],
+["<p>[]foo<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[]foo</p></blockquote><p>extra</p>",
+	[]],
+["<p>foo[]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>foo[]</p></blockquote><p>extra</p>",
+	[]],
+["<p>{}<br>foo</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>{}<br></blockquote><p>foo</p><p>extra</p>",
+	[]],
+["<p>foo<br>{}</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>foo{}</p></blockquote><p>extra</p>",
+	[]],
+["<span>{}<br>foo</span>bar<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>{}<br></blockquote><span>foo</span>bar<p>extra</p>",
+	[]],
+["<span>foo<br>{}</span>bar<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<span>foo{}</span><blockquote>bar</blockquote><p>extra</p>",
+	[]],
+["<p>foo</p>{}<p>bar</p>",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p>{}<p>bar</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<table><tbody><tr><td>foo</td><td><blockquote>b[a]r</blockquote></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<table><tbody><tr><td>foo</td>{<td><blockquote>bar</blockquote></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<table><tbody><tr>{<td><blockquote>foo</blockquote></td><td><blockquote>bar</blockquote></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></blockquote><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></blockquote><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</blockquote><p>extra</p>",
+	[]],
+["<p>foo[bar]</p><p>baz</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>foo[bar]</p></blockquote><p>baz</p><p>extra</p>",
+	[]],
+["<p>[foobar</p><p>ba]z</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foobar</p><p>ba]z</p></blockquote><p>extra</p>",
+	[]],
+["foo[bar]<br>baz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[bar]</blockquote>baz<p>extra</p>",
+	[]],
+["foo[bar]<br><br><br><br>baz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[bar]</blockquote><br><br><br>baz<p>extra</p>",
+	[]],
+["foobar<br>[ba]z<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"foobar<blockquote>[ba]z</blockquote><p>extra</p>",
+	[]],
+["foobar<br><br><br><br>[ba]z<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"foobar<br><br><br><br><blockquote>[ba]z</blockquote><p>extra</p>",
+	[]],
+["foo[bar<br>ba]z<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo[bar<br>ba]z</blockquote><p>extra</p>",
+	[]],
+["<div>foo<p>[bar]</p>baz</div><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<div>foo<blockquote><p>[bar]</p></blockquote>baz</div><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar]</p><p>baz</p></blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote><p>foo[bar]</p></blockquote><p>baz</p></blockquote><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar</p><p>b]az</p></blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote><p>foo[bar</p><p>b]az</p></blockquote></blockquote><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar]</p></blockquote><p>baz</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote><p>foo[bar]</p></blockquote></blockquote><p>baz</p><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar</p></blockquote><p>b]az</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote><p>foo[bar</p></blockquote><p>b]az</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo]<blockquote><p>bar</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo]</p><p>bar</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo<blockquote><p>b]ar</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo</p><blockquote><p>b]ar</p></blockquote></blockquote><p>extra</p>",
+	[]],
+["<p>foo<blockquote><p>bar</blockquote><p>[baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p><blockquote><p>bar</p><p>[baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p>foo<blockquote><p>[bar</blockquote><p>baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p><blockquote><blockquote><p>[bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo<blockquote><p>bar</blockquote><p>baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo</p><blockquote><p>bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
+	[]],
+["<blockquote><p>foo</blockquote><p>[bar]<blockquote><p>baz</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>foo</p><p>[bar]</p><p>baz</p></blockquote><p>extra</p>",
+	[]],
+["<blockquote>foo[bar]<br>baz</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote>foo[bar]</blockquote>baz</blockquote><p>extra</p>",
+	[]],
+["<blockquote>foo[bar<br>b]az</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote>foo[bar<br>b]az</blockquote></blockquote><p>extra</p>",
+	[]],
+["<blockquote>foo[bar]</blockquote>baz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote>foo[bar]</blockquote></blockquote>baz<p>extra</p>",
+	[]],
+["<blockquote>foo[bar</blockquote>b]az<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote>foo[bar</blockquote>b]az</blockquote><p>extra</p>",
+	[]],
+["[foo]<blockquote>bar</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>[foo]<br>bar</blockquote><p>extra</p>",
+	[]],
+["[foo<blockquote>b]ar</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>[foo<blockquote>b]ar</blockquote></blockquote><p>extra</p>",
+	[]],
+["foo<blockquote>bar</blockquote>[baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"foo<blockquote>bar<br>[baz]</blockquote><p>extra</p>",
+	[]],
+["[foo<blockquote>bar</blockquote>baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>[foo<blockquote>bar</blockquote>baz]</blockquote><p>extra</p>",
+	[]],
+["<blockquote>foo</blockquote>[bar]<blockquote>baz</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo<br>[bar]<br>baz</blockquote><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar]</p><p>baz</p></blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote style=\"margin-right:0\" dir=\"ltr\"><blockquote><p>foo[bar]</p></blockquote><p>baz</p></blockquote><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar</p><p>b]az</p></blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo[bar</p><p>b]az</p></blockquote></blockquote><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar]</p></blockquote><p>baz</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo[bar]</p></blockquote></blockquote><p>baz</p><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>foo[bar</p></blockquote><p>b]az</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>foo[bar</p></blockquote><p>b]az</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo]<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>bar</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote style=\"margin-right:0\" dir=\"ltr\"><p>[foo]</p><p>bar</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>b]ar</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo</p><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>b]ar</p></blockquote></blockquote><p>extra</p>",
+	[]],
+["<p>foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>bar</blockquote><p>[baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>bar</p><p>[baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p>foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>[bar</blockquote><p>baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p><blockquote><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>[bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo<blockquote style=\"margin-right: 0\" dir=\"ltr\"><p>bar</blockquote><p>baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo</p><blockquote style=\"margin-right:0\" dir=\"ltr\"><p>bar</p></blockquote><p>baz]</p></blockquote><p>extra</p>",
+	[]],
+["<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>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar]</p><p style=\"margin-left: 40px\">baz</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p style=\"margin-left:40px\">foo[bar]</p></blockquote><p style=\"margin-left:40px\">baz</p><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar</p><p style=\"margin-left: 40px\">b]az</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p style=\"margin-left:40px\">foo[bar</p><p style=\"margin-left:40px\">b]az</p></blockquote><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar]</p><p>baz</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p style=\"margin-left:40px\">foo[bar]</p></blockquote><p>baz</p><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar</p><p>b]az</p><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p style=\"margin-left:40px\">foo[bar</p><p>b]az</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo]<p style=\"margin-left: 40px\">bar<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo]</p></blockquote><p style=\"margin-left:40px\">bar</p><p>extra</p>",
+	[]],
+["<p>[foo<p style=\"margin-left: 40px\">b]ar<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo</p><p style=\"margin-left:40px\">b]ar</p></blockquote><p>extra</p>",
+	[]],
+["<p>foo<p style=\"margin-left: 40px\">bar<p>[baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p><p style=\"margin-left:40px\">bar</p><blockquote><p>[baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p>foo<p style=\"margin-left: 40px\">[bar<p>baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p><blockquote><p style=\"margin-left:40px\">[bar</p><p>baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo<p style=\"margin-left: 40px\">bar<p>baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>[foo</p><p style=\"margin-left:40px\">bar</p><p>baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo<p>[bar]<p style=\"margin-left: 40px\">baz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p style=\"margin-left:40px\">foo</p><blockquote><p>[bar]</p></blockquote><p style=\"margin-left:40px\">baz</p><p>extra</p>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<p>[foo]<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>bar</blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>[foo]</p><p>bar</p></blockquote><p>extra</p>",
+	[]],
+["<p>[foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>b]ar</blockquote><p>extra",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<p>foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>bar</blockquote><p>[baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<p>foo</p><blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>bar</p><p>[baz]</p></blockquote><p>extra</p>",
+	[]],
+["<p>foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>[bar</blockquote><p>baz]<p>extra",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<p>[foo<blockquote class=\"webkit-indent-blockquote\" style=\"margin: 0 0 0 40px; border: none; padding: 0px\"><p>bar</blockquote><p>baz]<p>extra",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote class=\"webkit-indent-blockquote\" style=\"margin:0 0 0 40px; border:none; padding:0px\"><p>foo</p><p>[bar]</p><p>baz</p></blockquote><p>extra</p>",
+	[]],
+["<blockquote>f[oo<blockquote>b]ar</blockquote></blockquote><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><blockquote>f[oo<blockquote>b]ar</blockquote></blockquote></blockquote><p>extra</p>",
+	[]],
+["<ol><li>foo<li>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>[bar]</li></ol><li>baz</li></ol>",
+	[]],
+["<ol data-start=1 data-end=2><li>foo<li>bar<li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol>{<li>bar</li>}</ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</ol>[bar]",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li></ol><blockquote>[bar]</blockquote>",
+	[]],
+["<ol><li>[foo]<br>bar<li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>[foo]<br>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<br>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>foo<br>[bar]</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li><div>[foo]</div>bar<li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li><div>[foo]</div>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol><li>[bar]</li></ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>bar</li><ol><li>[baz]</li></ol></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol><li>[bar]</li></ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol data-start=0 data-end=1><li>bar<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol>{<li>bar</li>}</ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>bar</li><ol><li>[baz]</li></ol></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol data-start=1 data-end=2><li>bar<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>bar</li><ol>{<li>baz</li>}</ol></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>b[a]r</ol><li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol><li>b[a]r</li></ol></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>b[a]r</ol><li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol><li>b[a]r</li></ol></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo{<ol><li>bar</ol>}<li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol>{<ol><li>bar</li></ol>}</ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li>{<ol><li>bar</ol>}<li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol>{<ol><li>bar</li></ol>}</ol><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>[foo]</li><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo]</li><ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>[foo]</li><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]<ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>[bar]</li><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]</li><ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>[bar]</li><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>bar</li><li>baz</li><li>[quz]</li></ol></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>bar</li><li>baz</li><li>[quz]</li></ol></ol>",
+	[]],
+["<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol id=\"u1\"><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
+	[]],
+["<ol><ol><li id=i1>foo</ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
+	[]],
+["<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</li><ol><li id=i3>baz</ol></ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol id=\"u1\"><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
+	[]],
+["<ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol id=\"u3\"><li id=\"i2\">[bar]</li><li id=\"i3\">baz</li></ol></ol>",
+	[]],
+["<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol id=\"u1\"><li id=\"i1\">foo</li><li id=\"i2\">[bar]</li></ol></ol>",
+	[]],
+["<ol><li>foo<li>b[ar<li>baz]</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>b[ar</li><li>baz]</li></ol></ol>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>[foo</li><ol><li>bar]</li></ol></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo</li><ol><li>bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>[foo</li><ol><li>bar]</li></ol></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>b[ar</ol><li>b]az</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol><li>b[ar</li></ol><li>b]az</li></ol></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>b[ar</ol><li>b]az</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol><li>b[ar</li></ol><li>b]az</li></ol></ol>",
+	[]],
+["<ol><li>[foo<ol><li>bar</ol><li>baz]</ol><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><ol><li>[foo</li><ol><li>bar</li></ol><li>baz]</li></ol></blockquote><p>extra</p>",
+	[]],
+["<ol><li>[foo</li><ol><li>bar</ol><li>baz]</ol><p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><ol><li>[foo</li><ol><li>bar</li></ol><li>baz]</li></ol></blockquote><p>extra</p>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>[foo]</li><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><ol><li>[bar]</li></ol></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar</ol>[baz]</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><li>foo</li><ol><li>bar</li><li>[baz]</li></ol></ol>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ol><ol><li>[foo</li><ol><li>bar]</li></ol></ol><li>baz</li></ol>",
+	[]],
+["foo<!--bar-->[baz]<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>foo<!--bar-->[baz]</blockquote><p>extra</p>",
+	[]],
+["[foo]<!--bar-->baz<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote>[foo]<!--bar-->baz</blockquote><p>extra</p>",
+	[]],
+["<p>foo<!--bar-->{}<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>foo<!--bar-->{}</p></blockquote><p>extra</p>",
+	[]],
+["<p>{}<!--foo-->bar<p>extra",
+	[["stylewithcss","false"],["indent",""]],
+	"<blockquote><p>{}<!--foo-->bar</p></blockquote><p>extra</p>",
+	[]],
+["<ul><li>a<br>{<br>}</li><li>b</li></ul>",
+	[["stylewithcss","false"],["indent",""]],
+	"<ul><ul><li>a<br>{<br>}</li></ul><li>b</li></ul>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"foo<hr>{}bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<span>foo</span><hr>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<span>foo</span><hr>{}<span>bar</span>",
+	[]],
+["<p>foo[bar<p>baz]quz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p>foo</p><hr>{}<p>quz</p>",
+	[]],
+["<div><b>foo</b>{}<b>bar</b></div>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<div><b>foo</b><hr>{}<b>bar</b></div>",
+	[]],
+["<div><b>foo[</b><b>]bar</b></div>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<div><b>foo</b><hr>{}<b>bar</b></div>",
+	[]],
+["<div><b>foo</b>{<b>bar</b>}<b>baz</b></div>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<div><b>foo</b><hr>{}<b>baz</b></div>",
+	[]],
+["<b>foo[]bar</b>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<b>foo</b><hr>{}<b>bar</b>",
+	[]],
+["<b id=abc>foo[]bar</b>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<b id=\"abc\">foo</b><hr>{}<b>bar</b>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthorizontalrule","abc"]],
+	"foo<hr>{}baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"foo<hr>{}baz",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"foo<hr>{}baz",
+	[]],
+["foo<b>{bar}</b>baz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"foo<hr>{}baz",
+	[]],
+["foo{<b>bar</b>}baz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"foo<hr>{}baz",
+	[]],
+["<p>foo<p>[bar]<p>baz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p>foo</p><hr>{}<p>baz</p>",
+	[]],
+["<p>foo<p>{bar}<p>baz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p>foo</p><hr>{}<p>baz</p>",
+	[]],
+["<p>foo{<p>bar</p>}<p>baz",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p>foo</p><hr>{}<p>baz</p>",
+	[]],
+["<p>foo[bar]baz</p>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p>foo</p><hr>{}<p>baz</p>",
+	[]],
+["<p id=abc>foo[bar]baz</p>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p id=\"abc\">foo</p><hr>{}<p>baz</p>",
+	[]],
+["<h1>foo[bar]baz</h1>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<h1>foo</h1><hr>{}<h1>baz</h1>",
+	[]],
+["<p>foo<b>b[a]r</b>baz</p>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
+	[]],
+["<a>foo[bar]baz</a>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<a>foo</a><hr>{}<a>baz</a>",
+	[]],
+["<a href=/>foo[bar]baz</a>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<a href=\"/\">foo</a><hr>{}<a href=\"/\">baz</a>",
+	[]],
+["<abbr>foo[bar]baz</abbr>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<abbr>foo</abbr><hr>{}<abbr>baz</abbr>",
+	[]],
+["<address>foo[bar]baz</address>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<address>foo<hr>{}baz</address>",
+	[]],
+["<article>foo[bar]baz</article>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<article>foo<hr>{}baz</article>",
+	[]],
+["<aside>foo[bar]baz</aside>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<aside>foo<hr>{}baz</aside>",
+	[]],
+["<b>foo[bar]baz</b>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<b>foo</b><hr>{}<b>baz</b>",
+	[]],
+["<bdi>foo[bar]baz</bdi>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<bdi>foo</bdi><hr>{}<bdi>baz</bdi>",
+	[]],
+["<bdo dir=rtl>foo[bar]baz</bdo>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<bdo dir=\"rtl\">foo</bdo><hr>{}<bdo dir=\"rtl\">baz</bdo>",
+	[]],
+["<blockquote>foo[bar]baz</blockquote>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<blockquote>foo<hr>{}baz</blockquote>",
+	[]],
+["<table><caption>foo[bar]baz</caption><tr><td>quz</table>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<table><caption>foo<hr>{}baz</caption><tbody><tr><td>quz</td></tr></tbody></table>",
+	[]],
+["<cite>foo[bar]baz</cite>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<cite>foo</cite><hr>{}<cite>baz</cite>",
+	[]],
+["<code>foo[bar]baz</code>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<code>foo</code><hr>{}<code>baz</code>",
+	[]],
+["<dl><dd>foo[bar]baz</dd></dl>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<dl><dd>foo<hr>{}baz</dd></dl>",
+	[]],
+["<del>foo[bar]baz</del>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<del>foo<hr>{}baz</del>",
+	[]],
+["<details>foo[bar]baz</details>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<details>foo<hr>{}baz</details>",
+	[]],
+["<dfn>foo[bar]baz</dfn>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<dfn>foo</dfn><hr>{}<dfn>baz</dfn>",
+	[]],
+["<div>foo[bar]baz</div>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<div>foo<hr>{}baz</div>",
+	[]],
+["<dl><dt>foo[bar]baz</dt></dl>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<dl><dt>foo<hr>{}baz</dt></dl>",
+	[]],
+["<em>foo[bar]baz</em>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<em>foo</em><hr>{}<em>baz</em>",
+	[]],
+["<figure><figcaption>foo[bar]baz</figcaption>quz</figure>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<figure><figcaption>foo<hr>{}baz</figcaption>quz</figure>",
+	[]],
+["<figure>foo[bar]baz</figure>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<figure>foo<hr>{}baz</figure>",
+	[]],
+["<footer>foo[bar]baz</footer>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<footer>foo<hr>{}baz</footer>",
+	[]],
+["<h1>foo[bar]baz</h1>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<h1>foo</h1><hr>{}<h1>baz</h1>",
+	[]],
+["<h2>foo[bar]baz</h2>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<h2>foo</h2><hr>{}<h2>baz</h2>",
+	[]],
+["<h3>foo[bar]baz</h3>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<h3>foo</h3><hr>{}<h3>baz</h3>",
+	[]],
+["<h4>foo[bar]baz</h4>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<h4>foo</h4><hr>{}<h4>baz</h4>",
+	[]],
+["<h5>foo[bar]baz</h5>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<h5>foo</h5><hr>{}<h5>baz</h5>",
+	[]],
+["<h6>foo[bar]baz</h6>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<h6>foo</h6><hr>{}<h6>baz</h6>",
+	[]],
+["<header>foo[bar]baz</header>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<header>foo<hr>{}baz</header>",
+	[]],
+["<hgroup>foo[bar]baz</hgroup>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<hgroup>foo</hgroup><hr>{}<hgroup>baz</hgroup>",
+	[]],
+["<hgroup><h1>foo[bar]baz</h1></hgroup>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<hgroup><h1>foo</h1></hgroup><hr>{}<hgroup><h1>baz</h1></hgroup>",
+	[]],
+["<i>foo[bar]baz</i>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<i>foo</i><hr>{}<i>baz</i>",
+	[]],
+["<ins>foo[bar]baz</ins>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<ins>foo<hr>{}baz</ins>",
+	[]],
+["<kbd>foo[bar]baz</kbd>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<kbd>foo</kbd><hr>{}<kbd>baz</kbd>",
+	[]],
+["<mark>foo[bar]baz</mark>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<mark>foo</mark><hr>{}<mark>baz</mark>",
+	[]],
+["<nav>foo[bar]baz</nav>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<nav>foo<hr>{}baz</nav>",
+	[]],
+["<ol><li>foo[bar]baz</li></ol>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<ol><li>foo<hr>{}baz</li></ol>",
+	[]],
+["<p>foo[bar]baz</p>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<p>foo</p><hr>{}<p>baz</p>",
+	[]],
+["<pre>foo[bar]baz</pre>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<pre>foo</pre><hr>{}<pre>baz</pre>",
+	[]],
+["<q>foo[bar]baz</q>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<q>foo</q><hr>{}<q>baz</q>",
+	[]],
+["<ruby>foo[bar]baz<rt>quz</rt></ruby>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<ruby>foo</ruby><hr>{}<ruby>baz<rt>quz</rt></ruby>",
+	[]],
+["<ruby>foo<rt>bar[baz]quz</rt></ruby>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<ruby>foo<rt>bar</rt></ruby><hr>{}<ruby><rt>quz</rt></ruby>",
+	[]],
+["<ruby>foo<rp>bar[baz]quz</rp><rt>qoz</rt><rp>qiz</rp></ruby>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<ruby>foo<rp>bar</rp></ruby><hr>{}<ruby><rp>quz</rp><rt>qoz</rt><rp>qiz</rp></ruby>",
+	[]],
+["<s>foo[bar]baz</s>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<s>foo</s><hr>{}<s>baz</s>",
+	[]],
+["<samp>foo[bar]baz</samp>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<samp>foo</samp><hr>{}<samp>baz</samp>",
+	[]],
+["<section>foo[bar]baz</section>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<section>foo<hr>{}baz</section>",
+	[]],
+["<small>foo[bar]baz</small>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<small>foo</small><hr>{}<small>baz</small>",
+	[]],
+["<span>foo[bar]baz</span>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<span>foo</span><hr>{}<span>baz</span>",
+	[]],
+["<strong>foo[bar]baz</strong>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<strong>foo</strong><hr>{}<strong>baz</strong>",
+	[]],
+["<sub>foo[bar]baz</sub>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<sub>foo</sub><hr>{}<sub>baz</sub>",
+	[]],
+["<sup>foo[bar]baz</sup>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<sup>foo</sup><hr>{}<sup>baz</sup>",
+	[]],
+["<table><tr><td>foo[bar]baz</td></table>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<table><tbody><tr><td>foo<hr>{}baz</td></tr></tbody></table>",
+	[]],
+["<table><tr><th>foo[bar]baz</th></table>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<table><tbody><tr><th>foo<hr>{}baz</th></tr></tbody></table>",
+	[]],
+["<u>foo[bar]baz</u>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<u>foo</u><hr>{}<u>baz</u>",
+	[]],
+["<ul><li>foo[bar]baz</li></ul>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<ul><li>foo<hr>{}baz</li></ul>",
+	[]],
+["<var>foo[bar]baz</var>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<var>foo</var><hr>{}<var>baz</var>",
+	[]],
+["<acronym>foo[bar]baz</acronym>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<acronym>foo</acronym><hr>{}<acronym>baz</acronym>",
+	[]],
+["<big>foo[bar]baz</big>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<big>foo</big><hr>{}<big>baz</big>",
+	[]],
+["<blink>foo[bar]baz</blink>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<blink>foo</blink><hr>{}<blink>baz</blink>",
+	[]],
+["<center>foo[bar]baz</center>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<center>foo<hr>{}baz</center>",
+	[]],
+["<dir>foo[bar]baz</dir>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<dir>foo</dir><hr>{}<dir>baz</dir>",
+	[]],
+["<dir><li>foo[bar]baz</li></dir>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<dir><li>foo<hr>{}baz</li></dir>",
+	[]],
+["<font>foo[bar]baz</font>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<font>foo</font><hr>{}<font>baz</font>",
+	[]],
+["<listing>foo[bar]baz</listing>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<listing>foo</listing><hr>{}<listing>baz</listing>",
+	[]],
+["<marquee>foo[bar]baz</marquee>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<marquee>foo</marquee><hr>{}<marquee>baz</marquee>",
+	[]],
+["<nobr>foo[bar]baz</nobr>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<nobr>foo</nobr><hr>{}<nobr>baz</nobr>",
+	[]],
+["<strike>foo[bar]baz</strike>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<strike>foo</strike><hr>{}<strike>baz</strike>",
+	[]],
+["<tt>foo[bar]baz</tt>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<tt>foo</tt><hr>{}<tt>baz</tt>",
+	[]],
+["<xmp>foo[bar]baz</xmp>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<xmp>foo</xmp><hr>{}<xmp>baz</xmp>",
+	[]],
+["<quasit>foo[bar]baz</quasit>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<quasit>foo<hr>{}baz</quasit>",
+	[]],
+["<table><tr><td>fo[o<td>b]ar</table>",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"<table><tbody><tr><td>fo<hr>{}</td><td>ar</td></tr></tbody></table>",
+	[]],
+["fo[o<span contenteditable=false>bar</span>b]az",
+	[["stylewithcss","false"],["inserthorizontalrule",""]],
+	"fo<hr>{}<span contenteditable=\"false\">bar</span>az",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"fooab<b>c</b>d{}bar",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"fooab<b>c</b>d{}baz",
+	[]],
+["foo<span style=color:#aBcDeF>[bar]</span>baz",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"fooab<b>c</b>d{}baz",
+	[]],
+["foo<span style=color:#aBcDeF>{bar}</span>baz",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"fooab<b>c</b>d{}baz",
+	[]],
+["foo{<span style=color:#aBcDeF>bar</span>}baz",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"fooab<b>c</b>d{}baz",
+	[]],
+["[foo<span style=color:#aBcDeF>bar]</span>baz",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"ab<b>c</b>d{}baz",
+	[]],
+["{foo<span style=color:#aBcDeF>bar}</span>baz",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"ab<b>c</b>d{}baz",
+	[]],
+["foo<span style=color:#aBcDeF>[bar</span>baz]",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"fooab<b>c</b>d{}",
+	[]],
+["foo<span style=color:#aBcDeF>{bar</span>baz}",
+	[["stylewithcss","false"],["inserthtml","ab<b>c</b>d"]],
+	"fooab<b>c</b>d{}",
+	[]],
+["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",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml",""]],
+	"foo[]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml","\u0000"]],
+	"foo[]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml","\u0007"]],
+	"foo\u0007{}baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml","<b>"]],
+	"foo<b></b>{}baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml","<b>abc"]],
+	"foo<b>abc</b>{}baz",
+	[]],
+["<p>foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml","<p>abc"]],
+	"<p>foo</p><p>abc</p>{}<p>baz</p>",
+	[]],
+["<p>foo[bar]baz",
+	[["stylewithcss","false"],["inserthtml","<li>abc"]],
+	"<p>foo</p><p>abc</p>{}<p>baz</p>",
+	[]],
+["<ol>{<li>foo</li>}<li>bar</ol>",
+	[["stylewithcss","false"],["inserthtml","<p>abc"]],
+	"<p>abc</p>{}<ol><li>bar</li></ol>",
+	[]],
+["<ol><li>foo</li>{<li>bar</li>}<li>baz</ol>",
+	[["stylewithcss","false"],["inserthtml","<p>abc"]],
+	"<ol><li>foo</li></ol><p>abc</p>{}<ol><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo]</li><li>bar</ol>",
+	[["stylewithcss","false"],["inserthtml","<p>abc"]],
+	"<ol><li><p>abc</p>{}</li><li>bar</li></ol>",
+	[]],
+["<xmp>f[o]o</xmp>",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<xmp>fabc{}o</xmp>",
+	[]],
+["<script>f[o]o</script>bar",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<script>fabc{}o</script>bar",
+	[]],
+["<script>f[o]o</script>bar",
+	[["stylewithcss","false"],["inserthtml","<b>abc</b>"]],
+	"<script>f<b>abc</b>{}o</script>bar",
+	[]],
+["<a>f[o]o</a>",
+	[["stylewithcss","false"],["inserthtml","<a>abc</a>"]],
+	"<a>f</a><a>abc</a>{}<a>o</a>",
+	[]],
+["<a href=.>f[o]o</a>",
+	[["stylewithcss","false"],["inserthtml","<a href=/>abc</a>"]],
+	"<a href=\".\">f</a><a href=\"/\">abc</a>{}<a href=\".\">o</a>",
+	[]],
+["<p>f[o]o",
+	[["stylewithcss","false"],["inserthtml","<hr>"]],
+	"<p>f</p><hr>{}<p>o</p>",
+	[]],
+["<b>f[o]o</b>",
+	[["stylewithcss","false"],["inserthtml","<hr>"]],
+	"<b>f</b><hr>{}<b>o</b>",
+	[]],
+["<h1>f[o]o</h1>",
+	[["stylewithcss","false"],["inserthtml","<h2>abc</h2>"]],
+	"<h1>f</h1><h2>abc</h2>{}<h1>o</h1>",
+	[]],
+["<table><tr><td>f[o]o</table>",
+	[["stylewithcss","false"],["inserthtml","<td>abc</td>"]],
+	"<table><tbody><tr><td>fabc{}o</td></tr></tbody></table>",
+	[]],
+["f[o]o",
+	[["stylewithcss","false"],["inserthtml","<td>abc</td>"]],
+	"fabc{}o",
+	[]],
+["<dl><dt>f[o]o<dd>bar</dl>",
+	[["stylewithcss","false"],["inserthtml","<dt>abc</dt>"]],
+	"<dl><dt>f</dt><dt>abc</dt>{}<dt>o</dt><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>b[a]r</dl>",
+	[["stylewithcss","false"],["inserthtml","<dt>abc</dt>"]],
+	"<dl><dt>foo</dt><dd>b</dd><dt>abc</dt>{}<dd>r</dd></dl>",
+	[]],
+["<dl><dt>f[o]o<dd>bar</dl>",
+	[["stylewithcss","false"],["inserthtml","<dd>abc</dd>"]],
+	"<dl><dt>f</dt><dd>abc</dd>{}<dt>o</dt><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>b[a]r</dl>",
+	[["stylewithcss","false"],["inserthtml","<dd>abc</dd>"]],
+	"<dl><dt>foo</dt><dd>b</dd><dd>abc</dd>{}<dd>r</dd></dl>",
+	[]],
+["f[o]o",
+	[["stylewithcss","false"],["inserthtml","<dt>abc</dt>"]],
+	"f<dl><dt>abc</dt>{}</dl>o",
+	[]],
+["<ol><li>f[o]o</ol>",
+	[["stylewithcss","false"],["inserthtml","<dt>abc</dt>"]],
+	"<ol><li>f<dl><dt>abc</dt>{}</dl>o</li></ol>",
+	[]],
+["f[o]o",
+	[["stylewithcss","false"],["inserthtml","<dd>abc</dd>"]],
+	"f<dl><dd>abc</dd>{}</dl>o",
+	[]],
+["<ol><li>f[o]o</ol>",
+	[["stylewithcss","false"],["inserthtml","<dd>abc</dd>"]],
+	"<ol><li>f<dl><dd>abc</dd>{}</dl>o</li></ol>",
+	[]],
+["<dir><li>f[o]o</dir>",
+	[["stylewithcss","false"],["inserthtml","<li>abc</li>"]],
+	"<dir><li>f</li><li>abc</li>{}<li>o</li></dir>",
+	[]],
+["<ol><li>f[o]o</ol>",
+	[["stylewithcss","false"],["inserthtml","<li>abc</li>"]],
+	"<ol><li>f</li><li>abc</li>{}<li>o</li></ol>",
+	[]],
+["<ul><li>f[o]o</ul>",
+	[["stylewithcss","false"],["inserthtml","<li>abc</li>"]],
+	"<ul><li>f</li><li>abc</li>{}<li>o</li></ul>",
+	[]],
+["<dir><li>f[o]o</dir>",
+	[["stylewithcss","false"],["inserthtml","<dir><li>abc</dir>"]],
+	"<dir><li>f<dir><li>abc</li></dir>{}o</li></dir>",
+	[]],
+["<ol><li>f[o]o</ol>",
+	[["stylewithcss","false"],["inserthtml","<dir><li>abc</dir>"]],
+	"<ol><li>f<dir><li>abc</li></dir>{}o</li></ol>",
+	[]],
+["<ul><li>f[o]o</ul>",
+	[["stylewithcss","false"],["inserthtml","<dir><li>abc</dir>"]],
+	"<ul><li>f<dir><li>abc</li></dir>{}o</li></ul>",
+	[]],
+["<dir><li>f[o]o</dir>",
+	[["stylewithcss","false"],["inserthtml","<ol><li>abc</ol>"]],
+	"<dir><li>f<ol><li>abc</li></ol>{}o</li></dir>",
+	[]],
+["<ol><li>f[o]o</ol>",
+	[["stylewithcss","false"],["inserthtml","<ol><li>abc</ol>"]],
+	"<ol><li>f<ol><li>abc</li></ol>{}o</li></ol>",
+	[]],
+["<ul><li>f[o]o</ul>",
+	[["stylewithcss","false"],["inserthtml","<ol><li>abc</ol>"]],
+	"<ul><li>f<ol><li>abc</li></ol>{}o</li></ul>",
+	[]],
+["<dir><li>f[o]o</dir>",
+	[["stylewithcss","false"],["inserthtml","<ul><li>abc</ul>"]],
+	"<dir><li>f<ul><li>abc</li></ul>{}o</li></dir>",
+	[]],
+["<ol><li>f[o]o</ol>",
+	[["stylewithcss","false"],["inserthtml","<ul><li>abc</ul>"]],
+	"<ol><li>f<ul><li>abc</li></ul>{}o</li></ol>",
+	[]],
+["<ul><li>f[o]o</ul>",
+	[["stylewithcss","false"],["inserthtml","<ul><li>abc</ul>"]],
+	"<ul><li>f<ul><li>abc</li></ul>{}o</li></ul>",
+	[]],
+["f[o]o",
+	[["stylewithcss","false"],["inserthtml","<li>abc</li>"]],
+	"f<p>abc</p>{}o",
+	[]],
+["<nobr>f[o]o</nobr>",
+	[["stylewithcss","false"],["inserthtml","<nobr>abc</nobr>"]],
+	"<nobr>f</nobr><nobr>abc</nobr>{}<nobr>o</nobr>",
+	[]],
+["f[o]o",
+	[["stylewithcss","false"],["inserthtml","<nobr>abc</nobr>"]],
+	"f<nobr>abc</nobr>{}o",
+	[]],
+["<font color=blue>foo[]bar</font>",
+	[["stylewithcss","false"],["inserthtml","<p>abc"]],
+	"<font color=\"blue\">foo</font><p><font color=\"#0000ff\">abc</font></p>{}<font color=\"blue\">bar</font>",
+	[]],
+["<span style=color:blue>foo[]bar</span>",
+	[["stylewithcss","false"],["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>",
+	[]],
+["<span style=font-variant:small-caps>foo[]bar</span>",
+	[["stylewithcss","false"],["inserthtml","<p>abc"]],
+	"<span style=\"font-variant:small-caps\">foo</span><p>abc</p>{}<span style=\"font-variant:small-caps\">bar</span>",
+	[]],
+["<p>[foo]</p>",
+	[["stylewithcss","false"],["inserthtml"," "]],
+	"<p> {}<br></p>",
+	[]],
+["<p>[foo]</p>",
+	[["stylewithcss","false"],["inserthtml","<span style=display:none></span>"]],
+	"<p><span style=\"display:none\"></span>{}<br></p>",
+	[]],
+["<p>[foo]</p>",
+	[["stylewithcss","false"],["inserthtml","<!--abc-->"]],
+	"<p><!--abc-->{}<br></p>",
+	[]],
+["<p>{}<br></p>",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<p>abc{}</p>",
+	[]],
+["<p>{}<br></p>",
+	[["stylewithcss","false"],["inserthtml","<!--abc-->"]],
+	"<p><!--abc-->{}<br></p>",
+	[]],
+["<p><!--foo-->{}<span><br></span><!--bar--></p>",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<p><!--foo-->abc{}<!--bar--></p>",
+	[]],
+["<p><!--foo-->{}<span><br></span><!--bar--></p>",
+	[["stylewithcss","false"],["inserthtml","<!--abc-->"]],
+	"<p><!--foo--><!--abc-->{}<!--bar--><br></p>",
+	[]],
+["<p>{}<span><!--foo--><br><!--bar--></span></p>",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<p>abc{}</p>",
+	[]],
+["<p>{}<span><!--foo--><br><!--bar--></span></p>",
+	[["stylewithcss","false"],["inserthtml","<!--abc-->"]],
+	"<p><!--abc-->{}<br></p>",
+	[]],
+["<p><br>{}</p>",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<p><br>abc{}</p>",
+	[]],
+["<p><br>{}</p>",
+	[["stylewithcss","false"],["inserthtml","<!--abc-->"]],
+	"<p><br><!--abc-->{}</p>",
+	[]],
+["<p><!--foo--><span><br></span>{}<!--bar--></p>",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<p><!--foo--><span><br></span>abc{}<!--bar--></p>",
+	[]],
+["<p><!--foo--><span><br></span>{}<!--bar--></p>",
+	[["stylewithcss","false"],["inserthtml","<!--abc-->"]],
+	"<p><!--foo--><span><br></span><!--abc-->{}<!--bar--></p>",
+	[]],
+["<p><span><!--foo--><br><!--bar--></span>{}</p>",
+	[["stylewithcss","false"],["inserthtml","abc"]],
+	"<p><span><!--foo--><br><!--bar--></span>abc{}</p>",
+	[]],
+["<p><span><!--foo--><br><!--bar--></span>{}</p>",
+	[["stylewithcss","false"],["inserthtml","<!--abc-->"]],
+	"<p><span><!--foo--><br><!--bar--></span><!--abc-->{}</p>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<span>foo</span><img src=\"/img/lion.svg\">{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<span>foo<img src=\"/img/lion.svg\">{}</span><span>bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["insertimage",""]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}baz",
+	[]],
+["foo<span style=color:#aBcDeF>[bar]</span>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span style=\"color:rgb(171, 205, 239)\"><img src=\"/img/lion.svg\">{}</span>baz",
+	[]],
+["foo<span style=color:#aBcDeF>{bar}</span>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span style=\"color:rgb(171, 205, 239)\"><img src=\"/img/lion.svg\">{}</span>baz",
+	[]],
+["foo{<span style=color:#aBcDeF>bar</span>}baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span style=\"color:rgb(171, 205, 239)\"><img src=\"/img/lion.svg\">{}</span>baz",
+	[]],
+["[foo<span style=color:#aBcDeF>bar]</span>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<img src=\"/img/lion.svg\">{}baz",
+	[]],
+["{foo<span style=color:#aBcDeF>bar}</span>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<img src=\"/img/lion.svg\">{}baz",
+	[]],
+["foo<span style=color:#aBcDeF>[bar</span>baz]",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span style=\"color:rgb(171, 205, 239)\"><img src=\"/img/lion.svg\">{}</span>",
+	[]],
+["foo<span style=color:#aBcDeF>{bar</span>baz}",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span style=\"color:rgb(171, 205, 239)\"><img src=\"/img/lion.svg\">{}</span>",
+	[]],
+["foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span style=\"color:rgb(171, 205, 239)\"><img src=\"/img/lion.svg\">{}</span>quz",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<b><img src=\"/img/lion.svg\">{}</b>baz",
+	[]],
+["foo<b>{bar}</b>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<b><img src=\"/img/lion.svg\">{}</b>baz",
+	[]],
+["foo{<b>bar</b>}baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<b><img src=\"/img/lion.svg\">{}</b>baz",
+	[]],
+["foo<span>[bar]</span>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span><img src=\"/img/lion.svg\">{}</span>baz",
+	[]],
+["foo<span>{bar}</span>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span><img src=\"/img/lion.svg\">{}</span>baz",
+	[]],
+["foo{<span>bar</span>}baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<span><img src=\"/img/lion.svg\">{}</span>baz",
+	[]],
+["<b>foo[bar</b><i>baz]quz</i>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<b>foo<img src=\"/img/lion.svg\">{}</b><i>quz</i>",
+	[]],
+["<p>foo</p><p>[bar]</p><p>baz</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo</p><p><img src=\"/img/lion.svg\">{}</p><p>baz</p>",
+	[]],
+["<p>foo</p><p>{bar}</p><p>baz</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo</p><p><img src=\"/img/lion.svg\">{}</p><p>baz</p>",
+	[]],
+["<p>foo</p>{<p>bar</p>}<p>baz</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo</p><img src=\"/img/lion.svg\">{}<p>baz</p>",
+	[]],
+["<p>foo[bar<p>baz]quz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}quz</p>",
+	[]],
+["<p>foo[bar<div>baz]quz</div>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}quz</p>",
+	[]],
+["<p>foo[bar<h1>baz]quz</h1>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}quz</p>",
+	[]],
+["<div>foo[bar</div><p>baz]quz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<div>foo<img src=\"/img/lion.svg\">{}quz</div>",
+	[]],
+["<blockquote>foo[bar</blockquote><pre>baz]quz</pre>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<blockquote>foo<img src=\"/img/lion.svg\">{}quz</blockquote>",
+	[]],
+["<p><b>foo[bar</b><p>baz]quz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p><b>foo</b><img src=\"/img/lion.svg\">{}quz</p>",
+	[]],
+["<div><p>foo[bar</div><p>baz]quz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<div><p>foo<img src=\"/img/lion.svg\">{}quz</p></div>",
+	[]],
+["<p>foo[bar<blockquote><p>baz]quz<p>qoz</blockquote",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}quz</p><blockquote><p>qoz</p></blockquote>",
+	[]],
+["<p>foo[bar<p style=color:blue>baz]quz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}<font color=\"#0000ff\">quz</font></p>",
+	[]],
+["<p>foo[bar<p><b>baz]quz</b>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}<b>quz</b></p>",
+	[]],
+["<div><p>foo<p>[bar<p>baz]</div>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<div><p>foo</p><p><img src=\"/img/lion.svg\">{}</p></div>",
+	[]],
+["foo[<br>]bar",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar",
+	[]],
+["<p>foo[</p><p>]bar</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}bar</p>",
+	[]],
+["<p>foo[</p><p>]bar<br>baz</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}bar<br>baz</p>",
+	[]],
+["foo[<p>]bar</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar",
+	[]],
+["foo[<p>]bar<br>baz</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar<p>baz</p>",
+	[]],
+["foo[<p>]bar</p>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar<br>baz",
+	[]],
+["<p>foo[</p>]bar",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}bar</p>",
+	[]],
+["<p>foo[</p>]bar<br>baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}bar</p>baz",
+	[]],
+["<p>foo[</p>]bar<p>baz</p>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<p>foo<img src=\"/img/lion.svg\">{}bar</p><p>baz</p>",
+	[]],
+["foo[<div><p>]bar</div>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar",
+	[]],
+["<div><p>foo[</p></div>]bar",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<div><p>foo<img src=\"/img/lion.svg\">{}bar</p></div>",
+	[]],
+["foo[<div><p>]bar</p>baz</div>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar<div>baz</div>",
+	[]],
+["foo[<div>]bar<p>baz</p></div>",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"foo<img src=\"/img/lion.svg\">{}bar<div><p>baz</p></div>",
+	[]],
+["<div><p>foo</p>bar[</div>]baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<div><p>foo</p>bar<img src=\"/img/lion.svg\">{}baz</div>",
+	[]],
+["<div>foo<p>bar[</p></div>]baz",
+	[["stylewithcss","false"],["insertimage","/img/lion.svg"]],
+	"<div>foo<p>bar<img src=\"/img/lion.svg\">{}baz</p></div>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"foo<br>{}baz",
+	[]],
+["fo[o<table><tr><td>b]ar</table>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"fo<br>{}<br><table><tbody><tr><td>ar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>[foo<td>bar]<tr><td>baz<td>quz</table>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<table><tbody><tr><td><br>{}<br></td><td><br></td></tr><tr><td>baz</td><td>quz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<tr><td>baz<td>quz</table>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<table><tbody>{}<tr><td><br></td><td><br></td></tr><tr><td>baz</td><td>quz</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>fo[o</table>b]ar",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<table><tbody><tr><td>fo<br>{}<br></td></tr></tbody></table>ar",
+	[]],
+["<table><tr><td>fo[o<td>b]ar<td>baz</table>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<table><tbody><tr><td>fo<br>{}<br></td><td>ar</td><td>baz</td></tr></tbody></table>",
+	[]],
+["{<table><tr><td>foo</table>}",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<br>{}<br>",
+	[]],
+["<table><tr><td>[foo]</table>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<table><tbody><tr><td><br>{}<br></td></tr></tbody></table>",
+	[]],
+["<ol><li>[foo]<li>bar</ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li><br>{}<br></li><li>bar</li></ol>",
+	[]],
+["<ol><li>f[o]o<li>bar</ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li>f<br>{}o</li><li>bar</li></ol>",
+	[]],
+["[]foo",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<br>{}foo",
+	[]],
+["foo[]",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"foo<br>{}<br>",
+	[]],
+["<span>foo[]</span>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<span>foo<br>{}<br></span>",
+	[]],
+["foo[]<br>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"foo<br>{}<br>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"foo<br>{}bar",
+	[]],
+["<address>[]foo</address>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<address><br>{}foo</address>",
+	[]],
+["<address>foo[]</address>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<address>foo<br>{}<br></address>",
+	[]],
+["<address>foo[]<br></address>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<address>foo<br>{}<br></address>",
+	[]],
+["<address>foo[]bar</address>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<address>foo<br>{}bar</address>",
+	[]],
+["<div>[]foo</div>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<div><br>{}foo</div>",
+	[]],
+["<div>foo[]</div>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<div>foo<br>{}<br></div>",
+	[]],
+["<div>foo[]<br></div>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<div>foo<br>{}<br></div>",
+	[]],
+["<div>foo[]bar</div>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<div>foo<br>{}bar</div>",
+	[]],
+["<dl><dt>[]foo<dd>bar</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt><br>{}foo</dt><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo[]<dd>bar</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo<br>{}<br></dt><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo[]<br><dd>bar</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo<br>{}<br></dt><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo[]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo<br>{}bar</dt><dd>baz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>[]bar</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo</dt><dd><br>{}bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[]</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo</dt><dd>bar<br>{}<br></dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[]<br></dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo</dt><dd>bar<br>{}<br></dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[]baz</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo</dt><dd>bar<br>{}baz</dd></dl>",
+	[]],
+["<h1>[]foo</h1>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<h1><br>{}foo</h1>",
+	[]],
+["<h1>foo[]</h1>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<h1>foo<br>{}<br></h1>",
+	[]],
+["<h1>foo[]<br></h1>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<h1>foo<br>{}<br></h1>",
+	[]],
+["<h1>foo[]bar</h1>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<h1>foo<br>{}bar</h1>",
+	[]],
+["<ol><li>[]foo</ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li><br>{}foo</li></ol>",
+	[]],
+["<ol><li>foo[]</ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li>foo<br>{}<br></li></ol>",
+	[]],
+["<ol><li>foo[]<br></ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li>foo<br>{}<br></li></ol>",
+	[]],
+["<ol><li>foo[]bar</ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li>foo<br>{}bar</li></ol>",
+	[]],
+["<p>[]foo</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p><br>{}foo</p>",
+	[]],
+["<p>foo[]</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<br>{}<br></p>",
+	[]],
+["<p>foo[]<br></p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<br>{}<br></p>",
+	[]],
+["<p>foo[]bar</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<br>{}bar</p>",
+	[]],
+["<pre>[]foo</pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre><br>{}foo</pre>",
+	[]],
+["<pre>foo[]</pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo<br>{}<br></pre>",
+	[]],
+["<pre>foo[]<br></pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo<br>{}<br></pre>",
+	[]],
+["<pre>foo[]bar</pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo<br>{}bar</pre>",
+	[]],
+["<pre>foo[]<br><br></pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo<br>{}<br><br></pre>",
+	[]],
+["<pre>foo<br>{}<br></pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo<br><br>{}<br></pre>",
+	[]],
+["<pre>foo&#10;[]</pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo\n<br>{}<br></pre>",
+	[]],
+["<pre>foo[]&#10;</pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo<br>{}\n</pre>",
+	[]],
+["<pre>foo&#10;[]&#10;</pre>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<pre>foo\n<br>{}\n</pre>",
+	[]],
+["<xmp>foo[]bar</xmp>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<xmp>foo[]bar</xmp>",
+	[]],
+["<script>foo[]bar</script>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<script>foo[]bar</script>baz",
+	[]],
+["<listing>foo[]bar</listing>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<listing>foo<br>{}bar</listing>",
+	[]],
+["<ol><li>{}<br></li></ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li><br>{}<br></li></ol>",
+	[]],
+["foo<ol><li>{}<br></li></ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"foo<ol><li><br>{}<br></li></ol>",
+	[]],
+["<ol><li>{}<br></li></ol>foo",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li><br>{}<br></li></ol>foo",
+	[]],
+["<ol><li>foo<li>{}<br></ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li>foo</li><li><br>{}<br></li></ol>",
+	[]],
+["<ol><li>{}<br><li>bar</ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li><br>{}<br></li><li>bar</li></ol>",
+	[]],
+["<ol><li>foo</li><ul><li>{}<br></ul></ol>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ol><li>foo</li><ul><li><br>{}<br></li></ul></ol>",
+	[]],
+["<dl><dt>{}<br></dt></dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt><br>{}<br></dt></dl>",
+	[]],
+["<dl><dt>foo<dd>{}<br></dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo</dt><dd><br>{}<br></dd></dl>",
+	[]],
+["<dl><dt>{}<br><dd>bar</dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt><br>{}<br></dt><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar<dl><dt>{}<br><dd>baz</dl></dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo</dt><dd>bar<dl><dt><br>{}<br></dt><dd>baz</dd></dl></dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar<dl><dt>baz<dd>{}<br></dl></dl>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<dl><dt>foo</dt><dd>bar<dl><dt>baz</dt><dd><br>{}<br></dd></dl></dd></dl>",
+	[]],
+["<h1>foo[bar</h1><p>baz]quz</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<h1>foo<br>{}quz</h1>",
+	[]],
+["<p>foo[bar</p><h1>baz]quz</h1>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<br>{}quz</p>",
+	[]],
+["<p>foo</p>{}<br>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo</p><br>{}<br>",
+	[]],
+["{}<br><p>foo</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<br>{}<br><p>foo</p>",
+	[]],
+["<p>foo</p>{}<br><h1>bar</h1>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo</p><br>{}<br><h1>bar</h1>",
+	[]],
+["<h1>foo</h1>{}<br><p>bar</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<h1>foo</h1><br>{}<br><p>bar</p>",
+	[]],
+["<h1>foo</h1>{}<br><h2>bar</h2>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<h1>foo</h1><br>{}<br><h2>bar</h2>",
+	[]],
+["<p>foo</p><h1>[bar]</h1><p>baz</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo</p><h1><br>{}<br></h1><p>baz</p>",
+	[]],
+["<p>foo</p>{<h1>bar</h1>}<p>baz</p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo</p><br>{}<br><p>baz</p>",
+	[]],
+["<table><tr><td>foo[]bar</table>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<table><tbody><tr><td>foo<br>{}bar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td><p>foo[]bar</table>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<table><tbody><tr><td><p>foo<br>{}bar</p></td></tr></tbody></table>",
+	[]],
+["<blockquote>[]foo</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote><br>{}foo</blockquote>",
+	[]],
+["<blockquote>foo[]</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote>foo<br>{}<br></blockquote>",
+	[]],
+["<blockquote>foo[]<br></blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote>foo<br>{}<br></blockquote>",
+	[]],
+["<blockquote>foo[]bar</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote>foo<br>{}bar</blockquote>",
+	[]],
+["<blockquote><p>[]foo</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote><p><br>{}foo</p></blockquote>",
+	[]],
+["<blockquote><p>foo[]</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote><p>foo<br>{}<br></p></blockquote>",
+	[]],
+["<blockquote><p>foo[]bar</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote><p>foo<br>{}bar</p></blockquote>",
+	[]],
+["<blockquote><p>foo[]<p>bar</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote><p>foo<br>{}<br></p><p>bar</p></blockquote>",
+	[]],
+["<blockquote><p>foo[]bar<p>baz</blockquote>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<blockquote><p>foo<br>{}bar</p><p>baz</p></blockquote>",
+	[]],
+["<span>foo[]bar</span>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<span>foo<br>{}bar</span>",
+	[]],
+["<span>foo[]bar</span>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<span>foo<br>{}bar</span>baz",
+	[]],
+["<b>foo[]bar</b>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<b>foo<br>{}bar</b>",
+	[]],
+["<b>foo[]bar</b>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<b>foo<br>{}bar</b>baz",
+	[]],
+["<b>foo[]</b>bar",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<b>foo<br>{}</b>bar",
+	[]],
+["foo<b>[]bar</b>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"foo<b><br>{}bar</b>",
+	[]],
+["<b>foo[]</b><i>bar</i>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<b>foo<br>{}</b><i>bar</i>",
+	[]],
+["<b id=x class=y>foo[]bar</b>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<b id=\"x\" class=\"y\">foo<br>{}bar</b>",
+	[]],
+["<i><b>foo[]bar</b>baz</i>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<i><b>foo<br>{}bar</b>baz</i>",
+	[]],
+["<p><b>foo[]bar</b></p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p><b>foo<br>{}bar</b></p>",
+	[]],
+["<p><b>[]foo</b></p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p><b><br>{}foo</b></p>",
+	[]],
+["<p><b id=x class=y>foo[]bar</b></p>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p><b id=\"x\" class=\"y\">foo<br>{}bar</b></p>",
+	[]],
+["<div><b>foo[]bar</b></div>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<div><b>foo<br>{}bar</b></div>",
+	[]],
+["<a href=foo>foo[]bar</a>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<a href=\"foo\">foo<br>{}bar</a>",
+	[]],
+["<a href=foo>foo[]bar</a>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<a href=\"foo\">foo<br>{}bar</a>baz",
+	[]],
+["<a href=foo>foo[]</a>bar",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<a href=\"foo\">foo<br>{}</a>bar",
+	[]],
+["foo<a href=foo>[]bar</a>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"foo<a href=\"foo\"><br>{}bar</a>",
+	[]],
+["<p>foo[]<!--bar-->",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<br>{}<br><!--bar--></p>",
+	[]],
+["<p><!--foo-->[]bar",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p><!--foo--><br>{}bar</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar]</span>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\"><br>{}</span>baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar}</span>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\"><br>{}</span>baz</p>",
+	[]],
+["<p>foo{<span style=color:#aBcDeF>bar</span>}baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\"><br>{}</span>baz</p>",
+	[]],
+["<p>[foo<span style=color:#aBcDeF>bar]</span>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p><br>{}baz</p>",
+	[]],
+["<p>{foo<span style=color:#aBcDeF>bar}</span>baz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p><br>{}baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span>baz]",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\"><br>{}<br></span></p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar</span>baz}",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\"><br>{}<br></span></p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\"><br>{}</span>quz</p>",
+	[]],
+["<ul contenteditable><li>{}<br></ul>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ul contenteditable=\"\"><li><br>{}<br></li></ul>",
+	[]],
+["<ul contenteditable><li>foo[]</ul>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<ul contenteditable=\"\"><li>foo<br>{}<br></li></ul>",
+	[]],
+["<div contenteditable=false><ul contenteditable><li>{}<br></ul></div>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<div contenteditable=\"false\"><ul contenteditable=\"\"><li><br>{}<br></li></ul></div>",
+	[]],
+["<div contenteditable=false><ul contenteditable><li>foo[]</ul></div>",
+	[["stylewithcss","false"],["insertlinebreak",""]],
+	"<div contenteditable=\"false\"><ul contenteditable=\"\"><li>foo<br>{}<br></li></ul></div>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo[]bar</li></ol>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo[bar]baz</li></ol>",
+	[]],
+["foo<br>[bar]",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>[bar]</li></ol>",
+	[]],
+["f[oo<br>b]ar<br>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>f[oo</li><li>b]ar</li></ol>baz",
+	[]],
+["<p>[foo]<br>bar</p>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><p>bar</p>",
+	[]],
+["[foo<ol><li>bar]</ol>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><li>bar]</li></ol>baz",
+	[]],
+["foo<ol><li>[bar</ol>baz]",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>[bar</li><li>baz]</li></ol>",
+	[]],
+["[foo<ul><li>bar]</ul>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><li>bar]</li></ol>baz",
+	[]],
+["foo<ul><li>[bar</ul>baz]",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>[bar</li><li>baz]</li></ol>",
+	[]],
+["foo<ul><li>[bar</ul><ol><li>baz]</ol>quz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>[bar</li><li>baz]</li></ol>quz",
+	[]],
+["foo<ol><li>[bar</ol><ul><li>baz]</ul>quz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>[bar</li><li>baz]</li></ol>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<table><tbody><tr><td>foo</td><td><ol><li>b[a]r</li></ol></td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>fo[o<td>b]ar<td>baz</table>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<table><tbody><tr><td><ol><li>fo[o</li></ol></td><td><ol><li>b]ar</li></ol></td><td>baz</td></tr></tbody></table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</li></ol>",
+	[]],
+["<p>foo<p>[bar]<p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>foo</p><ol><li>[bar]</li></ol><p>baz</p>",
+	[]],
+["<p>foo<blockquote>[bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>foo</p><blockquote><ol><li>[bar]</li></ol></blockquote><p>baz</p>",
+	[]],
+["<dl><dt>foo<dd>[bar]<dt>baz<dd>quz</dl>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<dl><dt>foo</dt><dd><ol><li>[bar]</li></ol></dd><dt>baz</dt><dd>quz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar<dt>[baz]<dd>quz</dl>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<dl><dt>foo</dt><dd>bar</dd><dt><ol><li>[baz]</li></ol></dt><dd>quz</dd></dl>",
+	[]],
+["<p>[foo<p>bar]<p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><li>bar]</li></ol><p>baz</p>",
+	[]],
+["<p>[foo<blockquote>bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar]</li></ol></ol><p>baz</p>",
+	[]],
+["<dl><dt>[foo<dd>bar]<dt>baz<dd>quz</dl>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<dl><dt><ol><li>[foo</li></ol></dt><dd><ol><li>bar]</li></ol></dd><dt>baz</dt><dd>quz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>[bar<dt>baz]<dd>quz</dl>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<dl><dt>foo</dt><dd><ol><li>[bar</li></ol></dd><dt><ol><li>baz]</li></ol></dt><dd>quz</dd></dl>",
+	[]],
+["<p>[foo<blockquote><p>bar]<p>baz</blockquote>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar]</li></ol></ol><blockquote><p>baz</p></blockquote>",
+	[]],
+["<ol><li>foo<li>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li></ol><p>[bar]</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</ol>[bar]",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><li>[bar]</li></ol>",
+	[]],
+["[foo]<ol><li>bar</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li><li>bar</li></ol>",
+	[]],
+["<ol><li>foo</ol>[bar]<ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><li>[bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><ol><li>[foo]</ol></ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol>",
+	[]],
+["<ol><li>[foo]<br>bar<li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>[foo]<br>bar</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<br>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>foo<br>[bar]</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li><div>[foo]</div>bar<li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<div>[foo]</div><p>bar</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><li>[bar]</li><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol><li>[baz]</li><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><li>[bar]</li><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol><li>[baz]</li><li>quz</li></ol>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>[foo]</p><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo]</li><ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>[foo]</p><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]<ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li></ol><p>[bar]</p><ol><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]</li><ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li></ol><p>[bar]</p><ol><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo<ol><li>bar</li><li>baz</li></ol></li></ol><p>[quz]</p>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li><li>baz</li></ol></ol><p>[quz]</p>",
+	[]],
+["<ol><li>foo<li>[bar<li>baz]</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li></ol><p>[bar</p><p>baz]</p>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>[foo</p><ol><li>bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>b[ar</ol><li>b]az</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><li>b[ar</li></ol><p>b]az</p>",
+	[]],
+["<ol><li>[foo<ol><li>bar</ol><li>baz]</ol><p>extra",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>[foo</p><ol><li>bar</li></ol><p>baz]</p><p>extra</p>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>[foo]</p><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><li>[bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar</ol>[baz]</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol></ol><p>[baz]</p>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>[foo</p><ol><li>bar]</li><li>baz</li></ol>",
+	[]],
+["<ul><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li></ul><ol><li>[bar]</li></ol><ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo</ul>[bar]",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li></ul><ol><li>[bar]</li></ol>",
+	[]],
+["[foo]<ul><li>bar</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><ul><li>bar</li></ul>",
+	[]],
+["<ul><li>foo</ul>[bar]<ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li></ul><ol><li>[bar]</li></ol><ul><li>baz</li></ul>",
+	[]],
+["<ul><ul><li>[foo]</ul></ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><ol><li>[foo]</li></ol></ol>",
+	[]],
+["<ul><li>[foo]<br>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]<br>bar</li></ol><ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<br>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo<br>[bar]</li></ol><ul><li>baz</li></ul>",
+	[]],
+["<ul><li><div>[foo]</div>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li><div>[foo]</div>bar</li></ol><ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>[bar]<li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li><ol><li>[bar]</li></ol><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>bar<li>[baz]</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li></ul><ol><li>[baz]</li></ol><li>quz</li></ul>",
+	[]],
+["<ul><li>foo</li><ul><li>[bar]<li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li><ol><li>[bar]</li></ol><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo</li><ul><li>bar<li>[baz]</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li></ul><ol><li>[baz]</li></ol><li>quz</li></ul>",
+	[]],
+["<ul><li>[foo]<ul><li>bar</ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><ul><ul><li>bar</li></ul><li>baz</li></ul>",
+	[]],
+["<ul><li>[foo]</li><ul><li>bar</ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><ul><ul><li>bar</li></ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<li>[bar]<ul><li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li></ul><ol><li>[bar]</li></ol><ul><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo<li>[bar]</li><ul><li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li></ul><ol><li>[bar]</li></ol><ul><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>bar<li>baz</ul><li>[quz]</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo<ul><li>bar</li><li>baz</li></ul></li></ul><ol><li>[quz]</li></ol>",
+	[]],
+["<ul><li>foo</li><ul><li>bar<li>baz</ul><li>[quz]</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li><li>baz</li></ul></ul><ol><li>[quz]</li></ol>",
+	[]],
+["<ul><li>foo<li>[bar<li>baz]</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li></ul><ol><li>[bar</li><li>baz]</li></ol>",
+	[]],
+["<ul><li>[foo<ul><li>bar]</ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar]</li></ol></ol><ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>b[ar</ul><li>b]az</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li></ul><ol><ol><li>b[ar</li></ol><li>b]az</li></ol>",
+	[]],
+["<ul><li>[foo<ul><li>bar</ul><li>baz]</ul><p>extra",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar</li></ol><li>baz]</li></ol><p>extra</p>",
+	[]],
+["<ul><li>[foo]<ul><li>bar</ul>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><ul><ul><li>bar</li></ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>[bar]</ul>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li><ol><li>[bar]</li></ol><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>bar</ul>[baz]</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li></ul></ul><ol><li>[baz]</li></ol>",
+	[]],
+["<ul><li>[foo<ul><li>bar]</ul>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar]</li></ol></ol><ul><li>baz</li></ul>",
+	[]],
+["foo<ol><li>bar</ol><ul><li>[baz]</ul>quz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>bar</li><li>[baz]</li></ol>quz",
+	[]],
+["foo<ol><li>bar</ol><ul><li>[baz</ul>quz]",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>bar</li><li>[baz</li><li>quz]</li></ol>",
+	[]],
+["foo<ul><li>[bar]</ul><ol><li>baz</ol>quz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<ol><li>[bar]</li><li>baz</li></ol>quz",
+	[]],
+["[foo<ul><li>bar]</ul><ol><li>baz</ol>quz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><li>bar]</li><li>baz</li></ol>quz",
+	[]],
+["[foo]<blockquote>bar</blockquote>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><blockquote>bar</blockquote>baz",
+	[]],
+["foo<blockquote>[bar]</blockquote>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<blockquote><ol><li>[bar]</li></ol></blockquote>baz",
+	[]],
+["[foo<blockquote>bar]</blockquote>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar]</li></ol></ol>baz",
+	[]],
+["<ol><li>foo</ol><blockquote>[bar]</blockquote>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><ol><li>[bar]</li></ol></ol>baz",
+	[]],
+["[foo]<blockquote><ol><li>bar</ol></blockquote>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><blockquote><ol><li>bar</li></ol></blockquote>baz",
+	[]],
+["foo<blockquote>[bar]<br>baz</blockquote>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"foo<blockquote><ol><li>[bar]</li></ol>baz</blockquote>",
+	[]],
+["[foo<blockquote>bar]<br>baz</blockquote>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar]</li></ol></ol><blockquote>baz</blockquote>",
+	[]],
+["<ol><li>foo</ol><blockquote>[bar]<br>baz</blockquote>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><ol><li>[bar]</li></ol></ol><blockquote>baz</blockquote>",
+	[]],
+["<p>[foo]<blockquote><p>bar</blockquote><p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><blockquote><p>bar</p></blockquote><p>baz</p>",
+	[]],
+["<p>foo<blockquote><p>[bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<p>foo</p><blockquote><ol><li>[bar]</li></ol></blockquote><p>baz</p>",
+	[]],
+["<p>[foo<blockquote><p>bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo</li><ol><li>bar]</li></ol></ol><p>baz</p>",
+	[]],
+["<ol><li>foo</ol><blockquote><p>[bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>foo</li><ol><li>[bar]</li></ol></ol><p>baz</p>",
+	[]],
+["<ul id=abc><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul id=\"abc\"><li>foo</li></ul><ol><li>[bar]</li></ol><ul><li>baz</li></ul>",
+	[]],
+["<ul style=color:blue><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul style=\"color:rgb(0, 0, 255)\"><li>foo</li></ul><ol><li><font color=\"#0000ff\">[bar]</font></li></ol><ul style=\"color:rgb(0, 0, 255)\"><li>baz</li></ul>",
+	[]],
+["<ul style=text-indent:1em><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul style=\"text-indent:1em\"><li>foo</li></ul><ol><li>[bar]</li></ol><ul style=\"text-indent:1em\"><li>baz</li></ul>",
+	[]],
+["<ul id=abc><li>[foo]<li>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><ul id=\"abc\"><li>bar</li><li>baz</li></ul>",
+	[]],
+["<ul style=color:blue><li>[foo]<li>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li><font color=\"#0000ff\">[foo]</font></li></ol><ul style=\"color:rgb(0, 0, 255)\"><li>bar</li><li>baz</li></ul>",
+	[]],
+["<ul style=text-indent:1em><li>[foo]<li>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ol><li>[foo]</li></ol><ul style=\"text-indent:1em\"><li>bar</li><li>baz</li></ul>",
+	[]],
+["<ul id=abc><li>foo<li>bar<li>[baz]</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul id=\"abc\"><li>foo</li><li>bar</li></ul><ol><li>[baz]</li></ol>",
+	[]],
+["<ul style=color:blue><li>foo<li>bar<li>[baz]</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul style=\"color:rgb(0, 0, 255)\"><li>foo</li><li>bar</li></ul><ol><li><font color=\"#0000ff\">[baz]</font></li></ol>",
+	[]],
+["<ul style=text-indent:1em><li>foo<li>bar<li>[baz]</ul>",
+	[["stylewithcss","false"],["insertorderedlist",""]],
+	"<ul style=\"text-indent:1em\"><li>foo</li><li>bar</li></ul><ol><li>[baz]</li></ol>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}baz</p>",
+	[]],
+["fo[o<table><tr><td>b]ar</table>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>fo</p><p>{}<br></p><table><tbody><tr><td>ar</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>[foo<td>bar]<tr><td>baz<td>quz</table>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<table><tbody><tr><td><p><br></p><p>{}<br></p></td><td><br></td></tr><tr><td>baz</td><td>quz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<tr><td>baz<td>quz</table>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<table><tbody>{}<tr><td><br></td><td><br></td></tr><tr><td>baz</td><td>quz</td></tr></tbody></table>",
+	[]],
+["<table><tr><td>fo[o</table>b]ar",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<table><tbody><tr><td><p>fo</p><p>{}<br></p></td></tr></tbody></table>ar",
+	[]],
+["<table><tr><td>fo[o<td>b]ar<td>baz</table>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<table><tbody><tr><td><p>fo</p><p>{}<br></p></td><td>ar</td><td>baz</td></tr></tbody></table>",
+	[]],
+["{<table><tr><td>foo</table>}",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><br></p><p>{}<br></p>",
+	[]],
+["<table><tr><td>[foo]</table>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<table><tbody><tr><td><p><br></p><p>{}<br></p></td></tr></tbody></table>",
+	[]],
+["<ol><li>[foo]<li>bar</ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>{}<br></p><ol><li>bar</li></ol>",
+	[]],
+["<ol><li>f[o]o<li>bar</ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ol><li>f</li><li>{}o</li><li>bar</li></ol>",
+	[]],
+["[]foo",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><br></p><p>{}foo</p>",
+	[]],
+["foo[]",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<br></p>",
+	[]],
+["<span>foo[]</span>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><span>foo</span></p><p>{}<br></p>",
+	[]],
+["foo[]<br>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<br></p>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}bar</p>",
+	[]],
+["<address>[]foo</address>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<address><br>{}foo</address>",
+	[]],
+["<address>foo[]</address>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<address>foo<br>{}<br></address>",
+	[]],
+["<address>foo[]<br></address>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<address>foo<br>{}<br></address>",
+	[]],
+["<address>foo[]bar</address>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<address>foo<br>{}bar</address>",
+	[]],
+["<div>[]foo</div>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div><br></div><div>{}foo</div>",
+	[]],
+["<div>foo[]</div>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div>foo</div><div>{}<br></div>",
+	[]],
+["<div>foo[]<br></div>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div>foo</div><div>{}<br></div>",
+	[]],
+["<div>foo[]bar</div>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div>foo</div><div>{}bar</div>",
+	[]],
+["<dl><dt>[]foo<dd>bar</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt><br></dt><dt>{}foo</dt><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo[]<dd>bar</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd>{}<br></dd><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo[]<br><dd>bar</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd>{}<br></dd><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo[]bar<dd>baz</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dt>{}bar</dt><dd>baz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>[]bar</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd><br></dd><dd>{}bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[]</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd>bar</dd><dt>{}<br></dt></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[]<br></dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd>bar</dd><dt>{}<br></dt></dl>",
+	[]],
+["<dl><dt>foo<dd>bar[]baz</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd>bar</dd><dd>{}baz</dd></dl>",
+	[]],
+["<h1>[]foo</h1>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<h1><br></h1><h1>{}foo</h1>",
+	[]],
+["<h1>foo[]</h1>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<h1>foo</h1><p>{}<br></p>",
+	[]],
+["<h1>foo[]<br></h1>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<h1>foo</h1><p>{}<br></p>",
+	[]],
+["<h1>foo[]bar</h1>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<h1>foo</h1><h1>{}bar</h1>",
+	[]],
+["<ol><li>[]foo</ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ol><li><br></li><li>{}foo</li></ol>",
+	[]],
+["<ol><li>foo[]</ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ol><li>foo</li><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo[]<br></ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ol><li>foo</li><li>{}<br></li></ol>",
+	[]],
+["<ol><li>foo[]bar</ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ol><li>foo</li><li>{}bar</li></ol>",
+	[]],
+["<p>[]foo</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><br></p><p>{}foo</p>",
+	[]],
+["<p>foo[]</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<br></p>",
+	[]],
+["<p>foo[]<br></p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<br></p>",
+	[]],
+["<p>foo[]bar</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}bar</p>",
+	[]],
+["<pre>[]foo</pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre><br>{}foo</pre>",
+	[]],
+["<pre>foo[]</pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo<br>{}<br></pre>",
+	[]],
+["<pre>foo[]<br></pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo<br>{}<br></pre>",
+	[]],
+["<pre>foo[]bar</pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo<br>{}bar</pre>",
+	[]],
+["<pre>foo[]<br><br></pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo<br>{}<br><br></pre>",
+	[]],
+["<pre>foo<br>{}<br></pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo<br><br>{}<br></pre>",
+	[]],
+["<pre>foo&#10;[]</pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo\n<br>{}<br></pre>",
+	[]],
+["<pre>foo[]&#10;</pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo<br>{}\n</pre>",
+	[]],
+["<pre>foo&#10;[]&#10;</pre>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<pre>foo\n<br>{}\n</pre>",
+	[]],
+["<xmp>foo[]bar</xmp>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<xmp>foo</xmp><xmp>{}bar</xmp>",
+	[]],
+["<script>foo[]bar</script>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><script>foo</script><br></p><p>{}<script>bar</script>baz</p>",
+	[]],
+["<div style=display:none>foo[]bar</div>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div style=\"display:none\">foo<br></div><div style=\"display:none\">{}bar<br></div>baz",
+	[]],
+["<listing>foo[]bar</listing>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<listing>foo<br>{}bar</listing>",
+	[]],
+["<ol><li>{}<br></li></ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>{}<br></p>",
+	[]],
+["foo<ol><li>{}<br></li></ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"foo<p>{}<br></p>",
+	[]],
+["<ol><li>{}<br></li></ol>foo",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>{}<br></p>foo",
+	[]],
+["<ol><li>foo<li>{}<br></ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ol><li>foo</li></ol><p>{}<br></p>",
+	[]],
+["<ol><li>{}<br><li>bar</ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>{}<br></p><ol><li>bar</li></ol>",
+	[]],
+["<ol><li>foo</li><ul><li>{}<br></ul></ol>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ol><li>foo</li><li>{}<br></li></ol>",
+	[]],
+["<dl><dt>{}<br></dt></dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>{}<br></p>",
+	[]],
+["<dl><dt>foo<dd>{}<br></dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt></dl><p>{}<br></p>",
+	[]],
+["<dl><dt>{}<br><dd>bar</dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>{}<br></p><dl><dd>bar</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar<dl><dt>{}<br><dd>baz</dl></dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd>bar</dd><dt>{}<br></dt><dd><dl><dd>baz</dd></dl></dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar<dl><dt>baz<dd>{}<br></dl></dl>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<dl><dt>foo</dt><dd>bar<dl><dt>baz</dt></dl></dd><dd>{}<br></dd></dl>",
+	[]],
+["<h1>foo[bar</h1><p>baz]quz</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<h1>foo</h1><h1>{}quz</h1>",
+	[]],
+["<p>foo[bar</p><h1>baz]quz</h1>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}quz</p>",
+	[]],
+["<p>foo</p>{}<br>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p><br></p><p>{}<br></p>",
+	[]],
+["{}<br><p>foo</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><br></p><p>{}<br></p><p>foo</p>",
+	[]],
+["<p>foo</p>{}<br><h1>bar</h1>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p><br></p><p>{}<br></p><h1>bar</h1>",
+	[]],
+["<h1>foo</h1>{}<br><p>bar</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<h1>foo</h1><p><br></p><p>{}<br></p><p>bar</p>",
+	[]],
+["<h1>foo</h1>{}<br><h2>bar</h2>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<h1>foo</h1><p><br></p><p>{}<br></p><h2>bar</h2>",
+	[]],
+["<p>foo</p><h1>[bar]</h1><p>baz</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><h1><br></h1><p>{}<br></p><p>baz</p>",
+	[]],
+["<p>foo</p>{<h1>bar</h1>}<p>baz</p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<br></p><p>baz</p>",
+	[]],
+["<table><tr><td>foo[]bar</table>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<table><tbody><tr><td><p>foo</p><p>{}bar</p></td></tr></tbody></table>",
+	[]],
+["<table><tr><td><p>foo[]bar</table>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<table><tbody><tr><td><p>foo</p><p>{}bar</p></td></tr></tbody></table>",
+	[]],
+["<blockquote>[]foo</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p><br></p><p>{}foo</p></blockquote>",
+	[]],
+["<blockquote>foo[]</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p>foo</p><p>{}<br></p></blockquote>",
+	[]],
+["<blockquote>foo[]<br></blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p>foo</p><p>{}<br></p></blockquote>",
+	[]],
+["<blockquote>foo[]bar</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p>foo</p><p>{}bar</p></blockquote>",
+	[]],
+["<blockquote><p>[]foo</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p><br></p><p>{}foo</p></blockquote>",
+	[]],
+["<blockquote><p>foo[]</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p>foo</p><p>{}<br></p></blockquote>",
+	[]],
+["<blockquote><p>foo[]bar</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p>foo</p><p>{}bar</p></blockquote>",
+	[]],
+["<blockquote><p>foo[]<p>bar</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p>foo</p><p>{}<br></p><p>bar</p></blockquote>",
+	[]],
+["<blockquote><p>foo[]bar<p>baz</blockquote>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<blockquote><p>foo</p><p>{}bar</p><p>baz</p></blockquote>",
+	[]],
+["<span>foo[]bar</span>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><span>foo</span></p><p>{}<span>bar</span></p>",
+	[]],
+["<span>foo[]bar</span>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><span>foo</span></p><p>{}<span>bar</span>baz</p>",
+	[]],
+["<b>foo[]bar</b>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><b>foo</b></p><p>{}<b>bar</b></p>",
+	[]],
+["<b>foo[]bar</b>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><b>foo</b></p><p>{}<b>bar</b>baz</p>",
+	[]],
+["<b>foo[]</b>bar",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><b>foo</b></p><p>{}bar</p>",
+	[]],
+["foo<b>[]bar</b>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<b>bar</b></p>",
+	[]],
+["<b>foo[]</b><i>bar</i>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><b>foo</b></p><p>{}<i>bar</i></p>",
+	[]],
+["<b id=x class=y>foo[]bar</b>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><b id=\"x\" class=\"y\">foo</b></p><p>{}<b class=\"y\">bar</b></p>",
+	[]],
+["<i><b>foo[]bar</b>baz</i>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><i><b>foo</b></i></p><p>{}<i><b>bar</b>baz</i></p>",
+	[]],
+["<p><b>foo[]bar</b></p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><b>foo</b></p><p>{}<b>bar</b></p>",
+	[]],
+["<p><b>[]foo</b></p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><br></p><p>{}<b>foo</b></p>",
+	[]],
+["<p><b id=x class=y>foo[]bar</b></p>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><b id=\"x\" class=\"y\">foo</b></p><p>{}<b class=\"y\">bar</b></p>",
+	[]],
+["<div><b>foo[]bar</b></div>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div><b>foo</b></div><div>{}<b>bar</b></div>",
+	[]],
+["<a href=foo>foo[]bar</a>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><a href=\"foo\">foo</a></p><p>{}<a href=\"foo\">bar</a></p>",
+	[]],
+["<a href=foo>foo[]bar</a>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><a href=\"foo\">foo</a></p><p>{}<a href=\"foo\">bar</a>baz</p>",
+	[]],
+["<a href=foo>foo[]</a>bar",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><a href=\"foo\">foo</a></p><p>{}bar</p>",
+	[]],
+["foo<a href=foo>[]bar</a>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<a href=\"foo\">bar</a></p>",
+	[]],
+["<p>foo[]<!--bar-->",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<!--bar--><br></p>",
+	[]],
+["<p><!--foo-->[]bar",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><!--foo--><br></p><p>{}bar</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar]</span>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar}</span>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}baz</p>",
+	[]],
+["<p>foo{<span style=color:#aBcDeF>bar</span>}baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}baz</p>",
+	[]],
+["<p>[foo<span style=color:#aBcDeF>bar]</span>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><br></p><p>{}baz</p>",
+	[]],
+["<p>{foo<span style=color:#aBcDeF>bar}</span>baz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p><br></p><p>{}baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span>baz]",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<br></p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar</span>baz}",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}<br></p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<p>foo</p><p>{}quz</p>",
+	[]],
+["<ul contenteditable><li>{}<br></ul>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ul contenteditable=\"\"><li>{}<br></li></ul>",
+	[]],
+["<ul contenteditable><li>foo[]</ul>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<ul contenteditable=\"\"><li>foo</li><li>{}<br></li></ul>",
+	[]],
+["<div contenteditable=false><ul contenteditable><li>{}<br></ul></div>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div contenteditable=\"false\"><ul contenteditable=\"\"><li>{}<br></li></ul></div>",
+	[]],
+["<div contenteditable=false><ul contenteditable><li>foo[]</ul></div>",
+	[["stylewithcss","false"],["insertparagraph",""]],
+	"<div contenteditable=\"false\"><ul contenteditable=\"\"><li>foo</li><li>{}<br></li></ul></div>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"fooa[]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["inserttext",""]],
+	"foo[]baz",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext","\t"]],
+	"foo\t[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext","&"]],
+	"foo&amp;[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext","\n"]],
+	"<p>foo</p><p>{}bar</p>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext","abc\ndef"]],
+	"<p>fooabc</p><p>def[]bar</p>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext","�"]],
+	"foo�[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext","\u0007"]],
+	"foo\u0007[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo []bar",
+	[]],
+["foo []bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo&nbsp; []bar",
+	[]],
+["foo[] bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo&nbsp;[] bar",
+	[]],
+["foo &nbsp;[]bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp; []bar",
+	[]],
+["foo []&nbsp;bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;[] bar",
+	[]],
+["foo[] &nbsp;bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo []&nbsp; bar",
+	[]],
+["foo&nbsp; []bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp; []bar",
+	[]],
+["foo&nbsp;[] bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;[] bar",
+	[]],
+["foo[]&nbsp; bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo []&nbsp; bar",
+	[]],
+["foo&nbsp;&nbsp;[]bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp; []bar",
+	[]],
+["foo&nbsp;[]&nbsp;bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;[] bar",
+	[]],
+["foo[]&nbsp;&nbsp;bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo []&nbsp; bar",
+	[]],
+["foo []&nbsp;        bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;[]&nbsp; bar",
+	[]],
+["foo  []bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo&nbsp; []bar",
+	[]],
+["foo []&nbsp;&nbsp; &nbsp; bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;[] &nbsp; &nbsp; bar",
+	[]],
+["[]foo",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"&nbsp;[]foo",
+	[]],
+["{}foo",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"&nbsp;[]foo",
+	[]],
+["foo[]",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo&nbsp;[]",
+	[]],
+["foo{}",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo&nbsp;[]",
+	[]],
+["foo&nbsp;[]",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;[]",
+	[]],
+["foo&nbsp;{}",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;[]",
+	[]],
+["foo&nbsp;&nbsp;[]",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;&nbsp;[]",
+	[]],
+["foo&nbsp;&nbsp;{}",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo &nbsp;&nbsp;[]",
+	[]],
+["<b>foo[]</b>bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<b>foo []</b>bar",
+	[]],
+["foo[]<b>bar</b>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"foo []<b>bar</b>",
+	[]],
+["<pre>foo[]</pre>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<pre>foo []</pre>",
+	[]],
+["<pre>[]foo</pre>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<pre> []foo</pre>",
+	[]],
+["<pre>foo []bar</pre>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<pre>foo  []bar</pre>",
+	[]],
+["<span style=white-space:pre>foo[]</span>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<span style=\"white-space:pre\">foo []</span>",
+	[]],
+["<span style=white-space:pre>[]foo</span>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<span style=\"white-space:pre\"> []foo</span>",
+	[]],
+["<span style=white-space:pre>foo []bar</span>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<span style=\"white-space:pre\">foo  []bar</span>",
+	[]],
+["<span style=white-space:pre-wrap>foo[]</span>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<span style=\"white-space:pre-wrap\">foo []</span>",
+	[]],
+["<span style=white-space:pre-wrap>[]foo</span>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<span style=\"white-space:pre-wrap\"> []foo</span>",
+	[]],
+["<span style=white-space:pre-wrap>foo []bar</span>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<span style=\"white-space:pre-wrap\">foo  []bar</span>",
+	[]],
+["{}<br>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"&nbsp;[]",
+	[]],
+["<p>{}<br>",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<p>&nbsp;[]</p>",
+	[]],
+["<p>foo[]<p>bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<p>foo&nbsp;[]</p><p>bar</p>",
+	[]],
+["<p>foo&nbsp;[]<p>bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<p>foo &nbsp;[]</p><p>bar</p>",
+	[]],
+["<p>foo[]<p>&nbsp;bar",
+	[["stylewithcss","false"],["inserttext"," "]],
+	"<p>foo&nbsp;[]</p><p>&nbsp;bar</p>",
+	[]],
+["foo[]",
+	[["stylewithcss","false"],["inserttext","   "]],
+	"foo &nbsp;&nbsp;[]",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"fooa[]bar",
+	[]],
+["foo&nbsp;[]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo a[]",
+	[]],
+["foo []",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo a[]",
+	[]],
+["<p>foo[]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>fooa[]</p>",
+	[]],
+["<p>foo</p>{}",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo</p>a[]",
+	[]],
+["<p>[]foo",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>a[]foo</p>",
+	[]],
+["<p>{}foo",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>a[]foo</p>",
+	[]],
+["{}<p>foo",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]<p>foo</p>",
+	[]],
+["<p>foo</p>{}<p>bar</p>",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo</p>a[]<p>bar</p>",
+	[]],
+["<b>foo[]</b>bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<b>fooa[]</b>bar",
+	[]],
+["<b>foo</b>[]bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<b>foo</b>a[]bar",
+	[]],
+["foo<b>{}</b>bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<b>a[]</b>bar",
+	[]],
+["<a>foo[]</a>bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<a>fooa[]</a>bar",
+	[]],
+["<a>foo</a>[]bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<a>foo</a>a[]bar",
+	[]],
+["<a href=/>foo[]</a>bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<a href=\"/\">fooa[]</a>bar",
+	[]],
+["<a href=/>foo</a>[]bar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<a href=\"/\">foo</a>a[]bar",
+	[]],
+["<p>fo[o<p>b]ar",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foa[]ar</p>",
+	[]],
+["<p>fo[o<p>bar<p>b]az",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foa[]az</p>",
+	[]],
+["{}<br>",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]",
+	[]],
+["<p>{}<br>",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>a[]</p>",
+	[]],
+["<p><span>{}<br></span>",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p><span>a[]</span></p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar]</span>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\">a[]</span>baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar}</span>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\">a[]</span>baz</p>",
+	[]],
+["<p>foo{<span style=color:#aBcDeF>bar</span>}baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\">a[]</span>baz</p>",
+	[]],
+["<p>[foo<span style=color:#aBcDeF>bar]</span>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>a[]baz</p>",
+	[]],
+["<p>{foo<span style=color:#aBcDeF>bar}</span>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>a[]baz</p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\">a[]</span></p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>{bar</span>baz}",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\">a[]</span></p>",
+	[]],
+["<p>foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<p>foo<span style=\"color:rgb(171, 205, 239)\">a[]</span>quz</p>",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<b>a[]</b>baz",
+	[]],
+["foo<i>[bar]</i>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<i>a[]</i>baz",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<s>a[]</s>baz",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub>a[]</sub>baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sup>a[]</sup>baz",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<u>a[]</u>baz",
+	[]],
+["foo<a href=http://www.google.com>[bar]</a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>baz",
+	[]],
+["foo<font face=sans-serif>[bar]</font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font face=\"sans-serif\">a[]</font>baz",
+	[]],
+["foo<font size=4>[bar]</font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font size=\"4\">a[]</font>baz",
+	[]],
+["foo<font color=#0000FF>[bar]</font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font color=\"#0000FF\">a[]</font>baz",
+	[]],
+["foo<span style=background-color:#00FFFF>[bar]</span>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">a[]</span>baz",
+	[]],
+["foo<a href=http://www.google.com><font color=blue>[bar]</font></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"blue\">a[]</font></a>baz",
+	[]],
+["foo<font color=blue><a href=http://www.google.com>[bar]</a></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font color=\"blue\"><a href=\"http://www.google.com\">a[]</a></font>baz",
+	[]],
+["foo<a href=http://www.google.com><font color=brown>[bar]</font></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"brown\">a[]</font></a>baz",
+	[]],
+["foo<font color=brown><a href=http://www.google.com>[bar]</a></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font color=\"brown\"><a href=\"http://www.google.com\">a[]</a></font>baz",
+	[]],
+["foo<a href=http://www.google.com><font color=black>[bar]</font></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"black\">a[]</font></a>baz",
+	[]],
+["foo<a href=http://www.google.com><u>[bar]</u></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><u>a[]</u></a>baz",
+	[]],
+["foo<u><a href=http://www.google.com>[bar]</a></u>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<u><a href=\"http://www.google.com\">a[]</a></u>baz",
+	[]],
+["foo<sub><font size=2>[bar]</font></sub>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub>a[]</sub>baz",
+	[]],
+["foo<font size=2><sub>[bar]</sub></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub><font size=\"1\">a[]</font></sub>baz",
+	[]],
+["foo<sub><font size=3>[bar]</font></sub>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub><font size=\"3\">a[]</font></sub>baz",
+	[]],
+["foo<font size=3><sub>[bar]</sub></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub>a[]</sub>baz",
+	[]],
+["[foo<b>bar]</b>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<i>bar]</i>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<s>bar]</s>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sub>bar]</sub>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sup>bar]</sup>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<u>bar]</u>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com>bar]</a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font face=sans-serif>bar]</font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font size=4>bar]</font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font color=#0000FF>bar]</font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<span style=background-color:#00FFFF>bar]</span>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><font color=blue>bar]</font></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font color=blue><a href=http://www.google.com>bar]</a></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><font color=brown>bar]</font></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font color=brown><a href=http://www.google.com>bar]</a></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><font color=black>bar]</font></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><u>bar]</u></a>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<u><a href=http://www.google.com>bar]</a></u>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sub><font size=2>bar]</font></sub>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font size=2><sub>bar]</sub></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sub><font size=3>bar]</font></sub>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font size=3><sub>bar]</sub></font>baz",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["foo<b>[bar</b>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<b>a[]</b>",
+	[]],
+["foo<i>[bar</i>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<i>a[]</i>",
+	[]],
+["foo<s>[bar</s>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<s>a[]</s>",
+	[]],
+["foo<sub>[bar</sub>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub>a[]</sub>",
+	[]],
+["foo<sup>[bar</sup>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sup>a[]</sup>",
+	[]],
+["foo<u>[bar</u>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<u>a[]</u>",
+	[]],
+["foo<a href=http://www.google.com>[bar</a>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>",
+	[]],
+["foo<font face=sans-serif>[bar</font>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font face=\"sans-serif\">a[]</font>",
+	[]],
+["foo<font size=4>[bar</font>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font size=\"4\">a[]</font>",
+	[]],
+["foo<font color=#0000FF>[bar</font>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font color=\"#0000FF\">a[]</font>",
+	[]],
+["foo<span style=background-color:#00FFFF>[bar</span>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">a[]</span>",
+	[]],
+["foo<a href=http://www.google.com><font color=blue>[bar</font></a>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"blue\">a[]</font></a>",
+	[]],
+["foo<font color=blue><a href=http://www.google.com>[bar</a></font>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font color=\"blue\"><a href=\"http://www.google.com\">a[]</a></font>",
+	[]],
+["foo<a href=http://www.google.com><font color=brown>[bar</font></a>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"brown\">a[]</font></a>",
+	[]],
+["foo<font color=brown><a href=http://www.google.com>[bar</a></font>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<font color=\"brown\"><a href=\"http://www.google.com\">a[]</a></font>",
+	[]],
+["foo<a href=http://www.google.com><font color=black>[bar</font></a>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"black\">a[]</font></a>",
+	[]],
+["foo<a href=http://www.google.com><u>[bar</u></a>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><u>a[]</u></a>",
+	[]],
+["foo<u><a href=http://www.google.com>[bar</a></u>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<u><a href=\"http://www.google.com\">a[]</a></u>",
+	[]],
+["foo<sub><font size=2>[bar</font></sub>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub>a[]</sub>",
+	[]],
+["foo<font size=2><sub>[bar</sub></font>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub><font size=\"1\">a[]</font></sub>",
+	[]],
+["foo<sub><font size=3>[bar</font></sub>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub><font size=\"3\">a[]</font></sub>",
+	[]],
+["foo<font size=3><sub>[bar</sub></font>baz]",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"foo<sub>a[]</sub>",
+	[]],
+["<blockquote><font color=blue>[foo]</font></blockquote>",
+	[["stylewithcss","false"],["inserttext","a"]],
+	"<blockquote><font color=\"blue\">a[]</font></blockquote>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo[]bar</li></ul>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo[bar]baz</li></ul>",
+	[]],
+["foo<br>[bar]",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<ul><li>[bar]</li></ul>",
+	[]],
+["f[oo<br>b]ar<br>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>f[oo</li><li>b]ar</li></ul>baz",
+	[]],
+["<p>[foo]<br>bar</p>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><p>bar</p>",
+	[]],
+["[foo<ol><li>bar]</ol>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><li>bar]</li></ul>baz",
+	[]],
+["foo<ol><li>[bar</ol>baz]",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<ul><li>[bar</li><li>baz]</li></ul>",
+	[]],
+["[foo<ul><li>bar]</ul>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><li>bar]</li></ul>baz",
+	[]],
+["foo<ul><li>[bar</ul>baz]",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<ul><li>[bar</li><li>baz]</li></ul>",
+	[]],
+["foo<ul><li>[bar</ul><ol><li>baz]</ol>quz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<ul><li>[bar</li><li>baz]</li></ul>quz",
+	[]],
+["foo<ol><li>[bar</ol><ul><li>baz]</ul>quz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<ul><li>[bar</li><li>baz]</li></ul>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<table><tbody><tr><td>foo</td><td><ul><li>b[a]r</li></ul></td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>fo[o<td>b]ar<td>baz</table>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<table><tbody><tr><td><ul><li>fo[o</li></ul></td><td><ul><li>b]ar</li></ul></td><td>baz</td></tr></tbody></table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</li></ul>",
+	[]],
+["<p>foo<p>[bar]<p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>foo</p><ul><li>[bar]</li></ul><p>baz</p>",
+	[]],
+["<p>foo<blockquote>[bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>foo</p><blockquote><ul><li>[bar]</li></ul></blockquote><p>baz</p>",
+	[]],
+["<dl><dt>foo<dd>[bar]<dt>baz<dd>quz</dl>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<dl><dt>foo</dt><dd><ul><li>[bar]</li></ul></dd><dt>baz</dt><dd>quz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>bar<dt>[baz]<dd>quz</dl>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<dl><dt>foo</dt><dd>bar</dd><dt><ul><li>[baz]</li></ul></dt><dd>quz</dd></dl>",
+	[]],
+["<p>[foo<p>bar]<p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><li>bar]</li></ul><p>baz</p>",
+	[]],
+["<p>[foo<blockquote>bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar]</li></ul></ul><p>baz</p>",
+	[]],
+["<dl><dt>[foo<dd>bar]<dt>baz<dd>quz</dl>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<dl><dt><ul><li>[foo</li></ul></dt><dd><ul><li>bar]</li></ul></dd><dt>baz</dt><dd>quz</dd></dl>",
+	[]],
+["<dl><dt>foo<dd>[bar<dt>baz]<dd>quz</dl>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<dl><dt>foo</dt><dd><ul><li>[bar</li></ul></dd><dt><ul><li>baz]</li></ul></dt><dd>quz</dd></dl>",
+	[]],
+["<p>[foo<blockquote><p>bar]<p>baz</blockquote>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar]</li></ul></ul><blockquote><p>baz</p></blockquote>",
+	[]],
+["<ol><li>foo<li>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><ul><li>[bar]</li></ul><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</ol>[bar]",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><ul><li>[bar]</li></ul>",
+	[]],
+["[foo]<ol><li>bar</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><ol><li>bar</li></ol>",
+	[]],
+["<ol><li>foo</ol>[bar]<ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><ul><li>[bar]</li></ul><ol><li>baz</li></ol>",
+	[]],
+["<ol><ol><li>[foo]</ol></ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><ul><li>[foo]</li></ul></ul>",
+	[]],
+["<ol><li>[foo]<br>bar<li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]<br>bar</li></ul><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<br>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo<br>[bar]</li></ul><ol><li>baz</li></ol>",
+	[]],
+["<ol><li><div>[foo]</div>bar<li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li><div>[foo]</div>bar</li></ul><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li><ul><li>[bar]</li></ul><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol><ul><li>[baz]</li></ul><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li><ul><li>[bar]</li></ul><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol><ul><li>[baz]</li></ul><li>quz</li></ol>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo]</li><ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]<ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><ul><li>[bar]</li></ul><ol><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]</li><ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><ul><li>[bar]</li></ul><ol><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo<ol><li>bar</li><li>baz</li></ol></li></ol><ul><li>[quz]</li></ul>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li><li>baz</li></ol></ol><ul><li>[quz]</li></ul>",
+	[]],
+["<ol><li>foo<li>[bar<li>baz]</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><ul><li>[bar</li><li>baz]</li></ul>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar]</li></ul></ul><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>b[ar</ol><li>b]az</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><ul><ul><li>b[ar</li></ul><li>b]az</li></ul>",
+	[]],
+["<ol><li>[foo<ol><li>bar</ol><li>baz]</ol><p>extra",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar</li></ul><li>baz]</li></ul><p>extra</p>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li><ul><li>[bar]</li></ul><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar</ol>[baz]</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol></ol><ul><li>[baz]</li></ul>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar]</li></ul></ul><ol><li>baz</li></ol>",
+	[]],
+["<ul><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li></ul><p>[bar]</p><ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo</ul>[bar]",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><li>[bar]</li></ul>",
+	[]],
+["[foo]<ul><li>bar</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li><li>bar</li></ul>",
+	[]],
+["<ul><li>foo</ul>[bar]<ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><li>[bar]</li><li>baz</li></ul>",
+	[]],
+["<ul><ul><li>[foo]</ul></ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul>",
+	[]],
+["<ul><li>[foo]<br>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo]<br>bar</p><ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<br>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>foo<br>[bar]</p><ul><li>baz</li></ul>",
+	[]],
+["<ul><li><div>[foo]</div>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<div>[foo]</div><p>bar</p><ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>[bar]<li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><li>[bar]</li><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>bar<li>[baz]</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li></ul><li>[baz]</li><li>quz</li></ul>",
+	[]],
+["<ul><li>foo</li><ul><li>[bar]<li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><li>[bar]</li><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo</li><ul><li>bar<li>[baz]</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li></ul><li>[baz]</li><li>quz</li></ul>",
+	[]],
+["<ul><li>[foo]<ul><li>bar</ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo]</p><ul><ul><li>bar</li></ul><li>baz</li></ul>",
+	[]],
+["<ul><li>[foo]</li><ul><li>bar</ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo]</p><ul><ul><li>bar</li></ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<li>[bar]<ul><li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li></ul><p>[bar]</p><ul><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo<li>[bar]</li><ul><li>baz</ul><li>quz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li></ul><p>[bar]</p><ul><ul><li>baz</li></ul><li>quz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>bar<li>baz</ul><li>[quz]</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo<ul><li>bar</li><li>baz</li></ul></li></ul><p>[quz]</p>",
+	[]],
+["<ul><li>foo</li><ul><li>bar<li>baz</ul><li>[quz]</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li><li>baz</li></ul></ul><p>[quz]</p>",
+	[]],
+["<ul><li>foo<li>[bar<li>baz]</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li></ul><p>[bar</p><p>baz]</p>",
+	[]],
+["<ul><li>[foo<ul><li>bar]</ul><li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo</p><ul><li>bar]</li><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>b[ar</ul><li>b]az</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><li>b[ar</li></ul><p>b]az</p>",
+	[]],
+["<ul><li>[foo<ul><li>bar</ul><li>baz]</ul><p>extra",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo</p><ul><li>bar</li></ul><p>baz]</p><p>extra</p>",
+	[]],
+["<ul><li>[foo]<ul><li>bar</ul>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo]</p><ul><ul><li>bar</li></ul><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>[bar]</ul>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><li>[bar]</li><li>baz</li></ul>",
+	[]],
+["<ul><li>foo<ul><li>bar</ul>[baz]</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>foo</li><ul><li>bar</li></ul></ul><p>[baz]</p>",
+	[]],
+["<ul><li>[foo<ul><li>bar]</ul>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo</p><ul><li>bar]</li><li>baz</li></ul>",
+	[]],
+["foo<ol><li>bar</ol><ul><li>[baz]</ul>quz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<ol><li>bar</li></ol><p>[baz]</p>quz",
+	[]],
+["foo<ol><li>bar</ol><ul><li>[baz</ul>quz]",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<ol><li>bar</li></ol><ul><li>[baz</li><li>quz]</li></ul>",
+	[]],
+["foo<ul><li>[bar]</ul><ol><li>baz</ol>quz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<p>[bar]</p><ol><li>baz</li></ol>quz",
+	[]],
+["[foo<ul><li>bar]</ul><ol><li>baz</ol>quz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><li>bar]</li></ul><ol><li>baz</li></ol>quz",
+	[]],
+["[foo]<blockquote>bar</blockquote>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><blockquote>bar</blockquote>baz",
+	[]],
+["foo<blockquote>[bar]</blockquote>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<blockquote><ul><li>[bar]</li></ul></blockquote>baz",
+	[]],
+["[foo<blockquote>bar]</blockquote>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar]</li></ul></ul>baz",
+	[]],
+["<ol><li>foo</ol><blockquote>[bar]</blockquote>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><blockquote><ul><li>[bar]</li></ul></blockquote>baz",
+	[]],
+["[foo]<blockquote><ol><li>bar</ol></blockquote>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><blockquote><ol><li>bar</li></ol></blockquote>baz",
+	[]],
+["foo<blockquote>[bar]<br>baz</blockquote>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"foo<blockquote><ul><li>[bar]</li></ul>baz</blockquote>",
+	[]],
+["[foo<blockquote>bar]<br>baz</blockquote>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar]</li></ul></ul><blockquote>baz</blockquote>",
+	[]],
+["<ol><li>foo</ol><blockquote>[bar]<br>baz</blockquote>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><blockquote><ul><li>[bar]</li></ul>baz</blockquote>",
+	[]],
+["<p>[foo]<blockquote><p>bar</blockquote><p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo]</li></ul><blockquote><p>bar</p></blockquote><p>baz</p>",
+	[]],
+["<p>foo<blockquote><p>[bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>foo</p><blockquote><ul><li>[bar]</li></ul></blockquote><p>baz</p>",
+	[]],
+["<p>[foo<blockquote><p>bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul><li>[foo</li><ul><li>bar]</li></ul></ul><p>baz</p>",
+	[]],
+["<ol><li>foo</ol><blockquote><p>[bar]</blockquote><p>baz",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ol><li>foo</li></ol><blockquote><ul><li>[bar]</li></ul></blockquote><p>baz</p>",
+	[]],
+["<ul id=abc><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul id=\"abc\"><li>foo</li></ul><p>[bar]</p><ul><li>baz</li></ul>",
+	[]],
+["<ul style=color:blue><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul style=\"color:rgb(0, 0, 255)\"><li>foo</li></ul><p>[bar]</p><ul style=\"color:rgb(0, 0, 255)\"><li>baz</li></ul>",
+	[]],
+["<ul style=text-indent:1em><li>foo<li>[bar]<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul style=\"text-indent:1em\"><li>foo</li></ul><p>[bar]</p><ul style=\"text-indent:1em\"><li>baz</li></ul>",
+	[]],
+["<ul id=abc><li>[foo]<li>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo]</p><ul id=\"abc\"><li>bar</li><li>baz</li></ul>",
+	[]],
+["<ul style=color:blue><li>[foo]<li>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo]</p><ul style=\"color:rgb(0, 0, 255)\"><li>bar</li><li>baz</li></ul>",
+	[]],
+["<ul style=text-indent:1em><li>[foo]<li>bar<li>baz</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<p>[foo]</p><ul style=\"text-indent:1em\"><li>bar</li><li>baz</li></ul>",
+	[]],
+["<ul id=abc><li>foo<li>bar<li>[baz]</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul id=\"abc\"><li>foo</li><li>bar</li></ul><p>[baz]</p>",
+	[]],
+["<ul style=color:blue><li>foo<li>bar<li>[baz]</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul style=\"color:rgb(0, 0, 255)\"><li>foo</li><li>bar</li></ul><p>[baz]</p>",
+	[]],
+["<ul style=text-indent:1em><li>foo<li>bar<li>[baz]</ul>",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul style=\"text-indent:1em\"><li>foo</li><li>bar</li></ul><p>[baz]</p>",
+	[]],
+["{<div style=\"font-size: 1.3em\">1</div><div style=\"font-size: 1.1em\">2</div>}",
+	[["stylewithcss","false"],["insertunorderedlist",""]],
+	"<ul>{<li style=\"font-size:1.3em\">1</li><li style=\"font-size:1.1em\">2</li>}</ul>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["italic",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["italic",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["italic",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["italic",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<i>[bar]</i>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<span style=\"font-style:italic\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<i>[bar]</i>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<span style=\"font-style:italic\">[bar]</span>baz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<i>[bar</i><b><i>baz]</i>qoz</b>quz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<span style=\"font-style:italic\">[bar</span><b><span style=\"font-style:italic\">baz]</span>qoz</b>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["italic",""]],
+	"<table><tbody><tr><td>foo</td><td>b<i>[a]</i>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["italic",""]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"font-style:italic\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["italic",""]],
+	"<table><tbody><tr><td>foo</td>{<td><i>bar</i></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["italic",""]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"font-style:italic\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["italic",""]],
+	"<table><tbody><tr>{<td><i>foo</i></td><td><i>bar</i></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["italic",""]],
+	"<table><tbody><tr>{<td><span style=\"font-style:italic\">foo</span></td><td><span style=\"font-style:italic\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["italic",""]],
+	"<table><tbody>{<tr><td><i>foo</i></td><td><i>bar</i></td><td><i>baz</i></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["italic",""]],
+	"<table><tbody>{<tr><td><span style=\"font-style:italic\">foo</span></td><td><span style=\"font-style:italic\">bar</span></td><td><span style=\"font-style:italic\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["italic",""]],
+	"<table>{<tbody><tr><td><i>foo</i></td><td><i>bar</i></td><td><i>baz</i></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["italic",""]],
+	"<table>{<tbody><tr><td><span style=\"font-style:italic\">foo</span></td><td><span style=\"font-style:italic\">bar</span></td><td><span style=\"font-style:italic\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["italic",""]],
+	"{<table><tbody><tr><td><i>foo</i></td><td><i>bar</i></td><td><i>baz</i></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["italic",""]],
+	"{<table><tbody><tr><td><span style=\"font-style:italic\">foo</span></td><td><span style=\"font-style:italic\">bar</span></td><td><span style=\"font-style:italic\">baz</span></td></tr></tbody></table>}",
+	[]],
+["foo<span style=\"font-style: italic\">[bar]</span>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-style: italic\">[bar]</span>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<address>[bar]</address>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<address><span style=\"font-style:normal\">[bar]</span></address>baz",
+	[]],
+["foo<address>[bar]</address>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<address><span style=\"font-style:normal\">[bar]</span></address>baz",
+	[]],
+["foo<cite>[bar]</cite>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<cite><span style=\"font-style:normal\">[bar]</span></cite>baz",
+	[]],
+["foo<cite>[bar]</cite>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<cite><span style=\"font-style:normal\">[bar]</span></cite>baz",
+	[]],
+["foo<dfn>[bar]</dfn>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<dfn><span style=\"font-style:normal\">[bar]</span></dfn>baz",
+	[]],
+["foo<dfn>[bar]</dfn>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<dfn><span style=\"font-style:normal\">[bar]</span></dfn>baz",
+	[]],
+["foo<em>[bar]</em>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<em>[bar]</em>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<i>[bar]</i>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<i>[bar]</i>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<var>[bar]</var>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<var><span style=\"font-style:normal\">[bar]</span></var>baz",
+	[]],
+["foo<var>[bar]</var>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<var><span style=\"font-style:normal\">[bar]</span></var>baz",
+	[]],
+["foo{<address>bar</address>}baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo{<address><span style=\"font-style:normal\">bar</span></address>}baz",
+	[]],
+["foo{<address>bar</address>}baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo{<address><span style=\"font-style:normal\">bar</span></address>}baz",
+	[]],
+["foo{<cite>bar</cite>}baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo{<cite><span style=\"font-style:normal\">bar</span></cite>}baz",
+	[]],
+["foo{<cite>bar</cite>}baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo{<cite><span style=\"font-style:normal\">bar</span></cite>}baz",
+	[]],
+["foo{<dfn>bar</dfn>}baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo{<dfn><span style=\"font-style:normal\">bar</span></dfn>}baz",
+	[]],
+["foo{<dfn>bar</dfn>}baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo{<dfn><span style=\"font-style:normal\">bar</span></dfn>}baz",
+	[]],
+["foo{<em>bar</em>}baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<em>bar</em>}baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<i>bar</i>}baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<i>bar</i>}baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<var>bar</var>}baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo{<var><span style=\"font-style:normal\">bar</span></var>}baz",
+	[]],
+["foo{<var>bar</var>}baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo{<var><span style=\"font-style:normal\">bar</span></var>}baz",
+	[]],
+["foo<address>b[a]r</address>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<address>b<span style=\"font-style:normal\">[a]</span>r</address>baz",
+	[]],
+["foo<address>b[a]r</address>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<address>b<span style=\"font-style:normal\">[a]</span>r</address>baz",
+	[]],
+["foo<cite>b[a]r</cite>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<cite>b<span style=\"font-style:normal\">[a]</span>r</cite>baz",
+	[]],
+["foo<cite>b[a]r</cite>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<cite>b<span style=\"font-style:normal\">[a]</span>r</cite>baz",
+	[]],
+["foo<dfn>b[a]r</dfn>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<dfn>b<span style=\"font-style:normal\">[a]</span>r</dfn>baz",
+	[]],
+["foo<dfn>b[a]r</dfn>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<dfn>b<span style=\"font-style:normal\">[a]</span>r</dfn>baz",
+	[]],
+["foo<em>b[a]r</em>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<i>b</i>[a]<i>r</i>baz",
+	[]],
+["foo<em>b[a]r</em>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<span style=\"font-style:italic\">b</span>[a]<span style=\"font-style:italic\">r</span>baz",
+	[]],
+["foo<i>b[a]r</i>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<i>b</i>[a]<i>r</i>baz",
+	[]],
+["foo<i>b[a]r</i>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<span style=\"font-style:italic\">b</span>[a]<span style=\"font-style:italic\">r</span>baz",
+	[]],
+["foo<var>b[a]r</var>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<var>b<span style=\"font-style:normal\">[a]</span>r</var>baz",
+	[]],
+["foo<var>b[a]r</var>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<var>b<span style=\"font-style:normal\">[a]</span>r</var>baz",
+	[]],
+["fo[o<address>bar</address>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[o</i><address>bar</address><i>b]</i>az",
+	[]],
+["fo[o<address>bar</address>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[o</span><address>bar</address><span style=\"font-style:italic\">b]</span>az",
+	[]],
+["fo[o<cite>bar</cite>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[o<cite>bar</cite>b]</i>az",
+	[]],
+["fo[o<cite>bar</cite>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[o<cite>bar</cite>b]</span>az",
+	[]],
+["fo[o<dfn>bar</dfn>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[o<dfn>bar</dfn>b]</i>az",
+	[]],
+["fo[o<dfn>bar</dfn>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[o<dfn>bar</dfn>b]</span>az",
+	[]],
+["fo[o<em>bar</em>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[obarb]</i>az",
+	[]],
+["fo[o<em>bar</em>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[obarb]</span>az",
+	[]],
+["fo[o<i>bar</i>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[obarb]</i>az",
+	[]],
+["fo[o<i>bar</i>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[obarb]</span>az",
+	[]],
+["fo[o<var>bar</var>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[o<var>bar</var>b]</i>az",
+	[]],
+["fo[o<var>bar</var>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[o<var>bar</var>b]</span>az",
+	[]],
+["foo[<address>bar</address>baz]",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[<address>bar</address><i>baz]</i>",
+	[]],
+["foo[<address>bar</address>baz]",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[<address>bar</address><span style=\"font-style:italic\">baz]</span>",
+	[]],
+["foo[<cite>bar</cite>baz]",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[<cite>bar</cite><i>baz]</i>",
+	[]],
+["foo[<cite>bar</cite>baz]",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[<cite>bar</cite><span style=\"font-style:italic\">baz]</span>",
+	[]],
+["foo[<dfn>bar</dfn>baz]",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[<dfn>bar</dfn><i>baz]</i>",
+	[]],
+["foo[<dfn>bar</dfn>baz]",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[<dfn>bar</dfn><span style=\"font-style:italic\">baz]</span>",
+	[]],
+["foo[<em>bar</em>baz]",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[<i>barbaz]</i>",
+	[]],
+["foo[<em>bar</em>baz]",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[<span style=\"font-style:italic\">barbaz]</span>",
+	[]],
+["foo[<i>bar</i>baz]",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[<i>barbaz]</i>",
+	[]],
+["foo[<i>bar</i>baz]",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[<span style=\"font-style:italic\">barbaz]</span>",
+	[]],
+["foo[<var>bar</var>baz]",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[<var>bar</var><i>baz]</i>",
+	[]],
+["foo[<var>bar</var>baz]",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[<var>bar</var><span style=\"font-style:italic\">baz]</span>",
+	[]],
+["[foo<address>bar</address>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>[foo</i><address>bar</address>]baz",
+	[]],
+["[foo<address>bar</address>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">[foo</span><address>bar</address>]baz",
+	[]],
+["[foo<cite>bar</cite>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>[foo<cite>bar</cite></i>]baz",
+	[]],
+["[foo<cite>bar</cite>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">[foo<cite>bar</cite></span>]baz",
+	[]],
+["[foo<dfn>bar</dfn>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>[foo<dfn>bar</dfn></i>]baz",
+	[]],
+["[foo<dfn>bar</dfn>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">[foo<dfn>bar</dfn></span>]baz",
+	[]],
+["[foo<em>bar</em>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>[foobar</i>]baz",
+	[]],
+["[foo<em>bar</em>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">[foobar</span>]baz",
+	[]],
+["[foo<i>bar</i>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>[foobar</i>]baz",
+	[]],
+["[foo<i>bar</i>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">[foobar</span>]baz",
+	[]],
+["[foo<var>bar</var>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>[foo<var>bar</var></i>]baz",
+	[]],
+["[foo<var>bar</var>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">[foo<var>bar</var></span>]baz",
+	[]],
+["foo<span style=\"font-style: italic\">[bar]</span>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-style: italic\">[bar]</span>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-style: oblique\">[bar]</span>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-style: oblique\">[bar]</span>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"font-style: oblique\">b[a]r</span>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<span style=\"font-style:oblique\">b</span>[a]<span style=\"font-style:oblique\">r</span>baz",
+	[]],
+["foo<span style=\"font-style: oblique\">b[a]r</span>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<span style=\"font-style:oblique\">b</span>[a]<span style=\"font-style:oblique\">r</span>baz",
+	[]],
+["<i>{<p>foo</p><p>bar</p>}<p>baz</p></i>",
+	[["stylewithcss","false"],["italic",""]],
+	"{<p>foo</p><p>bar</p>}<p><i>baz</i></p>",
+	[]],
+["<i>{<p>foo</p><p>bar</p>}<p>baz</p></i>",
+	[["stylewithcss","true"],["italic",""]],
+	"{<p>foo</p><p>bar</p>}<p><span style=\"font-style:italic\">baz</span></p>",
+	[]],
+["<i><p>foo[<b>bar</b>}</p><p>baz</p></i>",
+	[["stylewithcss","false"],["italic",""]],
+	"<p><i>foo[</i><b>bar</b>}</p><p><i>baz</i></p>",
+	[]],
+["<i><p>foo[<b>bar</b>}</p><p>baz</p></i>",
+	[["stylewithcss","true"],["italic",""]],
+	"<p><span style=\"font-style:italic\">foo[</span><b>bar</b>}</p><p><span style=\"font-style:italic\">baz</span></p>",
+	[]],
+["foo [bar <b>baz] qoz</b> quz sic",
+	[["stylewithcss","false"],["italic",""]],
+	"foo <i>[bar </i><b><i>baz]</i> qoz</b> quz sic",
+	[]],
+["foo [bar <b>baz] qoz</b> quz sic",
+	[["stylewithcss","true"],["italic",""]],
+	"foo <span style=\"font-style:italic\">[bar </span><b><span style=\"font-style:italic\">baz]</span> qoz</b> quz sic",
+	[]],
+["foo bar <b>baz [qoz</b> quz] sic",
+	[["stylewithcss","false"],["italic",""]],
+	"foo bar <b>baz <i>[qoz</i></b><i> quz]</i> sic",
+	[]],
+["foo bar <b>baz [qoz</b> quz] sic",
+	[["stylewithcss","true"],["italic",""]],
+	"foo bar <b>baz <span style=\"font-style:italic\">[qoz</span></b><span style=\"font-style:italic\"> quz]</span> sic",
+	[]],
+["foo [bar <i>baz] qoz</i> quz sic",
+	[["stylewithcss","false"],["italic",""]],
+	"foo <i>[bar baz] qoz</i> quz sic",
+	[]],
+["foo [bar <i>baz] qoz</i> quz sic",
+	[["stylewithcss","true"],["italic",""]],
+	"foo <i>[bar baz] qoz</i> quz sic",
+	[]],
+["foo bar <i>baz [qoz</i> quz] sic",
+	[["stylewithcss","false"],["italic",""]],
+	"foo bar <i>baz [qoz quz]</i> sic",
+	[]],
+["foo bar <i>baz [qoz</i> quz] sic",
+	[["stylewithcss","true"],["italic",""]],
+	"foo bar <i>baz [qoz quz]</i> sic",
+	[]],
+["fo[o<i>b]ar</i>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[ob]ar</i>baz",
+	[]],
+["fo[o<i>b]ar</i>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<i>[ob]ar</i>baz",
+	[]],
+["foo<i>ba[r</i>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<i>ba[rb]</i>az",
+	[]],
+["foo<i>ba[r</i>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<i>ba[rb]</i>az",
+	[]],
+["fo[o<i>bar</i>b]az",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[obarb]</i>az",
+	[]],
+["fo[o<i>bar</i>b]az",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[obarb]</span>az",
+	[]],
+["foo[<i>b]ar</i>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[b]<i>ar</i>baz",
+	[]],
+["foo[<i>b]ar</i>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[b]<span style=\"font-style:italic\">ar</span>baz",
+	[]],
+["foo<i>ba[r</i>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo<i>ba</i>[r]baz",
+	[]],
+["foo<i>ba[r</i>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo<span style=\"font-style:italic\">ba</span>[r]baz",
+	[]],
+["foo[<i>bar</i>]baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<i>bar</i>]baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<i>[bar]</i>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo<i>[bar]</i>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo[bar]baz",
+	[]],
+["foo{<i>bar</i>}baz",
+	[["stylewithcss","false"],["italic",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<i>bar</i>}baz",
+	[["stylewithcss","true"],["italic",""]],
+	"foo{bar}baz",
+	[]],
+["fo[o<span style=font-style:italic>b]ar</span>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[ob]ar</span>baz",
+	[]],
+["fo[o<span style=font-style:italic>b]ar</span>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[ob]ar</span>baz",
+	[]],
+["fo[o<span style=font-style:oblique>b]ar</span>baz",
+	[["stylewithcss","false"],["italic",""]],
+	"fo<i>[o</i><span style=\"font-style:oblique\"><i>b]</i>ar</span>baz",
+	[]],
+["fo[o<span style=font-style:oblique>b]ar</span>baz",
+	[["stylewithcss","true"],["italic",""]],
+	"fo<span style=\"font-style:italic\">[o</span><span style=\"font-style:oblique\"><span style=\"font-style:italic\">b]</span>ar</span>baz",
+	[]],
+["<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b]ar</span>",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>fo</i>[ob]<span style=\"font-style:oblique\">ar</span>",
+	[]],
+["<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b]ar</span>",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">fo</span>[ob]<span style=\"font-style:oblique\">ar</span>",
+	[]],
+["<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b]ar</span>",
+	[["stylewithcss","false"],["italic",""]],
+	"<span style=\"font-style:oblique\">fo</span>[ob]<i>ar</i>",
+	[]],
+["<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b]ar</span>",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:oblique\">fo</span>[ob]<span style=\"font-style:italic\">ar</span>",
+	[]],
+["<i>fo[o</i><address>b]ar</address>",
+	[["stylewithcss","false"],["italic",""]],
+	"<i>fo</i>[o<address><span style=\"font-style:normal\">b]</span>ar</address>",
+	[]],
+["<i>fo[o</i><address>b]ar</address>",
+	[["stylewithcss","true"],["italic",""]],
+	"<span style=\"font-style:italic\">fo</span>[o<address><span style=\"font-style:normal\">b]</span>ar</address>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo[]bar</div><p>extra</p>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo[]bar</div><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo[bar]baz</div><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo[bar]baz</div><p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo[]bar</p></div><p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo[]bar</p></div><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo[bar]baz</p></div><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo[bar]baz</p></div><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><h1>foo[bar]baz</h1></div><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><h1>foo[bar]baz</h1></div><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><pre>foo[bar]baz</pre></div><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><pre>foo[bar]baz</pre></div><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<center><p>[foo]</p><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<center><p>[foo]</p><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody><tr><td>foo</td><td><div style=\"text-align:center\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody><tr><td>foo</td><td><div style=\"text-align:center\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody><tr><td>foo</td>{<td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody><tr><td>foo</td>{<td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody><tr>{<td><div style=\"text-align:center\">foo</div></td><td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody><tr>{<td><div style=\"text-align:center\">foo</div></td><td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table align=center><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table align=\"center\"><tbody><tr><td>foo</td><td><div style=\"text-align:center\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=center><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table align=\"center\"><tbody><tr><td>foo</td><td><div style=\"text-align:center\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=center><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table align=\"center\"><tbody><tr><td>foo</td>{<td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=center><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table align=\"center\"><tbody><tr><td>foo</td>{<td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=center><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table align=\"center\"><tbody><tr>{<td><div style=\"text-align:center\">foo</div></td><td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=center><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table align=\"center\"><tbody><tr>{<td><div style=\"text-align:center\">foo</div></td><td><div style=\"text-align:center\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=center><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table align=center><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table align=center data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table align=center data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table align=center><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table align=center><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table><tbody align=center><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody align=\"center\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=center><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody align=\"center\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=center><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody align=\"center\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=center><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody align=\"center\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=center><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody align=\"center\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=center><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody align=\"center\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=center data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody align=center data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=center><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=center><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tbody align=center><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tbody align=center><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table><tbody><tr align=center><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody><tr align=\"center\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=center><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody><tr align=\"center\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=center data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody><tr align=\"center\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=center data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody><tr align=\"center\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=center data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<table><tbody><tr align=\"center\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=center data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<table><tbody><tr align=\"center\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=center><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=center><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=center><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=center><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tr align=center><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tr align=center><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"justify\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"justify\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:justify\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:justify\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"left\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"left\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:left\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:left\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"right\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"right\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:right\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:right\"><div style=\"text-align:center\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<center>foo</center>[bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<center>foo</center><div style=\"text-align:center\">[bar]</div><p>extra</p>",
+	[]],
+["<center>foo</center>[bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<center>foo</center><div style=\"text-align:center\">[bar]</div><p>extra</p>",
+	[]],
+["[foo]<center>bar</center><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><center>bar</center><p>extra</p>",
+	[]],
+["[foo]<center>bar</center><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><center>bar</center><p>extra</p>",
+	[]],
+["<center>foo</center>[bar]<center>baz</center><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<center>foo</center><div style=\"text-align:center\">[bar]</div><center>baz</center><p>extra</p>",
+	[]],
+["<center>foo</center>[bar]<center>baz</center><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<center>foo</center><div style=\"text-align:center\">[bar]</div><center>baz</center><p>extra</p>",
+	[]],
+["<div align=center>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"center\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["<div align=center>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"center\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["[foo]<div align=center>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"center\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["[foo]<div align=center>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"center\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["<div align=center>foo</div>[bar]<div align=center>baz</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"center\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div align=center>foo</div>[bar]<div align=center>baz</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"center\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div align=center><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"center\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"center\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div align=center><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div align=center><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>foo</div><p>[bar]<div align=center><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div align=\"center\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>foo</div><p>[bar]<div align=center><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div align=\"center\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["[foo]<div style=text-align:center>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["[foo]<div style=text-align:center>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>foo</div>[bar]<div style=text-align:center>baz</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>foo</div>[bar]<div style=text-align:center>baz</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:center><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:center><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>foo</div><p>[bar]<div style=text-align:center><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>foo</div><p>[bar]<div style=text-align:center><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<p align=center>foo<p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<p align=\"center\">foo</p><div style=\"text-align:center\"><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p align=center>foo<p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<p align=\"center\">foo</p><div style=\"text-align:center\"><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<p align=center>bar<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p></div><p align=\"center\">bar</p><p>extra</p>",
+	[]],
+["<p>[foo]<p align=center>bar<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p></div><p align=\"center\">bar</p><p>extra</p>",
+	[]],
+["<p align=center>foo<p>[bar]<p align=center>baz<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<p align=\"center\">foo</p><div style=\"text-align:center\"><p>[bar]</p></div><p align=\"center\">baz</p><p>extra</p>",
+	[]],
+["<p align=center>foo<p>[bar]<p align=center>baz<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<p align=\"center\">foo</p><div style=\"text-align:center\"><p>[bar]</p></div><p align=\"center\">baz</p><p>extra</p>",
+	[]],
+["<center>[foo</center>bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<center>[foo</center>bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<center>fo[o</center>b]ar<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<center>fo[o</center>b]ar<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div align=center>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div align=center>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div align=center>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div align=center>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<span style=text-align:center>[foo]</span><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><p>extra</p>",
+	[]],
+["<span style=text-align:center>[foo]</span><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><p>extra</p>",
+	[]],
+["<span style=text-align:center>f[o]o</span><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">f[o]o</div><p>extra</p>",
+	[]],
+["<span style=text-align:center>f[o]o</span><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">f[o]o</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo</div><div style=\"text-align:left\" contenteditable=\"false\">bar</div><div style=\"text-align:center\">baz]</div><p>extra</p>",
+	[]],
+["<div style=text-align:center>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo</div><div style=\"text-align:left\" contenteditable=\"false\">bar</div><div style=\"text-align:center\">baz]</div><p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<quasit align=right><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	[]],
+["<quasit align=right><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	[]],
+["<div align=center>{<div align=left>foo</div>}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo}</div>",
+	[]],
+["<div align=center>{<div align=left>foo</div>}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div>}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div>}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo}</div>",
+	[]],
+["<div align=center>{<div align=left>foo</div>bar}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br>bar}</div>",
+	[]],
+["<div align=center>{<div align=left>foo</div>bar}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br>bar}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div>bar}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br>bar}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div>bar}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br>bar}</div>",
+	[]],
+["<div align=center>{<div align=left>foo</div><img src=/img/lion.svg>}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br><img src=\"/img/lion.svg\">}</div>",
+	[]],
+["<div align=center>{<div align=left>foo</div><img src=/img/lion.svg>}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br><img src=\"/img/lion.svg\">}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div><img src=/img/lion.svg>}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br><img src=\"/img/lion.svg\">}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div><img src=/img/lion.svg>}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<br><img src=\"/img/lion.svg\">}</div>",
+	[]],
+["<div align=center>{<div align=left>foo</div><!-- bar -->}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<!-- bar -->}</div>",
+	[]],
+["<div align=center>{<div align=left>foo</div><!-- bar -->}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<!-- bar -->}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div><!-- bar -->}</div>",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<!-- bar -->}</div>",
+	[]],
+["<div align=left>{<div align=center>foo</div><!-- bar -->}</div>",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">{foo<!-- bar -->}</div>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\">[foo]</div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo[]bar</div><p>extra</p>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo[]bar</div><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo[bar]baz</div><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo[bar]baz</div><p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo[]bar</p></div><p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo[]bar</p></div><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo[bar]baz</p></div><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo[bar]baz</p></div><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><h1>foo[bar]baz</h1></div><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><h1>foo[bar]baz</h1></div><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><pre>foo[bar]baz</pre></div><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><pre>foo[bar]baz</pre></div><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<center><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<center><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody><tr><td>foo</td><td><div style=\"text-align:justify\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody><tr><td>foo</td><td><div style=\"text-align:justify\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody><tr><td>foo</td>{<td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody><tr><td>foo</td>{<td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody><tr>{<td><div style=\"text-align:justify\">foo</div></td><td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody><tr>{<td><div style=\"text-align:justify\">foo</div></td><td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table align=justify><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table align=\"justify\"><tbody><tr><td>foo</td><td><div style=\"text-align:justify\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=justify><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table align=\"justify\"><tbody><tr><td>foo</td><td><div style=\"text-align:justify\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=justify><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table align=\"justify\"><tbody><tr><td>foo</td>{<td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=justify><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table align=\"justify\"><tbody><tr><td>foo</td>{<td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=justify><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table align=\"justify\"><tbody><tr>{<td><div style=\"text-align:justify\">foo</div></td><td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=justify><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table align=\"justify\"><tbody><tr>{<td><div style=\"text-align:justify\">foo</div></td><td><div style=\"text-align:justify\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=justify><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table align=justify><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table align=justify data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table align=justify data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table align=justify><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table align=justify><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table><tbody align=justify><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody align=\"justify\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=justify><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody align=\"justify\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=justify><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody align=\"justify\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=justify><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody align=\"justify\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=justify><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody align=\"justify\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=justify><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody align=\"justify\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=justify data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody align=justify data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=justify><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=justify><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tbody align=justify><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tbody align=justify><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table><tbody><tr align=justify><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody><tr align=\"justify\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=justify><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody><tr align=\"justify\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=justify data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody><tr align=\"justify\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=justify data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody><tr align=\"justify\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=justify data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<table><tbody><tr align=\"justify\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=justify data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<table><tbody><tr align=\"justify\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=justify><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=justify><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=justify><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=justify><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tr align=justify><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tr align=justify><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"center\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"center\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:center\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:center\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"left\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"left\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:left\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:left\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"right\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"right\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:right\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:right\"><div style=\"text-align:justify\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=justify>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"justify\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["<div align=justify>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"justify\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["[foo]<div align=justify>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"justify\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["[foo]<div align=justify>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"justify\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["<div align=justify>foo</div>[bar]<div align=justify>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"justify\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div align=justify>foo</div>[bar]<div align=justify>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"justify\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div align=justify><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"justify\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"justify\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div align=justify><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div align=justify><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>foo</div><p>[bar]<div align=justify><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div align=\"justify\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>foo</div><p>[bar]<div align=justify><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div align=\"justify\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["[foo]<div style=text-align:justify>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["[foo]<div style=text-align:justify>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>foo</div>[bar]<div style=text-align:justify>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>foo</div>[bar]<div style=text-align:justify>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:justify><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:justify><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>foo</div><p>[bar]<div style=text-align:justify><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>foo</div><p>[bar]<div style=text-align:justify><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<p align=justify>foo<p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<p align=\"justify\">foo</p><div style=\"text-align:justify\"><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p align=justify>foo<p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<p align=\"justify\">foo</p><div style=\"text-align:justify\"><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<p align=justify>bar<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p></div><p align=\"justify\">bar</p><p>extra</p>",
+	[]],
+["<p>[foo]<p align=justify>bar<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p></div><p align=\"justify\">bar</p><p>extra</p>",
+	[]],
+["<p align=justify>foo<p>[bar]<p align=justify>baz<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<p align=\"justify\">foo</p><div style=\"text-align:justify\"><p>[bar]</p></div><p align=\"justify\">baz</p><p>extra</p>",
+	[]],
+["<p align=justify>foo<p>[bar]<p align=justify>baz<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<p align=\"justify\">foo</p><div style=\"text-align:justify\"><p>[bar]</p></div><p align=\"justify\">baz</p><p>extra</p>",
+	[]],
+["<div align=justify>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div align=justify>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div align=justify>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div align=justify>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<span style=text-align:justify>[foo]</span><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]</div><p>extra</p>",
+	[]],
+["<span style=text-align:justify>[foo]</span><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]</div><p>extra</p>",
+	[]],
+["<span style=text-align:justify>f[o]o</span><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">f[o]o</div><p>extra</p>",
+	[]],
+["<span style=text-align:justify>f[o]o</span><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">f[o]o</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo</div><div style=\"text-align:left\" contenteditable=\"false\">bar</div><div style=\"text-align:justify\">baz]</div><p>extra</p>",
+	[]],
+["<div style=text-align:justify>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo</div><div style=\"text-align:left\" contenteditable=\"false\">bar</div><div style=\"text-align:justify\">baz]</div><p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	[]],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\">[foo]</div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"foo[]bar<p>extra</p>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"foo[]bar<p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<span>foo</span>{}<span>bar</span><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<span>foo</span>{}<span>bar</span><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<span>foo[</span><span>]bar</span><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<span>foo[</span><span>]bar</span><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"foo[bar]baz<p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"foo[bar]baz<p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"foo[bar<b>baz]qoz</b>quz<p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"foo[bar<b>baz]qoz</b>quz<p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>foo[]bar</p><p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>foo[]bar</p><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>foo[bar]baz</p><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>foo[bar]baz</p><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<h1>foo[bar]baz</h1><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<h1>foo[bar]baz</h1><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<pre>foo[bar]baz</pre><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<pre>foo[bar]baz</pre><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<xmp>foo[bar]baz</xmp><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<xmp>foo[bar]baz</xmp><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<center><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<center><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["<table align=left><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table align=\"left\"><tbody><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=left><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table align=\"left\"><tbody><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=left><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table align=\"left\"><tbody><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=left><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table align=\"left\"><tbody><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=left><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table align=\"left\"><tbody><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=left><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table align=\"left\"><tbody><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=left><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table align=left><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table align=left data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["<table align=left data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["{<table align=left><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["{<table align=left><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["<table><tbody align=left><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody align=\"left\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=left><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody align=\"left\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=left><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody align=\"left\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=left><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody align=\"left\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=left><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody align=\"left\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=left><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody align=\"left\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=left data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=left data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=left><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=left><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["{<table><tbody align=left><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["{<table><tbody align=left><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["<table><tbody><tr align=left><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody><tr align=\"left\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=left><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody><tr align=\"left\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=left data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody><tr align=\"left\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=left data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody><tr align=\"left\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=left data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody><tr align=\"left\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=left data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody><tr align=\"left\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=left><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=left><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=left><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=left><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table><p>extra</p>",
+	[]],
+["{<table><tr align=left><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["{<table><tr align=left><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}<p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"center\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"center\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:center\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:center\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"justify\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"justify\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:justify\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:justify\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"left\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"left\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"right\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"right\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar}</p><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:right\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:right\"><div style=\"text-align:left\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo</p><p>bar]</p><p>extra</p>",
+	[]],
+["<div align=left>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"left\">foo</div>[bar]<p>extra</p>",
+	[]],
+["<div align=left>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"left\">foo</div>[bar]<p>extra</p>",
+	[]],
+["[foo]<div align=left>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo]<div align=\"left\">bar</div><p>extra</p>",
+	[]],
+["[foo]<div align=left>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo]<div align=\"left\">bar</div><p>extra</p>",
+	[]],
+["<div align=left>foo</div>[bar]<div align=left>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"left\">foo</div>[bar]<div align=\"left\">baz</div><p>extra</p>",
+	[]],
+["<div align=left>foo</div>[bar]<div align=left>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"left\">foo</div>[bar]<div align=\"left\">baz</div><p>extra</p>",
+	[]],
+["<div align=left><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"left\"><p>foo</p></div><p>[bar]</p><p>extra</p>",
+	[]],
+["<div align=left><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"left\"><p>foo</p></div><p>[bar]</p><p>extra</p>",
+	[]],
+["<p>[foo]<div align=left><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo]</p><div align=\"left\"><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div align=left><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo]</p><div align=\"left\"><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>foo</div><p>[bar]<div align=left><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div align=\"left\"><p>foo</p></div><p>[bar]</p><div align=\"left\"><p>baz</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>foo</div><p>[bar]<div align=left><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div align=\"left\"><p>foo</p></div><p>[bar]</p><div align=\"left\"><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:left\">foo</div>[bar]<p>extra</p>",
+	[]],
+["<div style=text-align:left>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:left\">foo</div>[bar]<p>extra</p>",
+	[]],
+["[foo]<div style=text-align:left>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo]<div style=\"text-align:left\">bar</div><p>extra</p>",
+	[]],
+["[foo]<div style=text-align:left>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo]<div style=\"text-align:left\">bar</div><p>extra</p>",
+	[]],
+["<div style=text-align:left>foo</div>[bar]<div style=text-align:left>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:left\">foo</div>[bar]<div style=\"text-align:left\">baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:left>foo</div>[bar]<div style=text-align:left>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:left\">foo</div>[bar]<div style=\"text-align:left\">baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><p>foo</p></div><p>[bar]</p><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><p>foo</p></div><p>[bar]</p><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:left><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo]</p><div style=\"text-align:left\"><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:left><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo]</p><div style=\"text-align:left\"><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>foo</div><p>[bar]<div style=text-align:left><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><p>foo</p></div><p>[bar]</p><div style=\"text-align:left\"><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>foo</div><p>[bar]<div style=text-align:left><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><p>foo</p></div><p>[bar]</p><div style=\"text-align:left\"><p>baz</p></div><p>extra</p>",
+	[]],
+["<p align=left>foo<p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p align=\"left\">foo</p><p>[bar]</p><p>extra</p>",
+	[]],
+["<p align=left>foo<p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p align=\"left\">foo</p><p>[bar]</p><p>extra</p>",
+	[]],
+["<p>[foo]<p align=left>bar<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo]</p><p align=\"left\">bar</p><p>extra</p>",
+	[]],
+["<p>[foo]<p align=left>bar<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo]</p><p align=\"left\">bar</p><p>extra</p>",
+	[]],
+["<p align=left>foo<p>[bar]<p align=left>baz<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p align=\"left\">foo</p><p>[bar]</p><p align=\"left\">baz</p><p>extra</p>",
+	[]],
+["<p align=left>foo<p>[bar]<p align=left>baz<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p align=\"left\">foo</p><p>[bar]</p><p align=\"left\">baz</p><p>extra</p>",
+	[]],
+["<div align=left>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo<br>bar]<p>extra</p>",
+	[]],
+["<div align=left>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo<br>bar]<p>extra</p>",
+	[]],
+["<div align=left>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"fo[o<br>b]ar<p>extra</p>",
+	[]],
+["<div align=left>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"fo[o<br>b]ar<p>extra</p>",
+	[]],
+["<div style=text-align:left>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo<br>bar]<p>extra</p>",
+	[]],
+["<div style=text-align:left>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo<br>bar]<p>extra</p>",
+	[]],
+["<div style=text-align:left>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"fo[o<br>b]ar<p>extra</p>",
+	[]],
+["<div style=text-align:left>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"fo[o<br>b]ar<p>extra</p>",
+	[]],
+["<span style=text-align:left>[foo]</span><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo]<p>extra</p>",
+	[]],
+["<span style=text-align:left>[foo]</span><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo]<p>extra</p>",
+	[]],
+["<span style=text-align:left>f[o]o</span><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"f[o]o<p>extra</p>",
+	[]],
+["<span style=text-align:left>f[o]o</span><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"f[o]o<p>extra</p>",
+	[]],
+["<div style=text-align:left>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo<div style=\"text-align:left\" contenteditable=\"false\">bar</div>baz]<p>extra</p>",
+	[]],
+["<div style=text-align:left>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo<div style=\"text-align:left\" contenteditable=\"false\">bar</div>baz]<p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo]</p><p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo]</p><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<p>[foo]</p><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<p>[foo]</p><p>extra</p>",
+	[]],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<quasit><p>[foo]</p></quasit><p>extra</p>",
+	[]],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<quasit><p>[foo]</p></quasit><p>extra</p>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo]<p>extra</p>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo]<p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"[foo]<p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"[foo]<p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<div style=\"text-align:left\"><div dir=\"rtl\">[foo]</div></div><p>extra</p>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo[]bar</div><p>extra</p>",
+	[]],
+["foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo[]bar</div><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
+	[]],
+["<span>foo</span>{}<span>bar</span><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
+	[]],
+["<span>foo[</span><span>]bar</span><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo[bar]baz</div><p>extra</p>",
+	[]],
+["foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo[bar]baz</div><p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
+	[]],
+["foo[bar<b>baz]qoz</b>quz<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo[]bar</p></div><p>extra</p>",
+	[]],
+["<p>foo[]bar<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo[]bar</p></div><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo[bar]baz</p></div><p>extra</p>",
+	[]],
+["<p>foo[bar]baz<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo[bar]baz</p></div><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><h1>foo[bar]baz</h1></div><p>extra</p>",
+	[]],
+["<h1>foo[bar]baz</h1><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><h1>foo[bar]baz</h1></div><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><pre>foo[bar]baz</pre></div><p>extra</p>",
+	[]],
+["<pre>foo[bar]baz</pre><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><pre>foo[bar]baz</pre></div><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
+	[]],
+["<xmp>foo[bar]baz</xmp><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<center><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo]<p>bar</center><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<center><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<center><p>[foo<p>bar]</center><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody><tr><td>foo</td><td><div style=\"text-align:right\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody><tr><td>foo</td><td><div style=\"text-align:right\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody><tr><td>foo</td>{<td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody><tr><td>foo</td>{<td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody><tr>{<td><div style=\"text-align:right\">foo</div></td><td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody><tr>{<td><div style=\"text-align:right\">foo</div></td><td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table align=right><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table align=\"right\"><tbody><tr><td>foo</td><td><div style=\"text-align:right\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=right><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table align=\"right\"><tbody><tr><td>foo</td><td><div style=\"text-align:right\">b[a]r</div></td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table align=\"right\"><tbody><tr><td>foo</td>{<td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table align=\"right\"><tbody><tr><td>foo</td>{<td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table align=\"right\"><tbody><tr>{<td><div style=\"text-align:right\">foo</div></td><td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table align=\"right\"><tbody><tr>{<td><div style=\"text-align:right\">foo</div></td><td><div style=\"text-align:right\">bar</div></td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table><tbody align=right><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody align=\"right\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=right><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody align=\"right\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=right><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody align=\"right\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=right><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody align=\"right\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=right><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody align=\"right\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=right><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody align=\"right\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<table><tbody><tr align=right><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody><tr align=\"right\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=right><td>foo<td>b[a]r<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody><tr align=\"right\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=right data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody><tr align=\"right\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=right data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody><tr align=\"right\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=right data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<table><tbody><tr align=\"right\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody><tr align=right data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<table><tbody><tr align=\"right\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table><tbody>{<tr><td>foo</td><td>bar</td><td>baz</td></tr>}</tbody></table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><table>{<tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody>}</table></div><p>extra</p>",
+	[]],
+["{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">{<table><tbody><tr><td>foo</td><td>bar</td><td>baz</td></tr></tbody></table>}</div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=center><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=justify><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=left><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>[foo<p>bar}</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar}</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
+	[]],
+["<div align=right>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"right\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["<div align=right>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"right\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["[foo]<div align=right>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"right\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["[foo]<div align=right>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"right\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["<div align=right>foo</div>[bar]<div align=right>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"right\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div align=right>foo</div>[bar]<div align=right>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"right\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div align=right><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"right\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"right\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div align=right><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div align=right><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>foo</div><p>[bar]<div align=right><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div align=\"right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div align=right><p>foo</div><p>[bar]<div align=right><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div align=\"right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right>foo</div>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>foo</div>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo<br>[bar]</div><p>extra</p>",
+	[]],
+["[foo]<div style=text-align:right>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["[foo]<div style=text-align:right>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]<br>bar</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>foo</div>[bar]<div style=text-align:right>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>foo</div>[bar]<div style=text-align:right>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">foo<br>[bar]<br>baz</div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>foo</div><p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:right><p>bar</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<div style=text-align:right><p>bar</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>foo</div><p>[bar]<div style=text-align:right><p>baz</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:right><p>foo</div><p>[bar]<div style=text-align:right><p>baz</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
+	[]],
+["<p align=right>foo<p>[bar]<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p align=right>foo<p>[bar]<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p>extra</p>",
+	[]],
+["<p>[foo]<p align=right>bar<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p></div><p align=\"right\">bar</p><p>extra</p>",
+	[]],
+["<p>[foo]<p align=right>bar<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p></div><p align=\"right\">bar</p><p>extra</p>",
+	[]],
+["<p align=right>foo<p>[bar]<p align=right>baz<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p align=\"right\">baz</p><p>extra</p>",
+	[]],
+["<p align=right>foo<p>[bar]<p align=right>baz<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p align=\"right\">baz</p><p>extra</p>",
+	[]],
+["<div align=right>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div align=right>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div align=right>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div align=right>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>[foo</div>bar]<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>[foo</div>bar]<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo<br>bar]</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>fo[o</div>b]ar<p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">fo[o<br>b]ar</div><p>extra</p>",
+	[]],
+["<span style=text-align:right>[foo]</span><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]</div><p>extra</p>",
+	[]],
+["<span style=text-align:right>[foo]</span><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]</div><p>extra</p>",
+	[]],
+["<span style=text-align:right>f[o]o</span><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">f[o]o</div><p>extra</p>",
+	[]],
+["<span style=text-align:right>f[o]o</span><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">f[o]o</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo</div><div style=\"text-align:left\" contenteditable=\"false\">bar</div><div style=\"text-align:right\">baz]</div><p>extra</p>",
+	[]],
+["<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo</div><div style=\"text-align:left\" contenteditable=\"false\">bar</div><div style=\"text-align:right\">baz]</div><p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div align=nonsense><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<div style=text-align:inherit><p>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
+	[]],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	[]],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]</div><p>extra</p>",
+	[]],
+["<div style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\">[foo]</div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div dir=\"rtl\">[foo]</div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div dir=\"rtl\">[foo]</div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div dir=\"rtl\">[foo]</div><p>extra</p>",
+	[]],
+["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div dir=\"rtl\">[foo]</div><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar]</p><p>baz</p></blockquote><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar]</p><blockquote><p>baz</p></blockquote><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar</p><p>b]az</p></blockquote><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar</p><p>b]az</p><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar]</p></blockquote><p>baz</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar]</p><p>baz</p><p>extra</p>",
+	[]],
+["<blockquote><p>foo[bar</p></blockquote><p>b]az</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar</p><p>b]az</p><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0px;\" dir=\"ltr\"><p>foo[bar]</p><p>baz</p></blockquote><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar]</p><blockquote><p>baz</p></blockquote><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0px;\" dir=\"ltr\"><p>foo[bar</p><p>b]az</p></blockquote><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar</p><p>b]az</p><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0px;\" dir=\"ltr\"><p>foo[bar]</p></blockquote><p>baz</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar]</p><p>baz</p><p>extra</p>",
+	[]],
+["<blockquote style=\"margin-right: 0px;\" dir=\"ltr\"><p>foo[bar</p></blockquote><p>b]az</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar</p><p>b]az</p><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar]</p><p style=\"margin-left: 40px\">baz</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p style=\"margin-left:40px\">foo[bar]</p><p style=\"margin-left:40px\">baz</p><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar</p><p style=\"margin-left: 40px\">b]az</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p style=\"margin-left:40px\">foo[bar</p><p style=\"margin-left:40px\">b]az</p><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar]</p><p>baz</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p style=\"margin-left:40px\">foo[bar]</p><p>baz</p><p>extra</p>",
+	[]],
+["<p style=\"margin-left: 40px\">foo[bar</p><p>b]az</p><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p style=\"margin-left:40px\">foo[bar</p><p>b]az</p><p>extra</p>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar]</p><blockquote><p>baz</p></blockquote><p>extra</p>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar</p><p>b]az</p><p>extra</p>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar]</p><p>baz</p><p>extra</p>",
+	[]],
+["<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",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo[bar</p><p>b]az</p><p>extra</p>",
+	[]],
+["<blockquote><blockquote>foo[bar]baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote>foo[bar]baz</blockquote>",
+	[]],
+["<blockquote><blockquote data-abc=def>foo[bar]baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote data-abc=\"def\">foo[bar]baz</blockquote>",
+	[]],
+["<blockquote data-abc=def><blockquote>foo[bar]baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote data-abc=\"def\">foo[bar]baz</blockquote>",
+	[]],
+["<blockquote><div>foo[bar]baz</div></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div>foo[bar]baz</div>",
+	[]],
+["<blockquote><div id=abc>foo[bar]baz</div></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div id=\"abc\">foo[bar]baz</div>",
+	[]],
+["<blockquote id=abc>foo[bar]baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div id=\"abc\">foo[bar]baz</div>",
+	[]],
+["<blockquote style=\"color: blue\">foo[bar]baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div style=\"color:rgb(0, 0, 255)\">foo[bar]baz</div>",
+	[]],
+["<blockquote><blockquote><p>foo[bar]<p>baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote><p>foo[bar]</p><blockquote><p>baz</p></blockquote></blockquote>",
+	[]],
+["<blockquote><blockquote data-abc=def><p>foo[bar]<p>baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote data-abc=\"def\"><p>foo[bar]</p><blockquote><p>baz</p></blockquote></blockquote>",
+	[]],
+["<blockquote data-abc=def><blockquote><p>foo[bar]<p>baz</blockquote></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote data-abc=\"def\"><p>foo[bar]</p><blockquote><p>baz</p></blockquote></blockquote>",
+	[]],
+["<blockquote><div><p>foo[bar]<p>baz</div></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div><p>foo[bar]</p><blockquote><p>baz</p></blockquote></div>",
+	[]],
+["<blockquote><div id=abc><p>foo[bar]<p>baz</div></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div id=\"abc\"><p>foo[bar]</p><blockquote><p>baz</p></blockquote></div>",
+	[]],
+["<blockquote id=abc><p>foo[bar]<p>baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div id=\"abc\"><p>foo[bar]</p><blockquote><p>baz</p></blockquote></div>",
+	[]],
+["<blockquote style=\"color: blue\"><p>foo[bar]<p>baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div style=\"color:rgb(0, 0, 255)\"><p>foo[bar]</p><blockquote><p>baz</p></blockquote></div>",
+	[]],
+["<blockquote><p><b>foo[bar]</b><p>baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p><b>foo[bar]</b></p><blockquote><p>baz</p></blockquote>",
+	[]],
+["<blockquote><p><strong>foo[bar]</strong><p>baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p><strong>foo[bar]</strong></p><blockquote><p>baz</p></blockquote>",
+	[]],
+["<blockquote><p><span>foo[bar]</span><p>baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p><span>foo[bar]</span></p><blockquote><p>baz</p></blockquote>",
+	[]],
+["<blockquote><blockquote style=\"color: blue\"><p>foo[bar]</blockquote><p>baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote style=\"color:rgb(0, 0, 255)\"><p>foo[bar]</p></blockquote><blockquote><p>baz</p></blockquote>",
+	[]],
+["<blockquote style=\"color: blue\"><blockquote><p>foo[bar]</blockquote><p>baz</blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote style=\"color:rgb(0, 0, 255)\"><p>foo[bar]</p><p>baz</p></blockquote>",
+	[]],
+["<ol><li>foo<li>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li></ol><p>[bar]</p><ol><li>baz</li></ol>",
+	[]],
+["<ol data-start=1 data-end=2><li>foo<li>bar<li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li>{</ol><p>bar</p>}<ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</ol>[bar]",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li></ol>[bar]",
+	[]],
+["<ol><li>[foo]<br>bar<li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo]<br>bar</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<br>[bar]<li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>foo<br>[bar]</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li><div>[foo]</div>bar<li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<div>[foo]</div><p>bar</p><ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar]</li><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol><li>[baz]</li><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>[bar]<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar]</li><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol data-start=0 data-end=1><li>bar<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li>{<li>bar</li>}<ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>[baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol><li>[baz]</li><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol data-start=1 data-end=2><li>bar<li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol>{<li>baz</li>}<li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>b[a]r</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>b[a]r</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol><li>b[a]r</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>b[a]r</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo{<ol><li>bar</ol>}<li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li>{<li>bar</li>}<li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li>{<ol><li>bar</ol>}<li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li>{<li>bar</li>}<li>baz</li></ol>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo]</p><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo]</li><ol><li>bar</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo]</p><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]<ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li></ol><p>[bar]</p><ol><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<li>[bar]</li><ol><li>baz</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li></ol><p>[bar]</p><ol><ol><li>baz</li></ol><li>quz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo<ol><li>bar</li><li>baz</li></ol></li></ol><p>[quz]</p>",
+	[]],
+["<ol><li>foo</li><ol><li>bar<li>baz</ol><li>[quz]</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><ol><li>bar</li><li>baz</li></ol></ol><p>[quz]</p>",
+	[]],
+["<ol><li>foo<li>b[ar<li>baz]</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li></ol><p>b[ar</p><p>baz]</p>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo</p><ol><li>bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>[foo</li><ol><li>bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo</p><ol><li>bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>b[ar</ol><li>b]az</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>b[ar</li></ol><p>b]az</p>",
+	[]],
+["<ol><li>foo</li><ol><li>b[ar</ol><li>b]az</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>b[ar</li></ol><p>b]az</p>",
+	[]],
+["<ol><li>[foo<ol><li>bar</ol><li>baz]</ol><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo</p><ol><li>bar</li></ol><p>baz]</p><p>extra</p>",
+	[]],
+["<ol><li>[foo</li><ol><li>bar</ol><li>baz]</ol><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo</p><ol><li>bar</li></ol><p>baz]</p><p>extra</p>",
+	[]],
+["<ol><li>[foo]<ol><li>bar</ol>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo]</p><ol><ol><li>bar</li></ol><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>[bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo<ol><li>bar</ol>[baz]</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><ol><li>bar</li></ol></ol><p>[baz]</p>",
+	[]],
+["<ol><li>[foo<ol><li>bar]</ol>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[foo</p><ol><li>bar]</li><li>baz</li></ol>",
+	[]],
+["foo<ol start=5><li>[bar]</ol>baz",
+	[["stylewithcss","false"],["outdent",""]],
+	"foo<p>[bar]</p>baz",
+	[]],
+["foo<ol id=abc><li>[bar]</ol>baz",
+	[["stylewithcss","false"],["outdent",""]],
+	"foo<div id=\"abc\"><p>[bar]</p></div>baz",
+	[]],
+["foo<ol style=color:blue><li>[bar]</ol>baz",
+	[["stylewithcss","false"],["outdent",""]],
+	"foo<div style=\"color:rgb(0, 0, 255)\"><p>[bar]</p></div>baz",
+	[]],
+["foo<ol><li value=5>[bar]</ol>baz",
+	[["stylewithcss","false"],["outdent",""]],
+	"foo<p value=\"5\">[bar]</p>baz",
+	[]],
+["foo<ol><li id=abc>[bar]</ol>baz",
+	[["stylewithcss","false"],["outdent",""]],
+	"foo<p id=\"abc\">[bar]</p>baz",
+	[]],
+["foo<ol><li style=color:blue>[bar]</ol>baz",
+	[["stylewithcss","false"],["outdent",""]],
+	"foo<p style=\"color:rgb(0, 0, 255)\">[bar]</p>baz",
+	[]],
+["<ol><li>foo</li><ol><li value=5>[bar]</ol></ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li value=\"5\">[bar]</li></ol>",
+	[]],
+["<ul><li>foo</li><ol><li value=5>[bar]</ol></ul>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ul><li>foo</li><li value=\"5\">[bar]</li></ul>",
+	[]],
+["<ol><li>foo</li><ol start=5><li>[bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol id=abc><li>[bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol style=color:blue><li>[bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li><font color=\"#0000ff\">[bar]</font></li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol style=text-indent:1em><li>[bar]</ol><li>baz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar]</li><li>baz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol start=5><li>[bar<li>baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar</li><li>baz]</li><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol id=abc><li>[bar<li>baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar</li><li>baz]</li><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol style=color:blue><li>[bar<li>baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li><font color=\"#0000ff\">[bar</font></li><li><font color=\"#0000ff\">baz]</font></li><li>quz</li></ol>",
+	[]],
+["<ol><li>foo</li><ol style=text-indent:1em><li>[bar<li>baz]</ol><li>quz</ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>foo</li><li>[bar</li><li>baz]</li><li>quz</li></ol>",
+	[]],
+["<blockquote><ol><li>[foo]</ol></blockquote><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<ol><li>[foo]</li></ol><p>extra</p>",
+	[]],
+["<blockquote>foo<ol><li>[bar]</ol>baz</blockquote><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote>foo</blockquote><ol><li>[bar]</li></ol><blockquote>baz</blockquote><p>extra</p>",
+	[]],
+["<blockquote><ol><li>foo</li><ol><li>[bar]</ol><li>baz</ol></blockquote><p>extra",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote><ol><li>foo</li><li>[bar]</li><li>baz</li></ol></blockquote><p>extra</p>",
+	[]],
+["<ol><li><h1>[foo]</h1></ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<h1>[foo]</h1>",
+	[]],
+["<ol><li><xmp>[foo]</xmp></li></ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<xmp>[foo]</xmp>",
+	[]],
+["<blockquote><ol><li>foo<div><ol><li>[bar]</ol></div><li>baz</ol></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote><ol><li>foo</li><li>[bar]</li><li>baz</li></ol></blockquote>",
+	[]],
+["<ol><li>[]a<table><tr><td><br></table></ol>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<p>[]a</p><table><tbody><tr><td><br></td></tr></tbody></table>",
+	[]],
+["<blockquote><span>foo<br>[bar]</span></blockquote>",
+	[["stylewithcss","false"],["outdent",""]],
+	"<blockquote>foo</blockquote><span>[bar]</span>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["removeformat",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["removeformat",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["[foo<b>bar</b>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo[<b>bar</b>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo[barbaz]",
+	[]],
+["foo[<b>bar</b>]baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo[bar]baz",
+	[]],
+["foo<b>b[a]r</b>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<b>b</b>[a]<b>r</b>baz",
+	[]],
+["[foo<strong>bar</strong>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["[foo<span style=\"font-weight: bold\">bar</span>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["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",
+	[]],
+["[foo<span style=\"font-variant: small-caps\">bar</span>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["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",
+	[]],
+["[foo<b id=foo>bar</b>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<b id=foo>b[a]r</b>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<b id=\"foo\">b</b>[a]<b>r</b>baz",
+	[]],
+["[foo<a>bar</a>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<a>bar</a>baz]",
+	[]],
+["foo<a>b[a]r</a>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<a>b[a]r</a>baz",
+	[]],
+["[foo<a href=foo>bar</a>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<a href=\"foo\">bar</a>baz]",
+	[]],
+["foo<a href=foo>b[a]r</a>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<a href=\"foo\">b[a]r</a>baz",
+	[]],
+["[foo<abbr>bar</abbr>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<abbr>b[a]r</abbr>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<abbr>b</abbr>[a]<abbr>r</abbr>baz",
+	[]],
+["[foo<acronym>bar</acronym>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<acronym>b[a]r</acronym>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<acronym>b</acronym>[a]<acronym>r</acronym>baz",
+	[]],
+["[foo<b>bar</b>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<b>b[a]r</b>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<b>b</b>[a]<b>r</b>baz",
+	[]],
+["[foo<bdi dir=rtl>bar</bdi>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<bdi dir=rtl>b[a]r</bdi>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<bdi dir=\"rtl\">b</bdi>[a]<bdi dir=\"rtl\">r</bdi>baz",
+	[]],
+["[foo<bdo dir=rtl>bar</bdo>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<bdo dir=rtl>b[a]r</bdo>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<bdo dir=\"rtl\">b</bdo>[a]<bdo dir=\"rtl\">r</bdo>baz",
+	[]],
+["[foo<big>bar</big>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<big>b[a]r</big>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<big>b</big>[a]<big>r</big>baz",
+	[]],
+["[foo<blink>bar</blink>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<blink>b[a]r</blink>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<blink>b</blink>[a]<blink>r</blink>baz",
+	[]],
+["[foo<cite>bar</cite>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<cite>b[a]r</cite>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<cite>b</cite>[a]<cite>r</cite>baz",
+	[]],
+["[foo<code>bar</code>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<code>b[a]r</code>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<code>b</code>[a]<code>r</code>baz",
+	[]],
+["[foo<del>bar</del>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<del>bar</del>baz]",
+	[]],
+["foo<del>b[a]r</del>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<del>b[a]r</del>baz",
+	[]],
+["[foo<dfn>bar</dfn>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<dfn>b[a]r</dfn>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<dfn>b</dfn>[a]<dfn>r</dfn>baz",
+	[]],
+["[foo<em>bar</em>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<em>b[a]r</em>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<em>b</em>[a]<em>r</em>baz",
+	[]],
+["[foo<font>bar</font>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<font>b[a]r</font>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<font>b</font>[a]<font>r</font>baz",
+	[]],
+["[foo<font color=blue>bar</font>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["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",
+	[]],
+["[foo<i>bar</i>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<i>b[a]r</i>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<i>b</i>[a]<i>r</i>baz",
+	[]],
+["[foo<ins>bar</ins>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<ins>b[a]r</ins>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<ins>b</ins>[a]<ins>r</ins>baz",
+	[]],
+["[foo<kbd>bar</kbd>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<kbd>b[a]r</kbd>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<kbd>b</kbd>[a]<kbd>r</kbd>baz",
+	[]],
+["[foo<mark>bar</mark>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<mark>b[a]r</mark>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<mark>b</mark>[a]<mark>r</mark>baz",
+	[]],
+["[foo<nobr>bar</nobr>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<nobr>b[a]r</nobr>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<nobr>b</nobr>[a]<nobr>r</nobr>baz",
+	[]],
+["[foo<q>bar</q>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<q>b[a]r</q>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<q>b</q>[a]<q>r</q>baz",
+	[]],
+["[foo<samp>bar</samp>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<samp>b[a]r</samp>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<samp>b</samp>[a]<samp>r</samp>baz",
+	[]],
+["[foo<s>bar</s>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<s>b[a]r</s>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<s>b</s>[a]<s>r</s>baz",
+	[]],
+["[foo<small>bar</small>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<small>b[a]r</small>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<small>b</small>[a]<small>r</small>baz",
+	[]],
+["[foo<span>bar</span>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<span>b[a]r</span>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<span>b</span>[a]<span>r</span>baz",
+	[]],
+["[foo<strike>bar</strike>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<strike>b[a]r</strike>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<strike>b</strike>[a]<strike>r</strike>baz",
+	[]],
+["[foo<strong>bar</strong>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<strong>b[a]r</strong>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<strong>b</strong>[a]<strong>r</strong>baz",
+	[]],
+["[foo<sub>bar</sub>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<sub>b[a]r</sub>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<sub>b</sub>[a]<sub>r</sub>baz",
+	[]],
+["[foo<sup>bar</sup>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<sup>b[a]r</sup>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<sup>b</sup>[a]<sup>r</sup>baz",
+	[]],
+["[foo<tt>bar</tt>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<tt>b[a]r</tt>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<tt>b</tt>[a]<tt>r</tt>baz",
+	[]],
+["[foo<u>bar</u>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<u>b[a]r</u>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<u>b</u>[a]<u>r</u>baz",
+	[]],
+["[foo<var>bar</var>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<var>b[a]r</var>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<var>b</var>[a]<var>r</var>baz",
+	[]],
+["[foo<br>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<br>bar]",
+	[]],
+["[foo<hr>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<hr>bar]",
+	[]],
+["[foo<wbr>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<wbr>bar]",
+	[]],
+["[foo<img>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<img>bar]",
+	[]],
+["[foo<img src=abc>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<img src=\"abc\">bar]",
+	[]],
+["[foo<video></video>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<video></video>bar]",
+	[]],
+["[foo<video src=abc></video>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<video src=\"abc\"></video>bar]",
+	[]],
+["[foo<svg><circle fill=blue r=20 cx=20 cy=20 /></svg>bar]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<svg><circle fill=\"blue\" r=\"20\" cx=\"20\" cy=\"20\"></circle></svg>bar]",
+	[]],
+["[foo<nonexistentelement>bar</nonexistentelement>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<nonexistentelement>bar</nonexistentelement>baz]",
+	[]],
+["foo<nonexistentelement>b[a]r</nonexistentelement>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<nonexistentelement>b[a]r</nonexistentelement>baz",
+	[]],
+["[foo<nonexistentelement style=\"display: block\">bar</nonexistentelement>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foo<nonexistentelement style=\"display:block\">bar</nonexistentelement>baz]",
+	[]],
+["foo<nonexistentelement style=\"display: block\">b[a]r</nonexistentelement>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<nonexistentelement style=\"display:block\">b[a]r</nonexistentelement>baz",
+	[]],
+["[foo<span id=foo>bar</span>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<span id=foo>b[a]r</span>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<span id=\"foo\">b</span>[a]<span>r</span>baz",
+	[]],
+["[foo<span class=foo>bar</span>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["foo<span class=foo>b[a]r</span>baz",
+	[["stylewithcss","false"],["removeformat",""]],
+	"foo<span class=\"foo\">b</span>[a]<span class=\"foo\">r</span>baz",
+	[]],
+["[foo<b style=\"font-weight: normal\">bar</b>baz]",
+	[["stylewithcss","false"],["removeformat",""]],
+	"[foobarbaz]",
+	[]],
+["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",
+	[]],
+["<p style=\"background-color: aqua\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["removeformat",""]],
+	"<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
+	[]],
+["<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>",
+	[]],
+["<p style=\"font-weight: bold\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["removeformat",""]],
+	"<p><b>foo</b>[bar]<b>baz</b></p>",
+	[]],
+["<b><p style=\"font-weight: bold\">foo[bar]baz</p></b>",
+	[["stylewithcss","false"],["removeformat",""]],
+	"<p><b>foo</b>[bar]<b>baz</b></p>",
+	[]],
+["<p style=\"font-variant: small-caps\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["removeformat",""]],
+	"<p style=\"font-variant:small-caps\">foo[bar]baz</p>",
+	[]],
+["{<p style=\"font-variant: small-caps\">foobarbaz</p>}",
+	[["stylewithcss","false"],["removeformat",""]],
+	"{<p style=\"font-variant:small-caps\">foobarbaz</p>}",
+	[]],
+["<p style=\"text-indent: 2em\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["removeformat",""]],
+	"<p style=\"text-indent:2em\">foo[bar]baz</p>",
+	[]],
+["{<p style=\"text-indent: 2em\">foobarbaz</p>}",
+	[["stylewithcss","false"],["removeformat",""]],
+	"{<p style=\"text-indent:2em\">foobarbaz</p>}",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s>[bar]</s>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s>[bar]</s>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\">[bar]</span>baz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s>[bar</s><b><s>baz]</s>qoz</b>quz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\">[bar</span><b><span style=\"text-decoration:line-through\">baz]</span>qoz</b>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<table><tbody><tr><td>foo</td><td>b<s>[a]</s>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"text-decoration:line-through\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<table><tbody><tr><td>foo</td>{<td><s>bar</s></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"text-decoration:line-through\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<table><tbody><tr>{<td><s>foo</s></td><td><s>bar</s></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<table><tbody><tr>{<td><span style=\"text-decoration:line-through\">foo</span></td><td><span style=\"text-decoration:line-through\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<table><tbody>{<tr><td><s>foo</s></td><td><s>bar</s></td><td><s>baz</s></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<table><tbody>{<tr><td><span style=\"text-decoration:line-through\">foo</span></td><td><span style=\"text-decoration:line-through\">bar</span></td><td><span style=\"text-decoration:line-through\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<table>{<tbody><tr><td><s>foo</s></td><td><s>bar</s></td><td><s>baz</s></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<table>{<tbody><tr><td><span style=\"text-decoration:line-through\">foo</span></td><td><span style=\"text-decoration:line-through\">bar</span></td><td><span style=\"text-decoration:line-through\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"{<table><tbody><tr><td><s>foo</s></td><td><s>bar</s></td><td><s>baz</s></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"{<table><tbody><tr><td><span style=\"text-decoration:line-through\">foo</span></td><td><span style=\"text-decoration:line-through\">bar</span></td><td><span style=\"text-decoration:line-through\">baz</span></td></tr></tbody></table>}",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s><u>[bar]</u></s>baz",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\"><u>[bar]</u></span>baz",
+	[]],
+["foo<span style=\"text-decoration: underline\">[bar]</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s><span style=\"text-decoration:underline\">[bar]</span></s>baz",
+	[]],
+["foo<span style=\"text-decoration: underline\">[bar]</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\"><span style=\"text-decoration:underline\">[bar]</span></span>baz",
+	[]],
+["<u>foo[bar]baz</u>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<u>foo<s>[bar]</s>baz</u>",
+	[]],
+["<u>foo[bar]baz</u>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<u>foo<span style=\"text-decoration:line-through\">[bar]</span>baz</u>",
+	[]],
+["<u>foo[b<span style=\"color:blue\">ar]ba</span>z</u>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<u>foo<s>[b</s><span style=\"color:rgb(0, 0, 255)\"><s>ar]</s>ba</span>z</u>",
+	[]],
+["<u>foo[b<span style=\"color:blue\">ar]ba</span>z</u>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<u>foo<span style=\"text-decoration:line-through\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:line-through\">ar]</span>ba</span>z</u>",
+	[]],
+["<u>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</u>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<u>foo<s>[b</s><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><s>ar]</s>ba</span>z</u>",
+	[]],
+["<u>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</u>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<u>foo<span style=\"text-decoration:line-through\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:line-through\">ar]</span>ba</span>z</u>",
+	[]],
+["<u>foo[b<span style=\"font-size:3em\">ar]ba</span>z</u>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<u>foo<s>[b</s><span style=\"font-size:3em\"><s>ar]</s>ba</span>z</u>",
+	[]],
+["<u>foo[b<span style=\"font-size:3em\">ar]ba</span>z</u>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<u>foo<span style=\"text-decoration:line-through\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:line-through\">ar]</span>ba</span>z</u>",
+	[]],
+["<u>foo[b<i>ar]ba</i>z</u>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<u>foo<s>[b</s><i><s>ar]</s>ba</i>z</u>",
+	[]],
+["<u>foo[b<i>ar]ba</i>z</u>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<u>foo<span style=\"text-decoration:line-through\">[b</span><i><span style=\"text-decoration:line-through\">ar]</span>ba</i>z</u>",
+	[]],
+["<p style=\"text-decoration: underline\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<p style=\"text-decoration:underline\">foo<s>[bar]</s>baz</p>",
+	[]],
+["<p style=\"text-decoration: underline\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<p style=\"text-decoration:underline\">foo<span style=\"text-decoration:line-through\">[bar]</span>baz</p>",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"text-decoration: line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"text-decoration: line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["<s>foo[bar]baz</s>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[bar]<s>baz</s>",
+	[]],
+["<s>foo[bar]baz</s>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[bar]<span style=\"text-decoration:line-through\">baz</span>",
+	[]],
+["<s>foo[b<span style=\"color:blue\">ar]ba</span>z</s>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<span style=\"color:rgb(0, 0, 255)\">ar]<s>ba</s></span><s>z</s>",
+	[]],
+["<s>foo[b<span style=\"color:blue\">ar]ba</span>z</s>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\">ar]<span style=\"text-decoration:line-through\">ba</span></span><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["<s>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</s>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<s>ba</s></span><s>z</s>",
+	[]],
+["<s>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</s>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<span style=\"text-decoration:line-through\">ba</span></span><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["<s>foo[b<span style=\"font-size:3em\">ar]ba</span>z</s>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<span style=\"font-size:3em\">ar]<s>ba</s></span><s>z</s>",
+	[]],
+["<s>foo[b<span style=\"font-size:3em\">ar]ba</span>z</s>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<span style=\"font-size:3em\">ar]<span style=\"text-decoration:line-through\">ba</span></span><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["<s>foo[b<i>ar]ba</i>z</s>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<i>ar]<s>ba</s></i><s>z</s>",
+	[]],
+["<s>foo[b<i>ar]ba</i>z</s>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<i>ar]<span style=\"text-decoration:line-through\">ba</span></i><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<p><s>foo</s>[bar]<s>baz</s></p>",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<p><span style=\"text-decoration:line-through\">foo</span>[bar]<span style=\"text-decoration:line-through\">baz</span></p>",
+	[]],
+["foo<strike>[bar]</strike>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<strike>[bar]</strike>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["<strike>foo[bar]baz</strike>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[bar]<s>baz</s>",
+	[]],
+["<strike>foo[bar]baz</strike>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[bar]<span style=\"text-decoration:line-through\">baz</span>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\">ar]ba</span>z</strike>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<span style=\"color:rgb(0, 0, 255)\">ar]<s>ba</s></span><s>z</s>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\">ar]ba</span>z</strike>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\">ar]<span style=\"text-decoration:line-through\">ba</span></span><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</strike>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<s>ba</s></span><s>z</s>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</strike>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<span style=\"text-decoration:line-through\">ba</span></span><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["<strike>foo[b<span style=\"font-size:3em\">ar]ba</span>z</strike>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<span style=\"font-size:3em\">ar]<s>ba</s></span><s>z</s>",
+	[]],
+["<strike>foo[b<span style=\"font-size:3em\">ar]ba</span>z</strike>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<span style=\"font-size:3em\">ar]<span style=\"text-decoration:line-through\">ba</span></span><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["<strike>foo[b<i>ar]ba</i>z</strike>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>foo</s>[b<i>ar]<s>ba</s></i><s>z</s>",
+	[]],
+["<strike>foo[b<i>ar]ba</i>z</strike>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">foo</span>[b<i>ar]<span style=\"text-decoration:line-through\">ba</span></i><span style=\"text-decoration:line-through\">z</span>",
+	[]],
+["foo<ins>[bar]</ins>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s><ins>[bar]</ins></s>baz",
+	[]],
+["foo<ins>[bar]</ins>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\"><ins>[bar]</ins></span>baz",
+	[]],
+["<ins>foo[bar]baz</ins>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<ins>foo<s>[bar]</s>baz</ins>",
+	[]],
+["<ins>foo[bar]baz</ins>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<ins>foo<span style=\"text-decoration:line-through\">[bar]</span>baz</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\">ar]ba</span>z</ins>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<ins>foo<s>[b</s><span style=\"color:rgb(0, 0, 255)\"><s>ar]</s>ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\">ar]ba</span>z</ins>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<ins>foo<span style=\"text-decoration:line-through\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:line-through\">ar]</span>ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</ins>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<ins>foo<s>[b</s><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><s>ar]</s>ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</ins>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<ins>foo<span style=\"text-decoration:line-through\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:line-through\">ar]</span>ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<ins>foo<s>[b</s><span style=\"font-size:3em\"><s>ar]</s>ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<ins>foo<span style=\"text-decoration:line-through\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:line-through\">ar]</span>ba</span>z</ins>",
+	[]],
+["<ins>foo[b<i>ar]ba</i>z</ins>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<ins>foo<s>[b</s><i><s>ar]</s>ba</i>z</ins>",
+	[]],
+["<ins>foo[b<i>ar]ba</i>z</ins>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<ins>foo<span style=\"text-decoration:line-through\">[b</span><i><span style=\"text-decoration:line-through\">ar]</span>ba</i>z</ins>",
+	[]],
+["foo<del>[bar]</del>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<del>[bar]</del>baz",
+	[]],
+["foo<del>[bar]</del>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<del>[bar]</del>baz",
+	[]],
+["<del>foo[bar]baz</del>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<del>foo[bar]baz</del>",
+	[]],
+["<del>foo[bar]baz</del>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<del>foo[bar]baz</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\">ar]ba</span>z</del>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<del>foo[b<span style=\"color:rgb(0, 0, 255)\">ar]ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\">ar]ba</span>z</del>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<del>foo[b<span style=\"color:rgb(0, 0, 255)\">ar]ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</del>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<del>foo[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</del>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<del>foo[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",
+	[]],
+["<del>foo[b<i>ar]ba</i>z</del>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<del>foo[b<i>ar]ba</i>z</del>",
+	[]],
+["<del>foo[b<i>ar]ba</i>z</del>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<del>foo[b<i>ar]ba</i>z</del>",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:underline\">[bar]</span>baz",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:underline\">[bar]</span>baz",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">b[a]r</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:underline\"><s>b</s>[a]<s>r</s></span>baz",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">b[a]r</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:underline\"><span style=\"text-decoration:line-through\">b</span>[a]<span style=\"text-decoration:line-through\">r</span></span>baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">[bar]</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s><s style=\"text-decoration:underline\">[bar]</s></s>baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">[bar]</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\"><s style=\"text-decoration:underline\">[bar]</s></span>baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">b[a]r</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s style=\"text-decoration:underline\">b<s>[a]</s>r</s>baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">b[a]r</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<s style=\"text-decoration:underline\">b<span style=\"text-decoration:line-through\">[a]</span>r</s>baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">[bar]</u>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">[bar]</u>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">b[a]r</u>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s>b</s>[a]<s>r</s>baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">b[a]r</u>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\">b</span>[a]<span style=\"text-decoration:line-through\">r</span>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">[bar]</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s><s style=\"text-decoration:overline\">[bar]</s></s>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">[bar]</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\"><s style=\"text-decoration:overline\">[bar]</s></span>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">b[a]r</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s style=\"text-decoration:overline\">b<s>[a]</s>r</s>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">b[a]r</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<s style=\"text-decoration:overline\">b<span style=\"text-decoration:line-through\">[a]</span>r</s>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">[bar]</u>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s><u style=\"text-decoration:overline\">[bar]</u></s>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">[bar]</u>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\"><u style=\"text-decoration:overline\">[bar]</u></span>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">b[a]r</u>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<u style=\"text-decoration:overline\">b<s>[a]</s>r</u>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">b[a]r</u>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<u style=\"text-decoration:overline\">b<span style=\"text-decoration:line-through\">[a]</span>r</u>baz",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<p><s>foo</s>[bar]<s>baz</s></p>",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<p><span style=\"text-decoration:line-through\">foo</span>[bar]<span style=\"text-decoration:line-through\">baz</span></p>",
+	[]],
+["<p style=\"text-decoration: overline\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<p style=\"text-decoration:overline\">foo<s>[bar]</s>baz</p>",
+	[]],
+["<p style=\"text-decoration: overline\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<p style=\"text-decoration:overline\">foo<span style=\"text-decoration:line-through\">[bar]</span>baz</p>",
+	[]],
+["foo<span class=\"underline\">[bar]</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s><span class=\"underline\">[bar]</span></s>baz",
+	[]],
+["foo<span class=\"underline\">[bar]</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\"><span class=\"underline\">[bar]</span></span>baz",
+	[]],
+["foo<span class=\"underline\">b[a]r</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<span class=\"underline\">b<s>[a]</s>r</span>baz",
+	[]],
+["foo<span class=\"underline\">b[a]r</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span class=\"underline\">b<span style=\"text-decoration:line-through\">[a]</span>r</span>baz",
+	[]],
+["foo<span class=\"line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<span class=\"line-through\">[bar]</span>baz",
+	[]],
+["foo<span class=\"line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span class=\"line-through\">[bar]</span>baz",
+	[]],
+["foo<span class=\"line-through\">b[a]r</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<span class=\"line-through\">b[a]r</span>baz",
+	[]],
+["foo<span class=\"line-through\">b[a]r</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span class=\"line-through\">b[a]r</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[]],
+["fo[o<s>b]ar</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"fo<s>[ob]ar</s>baz",
+	[]],
+["fo[o<s>b]ar</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"fo<s>[ob]ar</s>baz",
+	[]],
+["foo<s>ba[r</s>b]az",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s>ba[rb]</s>az",
+	[]],
+["foo<s>ba[r</s>b]az",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<s>ba[rb]</s>az",
+	[]],
+["fo[o<s>bar</s>b]az",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"fo<s>[obarb]</s>az",
+	[]],
+["fo[o<s>bar</s>b]az",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"fo<span style=\"text-decoration:line-through\">[obarb]</span>az",
+	[]],
+["foo[<s>b]ar</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[b]<s>ar</s>baz",
+	[]],
+["foo[<s>b]ar</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[b]<span style=\"text-decoration:line-through\">ar</span>baz",
+	[]],
+["foo<s>ba[r</s>]baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo<s>ba</s>[r]baz",
+	[]],
+["foo<s>ba[r</s>]baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo<span style=\"text-decoration:line-through\">ba</span>[r]baz",
+	[]],
+["foo[<s>bar</s>]baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<s>bar</s>]baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo[bar]baz",
+	[]],
+["foo{<s>bar</s>}baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<s>bar</s>}baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"foo{bar}baz",
+	[]],
+["fo[o<span style=text-decoration:line-through>b]ar</span>baz",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"fo<span style=\"text-decoration:line-through\">[ob]ar</span>baz",
+	[]],
+["fo[o<span style=text-decoration:line-through>b]ar</span>baz",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"fo<span style=\"text-decoration:line-through\">[ob]ar</span>baz",
+	[]],
+["<strike>fo[o</strike><s>b]ar</s>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>fo</s>[ob]<s>ar</s>",
+	[]],
+["<strike>fo[o</strike><s>b]ar</s>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">fo</span>[ob]<span style=\"text-decoration:line-through\">ar</span>",
+	[]],
+["<s>fo[o</s><del>b]ar</del>",
+	[["stylewithcss","false"],["strikethrough",""]],
+	"<s>fo</s>[o<del>b]ar</del>",
+	[]],
+["<s>fo[o</s><del>b]ar</del>",
+	[["stylewithcss","true"],["strikethrough",""]],
+	"<span style=\"text-decoration:line-through\">fo</span>[o<del>b]ar</del>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>[bar</sub><b><sub>baz]</sub>qoz</b>quz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>[bar</sub><b><sub>baz]</sub>qoz</b>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<table><tbody><tr><td>foo</td><td>b<sub>[a]</sub>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<table><tbody><tr><td>foo</td><td>b<sub>[a]</sub>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<table><tbody><tr><td>foo</td>{<td><sub>bar</sub></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<table><tbody><tr><td>foo</td>{<td><sub>bar</sub></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<table><tbody><tr>{<td><sub>foo</sub></td><td><sub>bar</sub></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<table><tbody><tr>{<td><sub>foo</sub></td><td><sub>bar</sub></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<table><tbody>{<tr><td><sub>foo</sub></td><td><sub>bar</sub></td><td><sub>baz</sub></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<table><tbody>{<tr><td><sub>foo</sub></td><td><sub>bar</sub></td><td><sub>baz</sub></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<table>{<tbody><tr><td><sub>foo</sub></td><td><sub>bar</sub></td><td><sub>baz</sub></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<table>{<tbody><tr><td><sub>foo</sub></td><td><sub>bar</sub></td><td><sub>baz</sub></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["subscript",""]],
+	"{<table><tbody><tr><td><sub>foo</sub></td><td><sub>bar</sub></td><td><sub>baz</sub></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["subscript",""]],
+	"{<table><tbody><tr><td><sub>foo</sub></td><td><sub>bar</sub></td><td><sub>baz</sub></td></tr></tbody></table>}",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sub>b[a]r</sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>b</sub>[a]<sub>r</sub>baz",
+	[]],
+["foo<sub>b[a]r</sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>b</sub>[a]<sub>r</sub>baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sup>b[a]r</sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sup>b[a]r</sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<span style=vertical-align:sub>[bar]</span>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub><span style=\"vertical-align:sub\">[bar]</span></sub>baz",
+	[]],
+["foo<span style=vertical-align:sub>[bar]</span>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub><span style=\"vertical-align:sub\">[bar]</span></sub>baz",
+	[]],
+["foo<span style=vertical-align:super>[bar]</span>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub><span style=\"vertical-align:super\">[bar]</span></sub>baz",
+	[]],
+["foo<span style=vertical-align:super>[bar]</span>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub><span style=\"vertical-align:super\">[bar]</span></sub>baz",
+	[]],
+["foo<sub><sub>[bar]</sub></sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sub><sub>[bar]</sub></sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sub><sub>b[a]r</sub></sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>b</sub>[a]<sub>r</sub>baz",
+	[]],
+["foo<sub><sub>b[a]r</sub></sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>b</sub>[a]<sub>r</sub>baz",
+	[]],
+["foo<sub>b<sub>[a]</sub>r</sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>b</sub>[a]<sub>r</sub>baz",
+	[]],
+["foo<sub>b<sub>[a]</sub>r</sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>b</sub>[a]<sub>r</sub>baz",
+	[]],
+["foo<sup><sup>[bar]</sup></sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sup><sup>[bar]</sup></sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sup><sup>b[a]r</sup></sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sup><sup>b[a]r</sup></sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sup>b<sup>[a]</sup>r</sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sup>b<sup>[a]</sup>r</sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sub><sup>[bar]</sup></sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sub><sup>[bar]</sup></sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sub><sup>b[a]r</sup></sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sub><sup>b[a]r</sup></sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sub>b<sup>[a]</sup>r</sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>b[a]r</sub>baz",
+	[]],
+["foo<sub>b<sup>[a]</sup>r</sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>b[a]r</sub>baz",
+	[]],
+["foo<sup><sub>[bar]</sub></sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sup><sub>[bar]</sub></sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>[bar]</sub>baz",
+	[]],
+["foo<sup><sub>b[a]r</sub></sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>b[a]r</sub>baz",
+	[]],
+["foo<sup><sub>b[a]r</sub></sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>b[a]r</sub>baz",
+	[]],
+["foo<sup>b<sub>[a]</sub>r</sup>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["foo<sup>b<sub>[a]</sub>r</sup>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sup>b</sup><sub>[a]</sub><sup>r</sup>baz",
+	[]],
+["fo[o<sub>b]ar</sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"fo<sub>[ob]ar</sub>baz",
+	[]],
+["fo[o<sub>b]ar</sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"fo<sub>[ob]ar</sub>baz",
+	[]],
+["foo<sub>ba[r</sub>b]az",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>ba[rb]</sub>az",
+	[]],
+["foo<sub>ba[r</sub>b]az",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>ba[rb]</sub>az",
+	[]],
+["fo[o<sub>bar</sub>b]az",
+	[["stylewithcss","false"],["subscript",""]],
+	"fo<sub>[obarb]</sub>az",
+	[]],
+["fo[o<sub>bar</sub>b]az",
+	[["stylewithcss","true"],["subscript",""]],
+	"fo<sub>[obarb]</sub>az",
+	[]],
+["foo[<sub>b]ar</sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo[b]<sub>ar</sub>baz",
+	[]],
+["foo[<sub>b]ar</sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo[b]<sub>ar</sub>baz",
+	[]],
+["foo<sub>ba[r</sub>]baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub>ba</sub>[r]baz",
+	[]],
+["foo<sub>ba[r</sub>]baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub>ba</sub>[r]baz",
+	[]],
+["foo[<sub>bar</sub>]baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<sub>bar</sub>]baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo{<sub>bar</sub>}baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<sub>bar</sub>}baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo{bar}baz",
+	[]],
+["<sub>fo[o</sub><sup>b]ar</sup>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<sub>fo[ob]</sub><sup>ar</sup>",
+	[]],
+["<sub>fo[o</sub><sup>b]ar</sup>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<sub>fo[ob]</sub><sup>ar</sup>",
+	[]],
+["<sub>fo[o</sub><span style=vertical-align:sub>b]ar</span>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<sub>fo[o</sub><span style=\"vertical-align:sub\"><sub>b]</sub>ar</span>",
+	[]],
+["<sub>fo[o</sub><span style=vertical-align:sub>b]ar</span>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<sub>fo[o</sub><span style=\"vertical-align:sub\"><sub>b]</sub>ar</span>",
+	[]],
+["foo<span style=vertical-align:top>[bar]</span>baz",
+	[["stylewithcss","false"],["subscript",""]],
+	"foo<sub><span style=\"vertical-align:top\">[bar]</span></sub>baz",
+	[]],
+["foo<span style=vertical-align:top>[bar]</span>baz",
+	[["stylewithcss","true"],["subscript",""]],
+	"foo<sub><span style=\"vertical-align:top\">[bar]</span></sub>baz",
+	[]],
+["<sub>fo[o</sub><span style=vertical-align:top>b]ar</span>",
+	[["stylewithcss","false"],["subscript",""]],
+	"<sub>fo[o</sub><span style=\"vertical-align:top\"><sub>b]</sub>ar</span>",
+	[]],
+["<sub>fo[o</sub><span style=vertical-align:top>b]ar</span>",
+	[["stylewithcss","true"],["subscript",""]],
+	"<sub>fo[o</sub><span style=\"vertical-align:top\"><sub>b]</sub>ar</span>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>[bar</sup><b><sup>baz]</sup>qoz</b>quz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>[bar</sup><b><sup>baz]</sup>qoz</b>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<table><tbody><tr><td>foo</td><td>b<sup>[a]</sup>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<table><tbody><tr><td>foo</td><td>b<sup>[a]</sup>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<table><tbody><tr><td>foo</td>{<td><sup>bar</sup></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<table><tbody><tr><td>foo</td>{<td><sup>bar</sup></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<table><tbody><tr>{<td><sup>foo</sup></td><td><sup>bar</sup></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<table><tbody><tr>{<td><sup>foo</sup></td><td><sup>bar</sup></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<table><tbody>{<tr><td><sup>foo</sup></td><td><sup>bar</sup></td><td><sup>baz</sup></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<table><tbody>{<tr><td><sup>foo</sup></td><td><sup>bar</sup></td><td><sup>baz</sup></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<table>{<tbody><tr><td><sup>foo</sup></td><td><sup>bar</sup></td><td><sup>baz</sup></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<table>{<tbody><tr><td><sup>foo</sup></td><td><sup>bar</sup></td><td><sup>baz</sup></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["superscript",""]],
+	"{<table><tbody><tr><td><sup>foo</sup></td><td><sup>bar</sup></td><td><sup>baz</sup></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["superscript",""]],
+	"{<table><tbody><tr><td><sup>foo</sup></td><td><sup>bar</sup></td><td><sup>baz</sup></td></tr></tbody></table>}",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sub>b[a]r</sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sub>b[a]r</sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sup>b[a]r</sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>b</sup>[a]<sup>r</sup>baz",
+	[]],
+["foo<sup>b[a]r</sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>b</sup>[a]<sup>r</sup>baz",
+	[]],
+["foo<span style=vertical-align:sub>[bar]</span>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup><span style=\"vertical-align:sub\">[bar]</span></sup>baz",
+	[]],
+["foo<span style=vertical-align:sub>[bar]</span>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup><span style=\"vertical-align:sub\">[bar]</span></sup>baz",
+	[]],
+["foo<span style=vertical-align:super>[bar]</span>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup><span style=\"vertical-align:super\">[bar]</span></sup>baz",
+	[]],
+["foo<span style=vertical-align:super>[bar]</span>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup><span style=\"vertical-align:super\">[bar]</span></sup>baz",
+	[]],
+["foo<sub><sub>[bar]</sub></sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sub><sub>[bar]</sub></sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sub><sub>b[a]r</sub></sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sub><sub>b[a]r</sub></sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sub>b<sub>[a]</sub>r</sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sub>b<sub>[a]</sub>r</sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sup><sup>[bar]</sup></sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sup><sup>[bar]</sup></sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sup><sup>b[a]r</sup></sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>b</sup>[a]<sup>r</sup>baz",
+	[]],
+["foo<sup><sup>b[a]r</sup></sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>b</sup>[a]<sup>r</sup>baz",
+	[]],
+["foo<sup>b<sup>[a]</sup>r</sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>b</sup>[a]<sup>r</sup>baz",
+	[]],
+["foo<sup>b<sup>[a]</sup>r</sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>b</sup>[a]<sup>r</sup>baz",
+	[]],
+["foo<sub><sup>[bar]</sup></sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sub><sup>[bar]</sup></sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sub><sup>b[a]r</sup></sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>b[a]r</sup>baz",
+	[]],
+["foo<sub><sup>b[a]r</sup></sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>b[a]r</sup>baz",
+	[]],
+["foo<sub>b<sup>[a]</sup>r</sub>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sub>b<sup>[a]</sup>r</sub>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sup><sub>[bar]</sub></sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sup><sub>[bar]</sub></sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>[bar]</sup>baz",
+	[]],
+["foo<sup><sub>b[a]r</sub></sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sup><sub>b[a]r</sub></sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sub>b</sub><sup>[a]</sup><sub>r</sub>baz",
+	[]],
+["foo<sup>b<sub>[a]</sub>r</sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>b[a]r</sup>baz",
+	[]],
+["foo<sup>b<sub>[a]</sub>r</sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>b[a]r</sup>baz",
+	[]],
+["fo[o<sup>b]ar</sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"fo<sup>[ob]ar</sup>baz",
+	[]],
+["fo[o<sup>b]ar</sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"fo<sup>[ob]ar</sup>baz",
+	[]],
+["foo<sup>ba[r</sup>b]az",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>ba[rb]</sup>az",
+	[]],
+["foo<sup>ba[r</sup>b]az",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>ba[rb]</sup>az",
+	[]],
+["fo[o<sup>bar</sup>b]az",
+	[["stylewithcss","false"],["superscript",""]],
+	"fo<sup>[obarb]</sup>az",
+	[]],
+["fo[o<sup>bar</sup>b]az",
+	[["stylewithcss","true"],["superscript",""]],
+	"fo<sup>[obarb]</sup>az",
+	[]],
+["foo[<sup>b]ar</sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo[b]<sup>ar</sup>baz",
+	[]],
+["foo[<sup>b]ar</sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo[b]<sup>ar</sup>baz",
+	[]],
+["foo<sup>ba[r</sup>]baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup>ba</sup>[r]baz",
+	[]],
+["foo<sup>ba[r</sup>]baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup>ba</sup>[r]baz",
+	[]],
+["foo[<sup>bar</sup>]baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<sup>bar</sup>]baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo[bar]baz",
+	[]],
+["foo{<sup>bar</sup>}baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<sup>bar</sup>}baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo{bar}baz",
+	[]],
+["<sup>fo[o</sup><sub>b]ar</sub>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<sup>fo[ob]</sup><sub>ar</sub>",
+	[]],
+["<sup>fo[o</sup><sub>b]ar</sub>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<sup>fo[ob]</sup><sub>ar</sub>",
+	[]],
+["<sup>fo[o</sup><span style=vertical-align:super>b]ar</span>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<sup>fo[o</sup><span style=\"vertical-align:super\"><sup>b]</sup>ar</span>",
+	[]],
+["<sup>fo[o</sup><span style=vertical-align:super>b]ar</span>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<sup>fo[o</sup><span style=\"vertical-align:super\"><sup>b]</sup>ar</span>",
+	[]],
+["foo<span style=vertical-align:bottom>[bar]</span>baz",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo<sup><span style=\"vertical-align:bottom\">[bar]</span></sup>baz",
+	[]],
+["foo<span style=vertical-align:bottom>[bar]</span>baz",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo<sup><span style=\"vertical-align:bottom\">[bar]</span></sup>baz",
+	[]],
+["<sup>fo[o</sup><span style=vertical-align:bottom>b]ar</span>",
+	[["stylewithcss","false"],["superscript",""]],
+	"<sup>fo[o</sup><span style=\"vertical-align:bottom\"><sup>b]</sup>ar</span>",
+	[]],
+["<sup>fo[o</sup><span style=vertical-align:bottom>b]ar</span>",
+	[["stylewithcss","true"],["superscript",""]],
+	"<sup>fo[o</sup><span style=\"vertical-align:bottom\"><sup>b]</sup>ar</span>",
+	[]],
+["foo<sup>[bar]<br></sup>",
+	[["stylewithcss","false"],["superscript",""]],
+	"foo[bar]<sup><br></sup>",
+	[]],
+["foo<sup>[bar]<br></sup>",
+	[["stylewithcss","true"],["superscript",""]],
+	"foo[bar]<sup><br></sup>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["underline",""]],
+	"foo[]bar",
+	[]],
+["foo[]bar",
+	[["stylewithcss","true"],["underline",""]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["underline",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["underline",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u>[bar]</u>baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\">[bar]</span>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u>[bar]</u>baz",
+	[]],
+["foo]bar[baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\">[bar]</span>baz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u>[bar</u><b><u>baz]</u>qoz</b>quz",
+	[]],
+["foo[bar<b>baz]qoz</b>quz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\">[bar</span><b><span style=\"text-decoration:underline\">baz]</span>qoz</b>quz",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","false"],["underline",""]],
+	"<table><tbody><tr><td>foo</td><td>b<u>[a]</u>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",
+	[["stylewithcss","true"],["underline",""]],
+	"<table><tbody><tr><td>foo</td><td>b<span style=\"text-decoration:underline\">[a]</span>r</td><td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["underline",""]],
+	"<table><tbody><tr><td>foo</td>{<td><u>bar</u></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["underline",""]],
+	"<table><tbody><tr><td>foo</td>{<td><span style=\"text-decoration:underline\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["underline",""]],
+	"<table><tbody><tr>{<td><u>foo</u></td><td><u>bar</u></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["underline",""]],
+	"<table><tbody><tr>{<td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td>}<td>baz</td></tr></tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["underline",""]],
+	"<table><tbody>{<tr><td><u>foo</u></td><td><u>bar</u></td><td><u>baz</u></td></tr>}</tbody></table>",
+	[]],
+["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["underline",""]],
+	"<table><tbody>{<tr><td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td><td><span style=\"text-decoration:underline\">baz</span></td></tr>}</tbody></table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","false"],["underline",""]],
+	"<table>{<tbody><tr><td><u>foo</u></td><td><u>bar</u></td><td><u>baz</u></td></tr></tbody>}</table>",
+	[]],
+["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",
+	[["stylewithcss","true"],["underline",""]],
+	"<table>{<tbody><tr><td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td><td><span style=\"text-decoration:underline\">baz</span></td></tr></tbody>}</table>",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","false"],["underline",""]],
+	"{<table><tbody><tr><td><u>foo</u></td><td><u>bar</u></td><td><u>baz</u></td></tr></tbody></table>}",
+	[]],
+["{<table><tr><td>foo<td>bar<td>baz</table>}",
+	[["stylewithcss","true"],["underline",""]],
+	"{<table><tbody><tr><td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td><td><span style=\"text-decoration:underline\">baz</span></td></tr></tbody></table>}",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"text-decoration: underline\">[bar]</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo<span style=\"text-decoration: underline\">[bar]</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["<u>foo[bar]baz</u>",
+	[["stylewithcss","false"],["underline",""]],
+	"<u>foo</u>[bar]<u>baz</u>",
+	[]],
+["<u>foo[bar]baz</u>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span style=\"text-decoration:underline\">foo</span>[bar]<span style=\"text-decoration:underline\">baz</span>",
+	[]],
+["<u>foo[b<span style=\"color:blue\">ar]ba</span>z</u>",
+	[["stylewithcss","false"],["underline",""]],
+	"<u>foo</u>[b<span style=\"color:rgb(0, 0, 255)\">ar]<u>ba</u></span><u>z</u>",
+	[]],
+["<u>foo[b<span style=\"color:blue\">ar]ba</span>z</u>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span style=\"text-decoration:underline\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\">ar]<span style=\"text-decoration:underline\">ba</span></span><span style=\"text-decoration:underline\">z</span>",
+	[]],
+["<u>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</u>",
+	[["stylewithcss","false"],["underline",""]],
+	"<u>foo</u>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<u>ba</u></span><u>z</u>",
+	[]],
+["<u>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</u>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span style=\"text-decoration:underline\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<span style=\"text-decoration:underline\">ba</span></span><span style=\"text-decoration:underline\">z</span>",
+	[]],
+["<u>foo[b<span style=\"font-size:3em\">ar]ba</span>z</u>",
+	[["stylewithcss","false"],["underline",""]],
+	"<u>foo</u>[b<span style=\"font-size:3em\">ar]<u>ba</u></span><u>z</u>",
+	[]],
+["<u>foo[b<span style=\"font-size:3em\">ar]ba</span>z</u>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span style=\"text-decoration:underline\">foo</span>[b<span style=\"font-size:3em\">ar]<span style=\"text-decoration:underline\">ba</span></span><span style=\"text-decoration:underline\">z</span>",
+	[]],
+["<u>foo[b<i>ar]ba</i>z</u>",
+	[["stylewithcss","false"],["underline",""]],
+	"<u>foo</u>[b<i>ar]<u>ba</u></i><u>z</u>",
+	[]],
+["<u>foo[b<i>ar]ba</i>z</u>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span style=\"text-decoration:underline\">foo</span>[b<i>ar]<span style=\"text-decoration:underline\">ba</span></i><span style=\"text-decoration:underline\">z</span>",
+	[]],
+["<p style=\"text-decoration: underline\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["underline",""]],
+	"<p><u>foo</u>[bar]<u>baz</u></p>",
+	[]],
+["<p style=\"text-decoration: underline\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["underline",""]],
+	"<p><span style=\"text-decoration:underline\">foo</span>[bar]<span style=\"text-decoration:underline\">baz</span></p>",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><s>[bar]</s></u>baz",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><s>[bar]</s></span>baz",
+	[]],
+["foo<span style=\"text-decoration: line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><span style=\"text-decoration:line-through\">[bar]</span></u>baz",
+	[]],
+["foo<span style=\"text-decoration: line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><span style=\"text-decoration:line-through\">[bar]</span></span>baz",
+	[]],
+["<s>foo[bar]baz</s>",
+	[["stylewithcss","false"],["underline",""]],
+	"<s>foo<u>[bar]</u>baz</s>",
+	[]],
+["<s>foo[bar]baz</s>",
+	[["stylewithcss","true"],["underline",""]],
+	"<s>foo<span style=\"text-decoration:underline\">[bar]</span>baz</s>",
+	[]],
+["<s>foo[b<span style=\"color:blue\">ar]ba</span>z</s>",
+	[["stylewithcss","false"],["underline",""]],
+	"<s>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\"><u>ar]</u>ba</span>z</s>",
+	[]],
+["<s>foo[b<span style=\"color:blue\">ar]ba</span>z</s>",
+	[["stylewithcss","true"],["underline",""]],
+	"<s>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</s>",
+	[]],
+["<s>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</s>",
+	[["stylewithcss","false"],["underline",""]],
+	"<s>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><u>ar]</u>ba</span>z</s>",
+	[]],
+["<s>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</s>",
+	[["stylewithcss","true"],["underline",""]],
+	"<s>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</s>",
+	[]],
+["<s>foo[b<span style=\"font-size:3em\">ar]ba</span>z</s>",
+	[["stylewithcss","false"],["underline",""]],
+	"<s>foo<u>[b</u><span style=\"font-size:3em\"><u>ar]</u>ba</span>z</s>",
+	[]],
+["<s>foo[b<span style=\"font-size:3em\">ar]ba</span>z</s>",
+	[["stylewithcss","true"],["underline",""]],
+	"<s>foo<span style=\"text-decoration:underline\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</s>",
+	[]],
+["<s>foo[b<i>ar]ba</i>z</s>",
+	[["stylewithcss","false"],["underline",""]],
+	"<s>foo<u>[b</u><i><u>ar]</u>ba</i>z</s>",
+	[]],
+["<s>foo[b<i>ar]ba</i>z</s>",
+	[["stylewithcss","true"],["underline",""]],
+	"<s>foo<span style=\"text-decoration:underline\">[b</span><i><span style=\"text-decoration:underline\">ar]</span>ba</i>z</s>",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["underline",""]],
+	"<p style=\"text-decoration:line-through\">foo<u>[bar]</u>baz</p>",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["underline",""]],
+	"<p style=\"text-decoration:line-through\">foo<span style=\"text-decoration:underline\">[bar]</span>baz</p>",
+	[]],
+["foo<strike>[bar]</strike>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><strike>[bar]</strike></u>baz",
+	[]],
+["foo<strike>[bar]</strike>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><strike>[bar]</strike></span>baz",
+	[]],
+["<strike>foo[bar]baz</strike>",
+	[["stylewithcss","false"],["underline",""]],
+	"<strike>foo<u>[bar]</u>baz</strike>",
+	[]],
+["<strike>foo[bar]baz</strike>",
+	[["stylewithcss","true"],["underline",""]],
+	"<strike>foo<span style=\"text-decoration:underline\">[bar]</span>baz</strike>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\">ar]ba</span>z</strike>",
+	[["stylewithcss","false"],["underline",""]],
+	"<strike>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\"><u>ar]</u>ba</span>z</strike>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\">ar]ba</span>z</strike>",
+	[["stylewithcss","true"],["underline",""]],
+	"<strike>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</strike>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</strike>",
+	[["stylewithcss","false"],["underline",""]],
+	"<strike>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><u>ar]</u>ba</span>z</strike>",
+	[]],
+["<strike>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</strike>",
+	[["stylewithcss","true"],["underline",""]],
+	"<strike>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</strike>",
+	[]],
+["<strike>foo[b<span style=\"font-size:3em\">ar]ba</span>z</strike>",
+	[["stylewithcss","false"],["underline",""]],
+	"<strike>foo<u>[b</u><span style=\"font-size:3em\"><u>ar]</u>ba</span>z</strike>",
+	[]],
+["<strike>foo[b<span style=\"font-size:3em\">ar]ba</span>z</strike>",
+	[["stylewithcss","true"],["underline",""]],
+	"<strike>foo<span style=\"text-decoration:underline\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</strike>",
+	[]],
+["<strike>foo[b<i>ar]ba</i>z</strike>",
+	[["stylewithcss","false"],["underline",""]],
+	"<strike>foo<u>[b</u><i><u>ar]</u>ba</i>z</strike>",
+	[]],
+["<strike>foo[b<i>ar]ba</i>z</strike>",
+	[["stylewithcss","true"],["underline",""]],
+	"<strike>foo<span style=\"text-decoration:underline\">[b</span><i><span style=\"text-decoration:underline\">ar]</span>ba</i>z</strike>",
+	[]],
+["foo<ins>[bar]</ins>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<ins>[bar]</ins>baz",
+	[]],
+["foo<ins>[bar]</ins>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<ins>[bar]</ins>baz",
+	[]],
+["<ins>foo[bar]baz</ins>",
+	[["stylewithcss","false"],["underline",""]],
+	"<ins>foo[bar]baz</ins>",
+	[]],
+["<ins>foo[bar]baz</ins>",
+	[["stylewithcss","true"],["underline",""]],
+	"<ins>foo[bar]baz</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\">ar]ba</span>z</ins>",
+	[["stylewithcss","false"],["underline",""]],
+	"<ins>foo[b<span style=\"color:rgb(0, 0, 255)\">ar]ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\">ar]ba</span>z</ins>",
+	[["stylewithcss","true"],["underline",""]],
+	"<ins>foo[b<span style=\"color:rgb(0, 0, 255)\">ar]ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</ins>",
+	[["stylewithcss","false"],["underline",""]],
+	"<ins>foo[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</ins>",
+	[["stylewithcss","true"],["underline",""]],
+	"<ins>foo[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",
+	[["stylewithcss","false"],["underline",""]],
+	"<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",
+	[]],
+["<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",
+	[["stylewithcss","true"],["underline",""]],
+	"<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",
+	[]],
+["<ins>foo[b<i>ar]ba</i>z</ins>",
+	[["stylewithcss","false"],["underline",""]],
+	"<ins>foo[b<i>ar]ba</i>z</ins>",
+	[]],
+["<ins>foo[b<i>ar]ba</i>z</ins>",
+	[["stylewithcss","true"],["underline",""]],
+	"<ins>foo[b<i>ar]ba</i>z</ins>",
+	[]],
+["foo<del>[bar]</del>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><del>[bar]</del></u>baz",
+	[]],
+["foo<del>[bar]</del>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><del>[bar]</del></span>baz",
+	[]],
+["<del>foo[bar]baz</del>",
+	[["stylewithcss","false"],["underline",""]],
+	"<del>foo<u>[bar]</u>baz</del>",
+	[]],
+["<del>foo[bar]baz</del>",
+	[["stylewithcss","true"],["underline",""]],
+	"<del>foo<span style=\"text-decoration:underline\">[bar]</span>baz</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\">ar]ba</span>z</del>",
+	[["stylewithcss","false"],["underline",""]],
+	"<del>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\"><u>ar]</u>ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\">ar]ba</span>z</del>",
+	[["stylewithcss","true"],["underline",""]],
+	"<del>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</del>",
+	[["stylewithcss","false"],["underline",""]],
+	"<del>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><u>ar]</u>ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</del>",
+	[["stylewithcss","true"],["underline",""]],
+	"<del>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",
+	[["stylewithcss","false"],["underline",""]],
+	"<del>foo<u>[b</u><span style=\"font-size:3em\"><u>ar]</u>ba</span>z</del>",
+	[]],
+["<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",
+	[["stylewithcss","true"],["underline",""]],
+	"<del>foo<span style=\"text-decoration:underline\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</del>",
+	[]],
+["<del>foo[b<i>ar]ba</i>z</del>",
+	[["stylewithcss","false"],["underline",""]],
+	"<del>foo<u>[b</u><i><u>ar]</u>ba</i>z</del>",
+	[]],
+["<del>foo[b<i>ar]ba</i>z</del>",
+	[["stylewithcss","true"],["underline",""]],
+	"<del>foo<span style=\"text-decoration:underline\">[b</span><i><span style=\"text-decoration:underline\">ar]</span>ba</i>z</del>",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<span style=\"text-decoration:line-through\">[bar]</span>baz",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:line-through\">[bar]</span>baz",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">b[a]r</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<span style=\"text-decoration:line-through\"><u>b</u>[a]<u>r</u></span>baz",
+	[]],
+["foo<span style=\"text-decoration: underline line-through\">b[a]r</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:line-through\"><span style=\"text-decoration:underline\">b</span>[a]<span style=\"text-decoration:underline\">r</span></span>baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">[bar]</s>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">[bar]</s>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">b[a]r</s>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u>b</u>[a]<u>r</u>baz",
+	[]],
+["foo<s style=\"text-decoration: underline\">b[a]r</s>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\">b</span>[a]<span style=\"text-decoration:underline\">r</span>baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">[bar]</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><u style=\"text-decoration:line-through\">[bar]</u></u>baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">[bar]</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><u style=\"text-decoration:line-through\">[bar]</u></span>baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">b[a]r</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u style=\"text-decoration:line-through\">b<u>[a]</u>r</u>baz",
+	[]],
+["foo<u style=\"text-decoration: line-through\">b[a]r</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<u style=\"text-decoration:line-through\">b<span style=\"text-decoration:underline\">[a]</span>r</u>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">[bar]</s>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><s style=\"text-decoration:overline\">[bar]</s></u>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">[bar]</s>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><s style=\"text-decoration:overline\">[bar]</s></span>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">b[a]r</s>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<s style=\"text-decoration:overline\">b<u>[a]</u>r</s>baz",
+	[]],
+["foo<s style=\"text-decoration: overline\">b[a]r</s>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<s style=\"text-decoration:overline\">b<span style=\"text-decoration:underline\">[a]</span>r</s>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">[bar]</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><u style=\"text-decoration:overline\">[bar]</u></u>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">[bar]</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><u style=\"text-decoration:overline\">[bar]</u></span>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">b[a]r</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u style=\"text-decoration:overline\">b<u>[a]</u>r</u>baz",
+	[]],
+["foo<u style=\"text-decoration: overline\">b[a]r</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<u style=\"text-decoration:overline\">b<span style=\"text-decoration:underline\">[a]</span>r</u>baz",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["underline",""]],
+	"<p style=\"text-decoration:line-through\">foo<u>[bar]</u>baz</p>",
+	[]],
+["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["underline",""]],
+	"<p style=\"text-decoration:line-through\">foo<span style=\"text-decoration:underline\">[bar]</span>baz</p>",
+	[]],
+["<p style=\"text-decoration: overline\">foo[bar]baz</p>",
+	[["stylewithcss","false"],["underline",""]],
+	"<p style=\"text-decoration:overline\">foo<u>[bar]</u>baz</p>",
+	[]],
+["<p style=\"text-decoration: overline\">foo[bar]baz</p>",
+	[["stylewithcss","true"],["underline",""]],
+	"<p style=\"text-decoration:overline\">foo<span style=\"text-decoration:underline\">[bar]</span>baz</p>",
+	[]],
+["foo<span class=\"underline\">[bar]</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<span class=\"underline\">[bar]</span>baz",
+	[]],
+["foo<span class=\"underline\">[bar]</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span class=\"underline\">[bar]</span>baz",
+	[]],
+["foo<span class=\"underline\">b[a]r</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<span class=\"underline\">b[a]r</span>baz",
+	[]],
+["foo<span class=\"underline\">b[a]r</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span class=\"underline\">b[a]r</span>baz",
+	[]],
+["foo<span class=\"line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u><span class=\"line-through\">[bar]</span></u>baz",
+	[]],
+["foo<span class=\"line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\"><span class=\"line-through\">[bar]</span></span>baz",
+	[]],
+["foo<span class=\"line-through\">b[a]r</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<span class=\"line-through\">b<u>[a]</u>r</span>baz",
+	[]],
+["foo<span class=\"line-through\">b[a]r</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span class=\"line-through\">b<span style=\"text-decoration:underline\">[a]</span>r</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span class=\"underline-and-line-through\">[bar]</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[]],
+["foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span class=\"underline-and-line-through\">b[a]r</span>baz",
+	[]],
+["fo[o<u>b]ar</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"fo<u>[ob]ar</u>baz",
+	[]],
+["fo[o<u>b]ar</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"fo<u>[ob]ar</u>baz",
+	[]],
+["foo<u>ba[r</u>b]az",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u>ba[rb]</u>az",
+	[]],
+["foo<u>ba[r</u>b]az",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<u>ba[rb]</u>az",
+	[]],
+["fo[o<u>bar</u>b]az",
+	[["stylewithcss","false"],["underline",""]],
+	"fo<u>[obarb]</u>az",
+	[]],
+["fo[o<u>bar</u>b]az",
+	[["stylewithcss","true"],["underline",""]],
+	"fo<span style=\"text-decoration:underline\">[obarb]</span>az",
+	[]],
+["foo[<u>b]ar</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo[b]<u>ar</u>baz",
+	[]],
+["foo[<u>b]ar</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo[b]<span style=\"text-decoration:underline\">ar</span>baz",
+	[]],
+["foo<u>ba[r</u>]baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo<u>ba</u>[r]baz",
+	[]],
+["foo<u>ba[r</u>]baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo<span style=\"text-decoration:underline\">ba</span>[r]baz",
+	[]],
+["foo[<u>bar</u>]baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<u>bar</u>]baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo[bar]baz",
+	[]],
+["foo{<u>bar</u>}baz",
+	[["stylewithcss","false"],["underline",""]],
+	"foo{bar}baz",
+	[]],
+["foo{<u>bar</u>}baz",
+	[["stylewithcss","true"],["underline",""]],
+	"foo{bar}baz",
+	[]],
+["fo[o<span style=text-decoration:underline>b]ar</span>baz",
+	[["stylewithcss","false"],["underline",""]],
+	"fo<span style=\"text-decoration:underline\">[ob]ar</span>baz",
+	[]],
+["fo[o<span style=text-decoration:underline>b]ar</span>baz",
+	[["stylewithcss","true"],["underline",""]],
+	"fo<span style=\"text-decoration:underline\">[ob]ar</span>baz",
+	[]],
+["<ins>fo[o</ins><u>b]ar</u>",
+	[["stylewithcss","false"],["underline",""]],
+	"<ins>fo[o</ins>b]<u>ar</u>",
+	[]],
+["<ins>fo[o</ins><u>b]ar</u>",
+	[["stylewithcss","true"],["underline",""]],
+	"<ins>fo[o</ins>b]<span style=\"text-decoration:underline\">ar</span>",
+	[]],
+["<u>fo[o</u><ins>b]ar</ins>",
+	[["stylewithcss","false"],["underline",""]],
+	"<u>fo</u>[o<ins>b]ar</ins>",
+	[]],
+["<u>fo[o</u><ins>b]ar</ins>",
+	[["stylewithcss","true"],["underline",""]],
+	"<span style=\"text-decoration:underline\">fo</span>[o<ins>b]ar</ins>",
+	[]],
+["foo[]bar",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[]bar",
+	[]],
+["<span>foo</span>{}<span>bar</span>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<span>foo</span>{}<span>bar</span>",
+	[]],
+["<span>foo[</span><span>]bar</span>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<span>foo[</span><span>]bar</span>",
+	[]],
+["<a href=http://www.google.com/>foo[bar]baz</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[bar]baz",
+	[]],
+["<a href=http://www.google.com/>foo[barbaz</a>}",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[barbaz}",
+	[]],
+["{<a href=http://www.google.com/>foobar]baz</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"{foobar]baz",
+	[]],
+["{<a href=http://www.google.com/>foobarbaz</a>}",
+	[["stylewithcss","false"],["unlink",""]],
+	"{foobarbaz}",
+	[]],
+["<a href=http://www.google.com/>[foobarbaz]</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"[foobarbaz]",
+	[]],
+["foo<a href=http://www.google.com/>b[]ar</a>baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"foob[]arbaz",
+	[]],
+["foo<a href=http://www.google.com/>[bar]</a>baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[bar]baz",
+	[]],
+["foo[<a href=http://www.google.com/>bar</a>]baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[bar]baz",
+	[]],
+["foo<a href=http://www.google.com/>[bar</a>baz]",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[barbaz]",
+	[]],
+["[foo<a href=http://www.google.com/>bar]</a>baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"[foobar]baz",
+	[]],
+["[foo<a href=http://www.google.com/>bar</a>baz]",
+	[["stylewithcss","false"],["unlink",""]],
+	"[foobarbaz]",
+	[]],
+["<a id=foo href=http://www.google.com/>foobar[]baz</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<a id=\"foo\">foobar[]baz</a>",
+	[]],
+["<a id=foo href=http://www.google.com/>foo[bar]baz</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<a id=\"foo\">foo[bar]baz</a>",
+	[]],
+["<a id=foo href=http://www.google.com/>[foobarbaz]</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<a id=\"foo\">[foobarbaz]</a>",
+	[]],
+["foo<a id=foo href=http://www.google.com/>[bar]</a>baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo<a id=\"foo\">[bar]</a>baz",
+	[]],
+["foo[<a id=foo href=http://www.google.com/>bar</a>]baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[<a id=\"foo\">bar</a>]baz",
+	[]],
+["[foo<a id=foo href=http://www.google.com/>bar</a>baz]",
+	[["stylewithcss","false"],["unlink",""]],
+	"[foo<a id=\"foo\">bar</a>baz]",
+	[]],
+["<a name=foo>foobar[]baz</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<a name=\"foo\">foobar[]baz</a>",
+	[]],
+["<a name=foo>foo[bar]baz</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<a name=\"foo\">foo[bar]baz</a>",
+	[]],
+["<a name=foo>[foobarbaz]</a>",
+	[["stylewithcss","false"],["unlink",""]],
+	"<a name=\"foo\">[foobarbaz]</a>",
+	[]],
+["foo<a name=foo>[bar]</a>baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo<a name=\"foo\">[bar]</a>baz",
+	[]],
+["foo[<a name=foo>bar</a>]baz",
+	[["stylewithcss","false"],["unlink",""]],
+	"foo[<a name=\"foo\">bar</a>]baz",
+	[]],
+["[foo<a name=foo>bar</a>baz]",
+	[["stylewithcss","false"],["unlink",""]],
+	"[foo<a name=\"foo\">bar</a>baz]",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["selectall",""]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss",""]],
+	"foo[bar]baz",
+	[]],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss",""]],
+	"foo[bar]baz",
+	[]],
+["foo[]bar",
+	[["bold",""],["inserttext","a"]],
+	"foo<b>a[]</b>bar",
+	[]],
+["foo[]bar",
+	[["italic",""],["inserttext","a"]],
+	"foo<i>a[]</i>bar",
+	[]],
+["foo[]bar",
+	[["strikethrough",""],["inserttext","a"]],
+	"foo<s>a[]</s>bar",
+	[]],
+["foo[]bar",
+	[["subscript",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>bar",
+	[]],
+["foo[]bar",
+	[["superscript",""],["inserttext","a"]],
+	"foo<sup>a[]</sup>bar",
+	[]],
+["foo[]bar",
+	[["underline",""],["inserttext","a"]],
+	"foo<u>a[]</u>bar",
+	[]],
+["foo[]bar",
+	[["backcolor","#00FFFF"],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">a[]</span>bar",
+	[]],
+["foo[]bar",
+	[["createlink","http://www.google.com/"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["fontname","sans-serif"],["inserttext","a"]],
+	"foo<font face=\"sans-serif\">a[]</font>bar",
+	[]],
+["foo[]bar",
+	[["fontsize","4"],["inserttext","a"]],
+	"foo<font size=\"4\">a[]</font>bar",
+	[]],
+["foo[]bar",
+	[["forecolor","#0000FF"],["inserttext","a"]],
+	"foo<font color=\"#0000ff\">a[]</font>bar",
+	[]],
+["foo[]bar",
+	[["hilitecolor","#00FFFF"],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">a[]</span>bar",
+	[]],
+["foo[]bar",
+	[["superscript",""],["subscript",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>bar",
+	[]],
+["foo[]bar",
+	[["subscript",""],["superscript",""],["inserttext","a"]],
+	"foo<sup>a[]</sup>bar",
+	[]],
+["foo[]bar",
+	[["createlink","http://www.google.com/"],["forecolor","#0000FF"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["forecolor","#0000FF"],["createlink","http://www.google.com/"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["createlink","http://www.google.com/"],["forecolor","blue"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["forecolor","blue"],["createlink","http://www.google.com/"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["createlink","http://www.google.com/"],["forecolor","brown"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\"><font color=\"#a52a2a\">a[]</font></a>bar",
+	[]],
+["foo[]bar",
+	[["forecolor","brown"],["createlink","http://www.google.com/"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\"><font color=\"#a52a2a\">a[]</font></a>bar",
+	[]],
+["foo[]bar",
+	[["createlink","http://www.google.com/"],["forecolor","black"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\"><font color=\"#000000\">a[]</font></a>bar",
+	[]],
+["foo[]bar",
+	[["forecolor","black"],["createlink","http://www.google.com/"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\"><font color=\"#000000\">a[]</font></a>bar",
+	[]],
+["foo[]bar",
+	[["createlink","http://www.google.com/"],["underline",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["underline",""],["createlink","http://www.google.com/"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["createlink","http://www.google.com/"],["underline",""],["underline",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["underline",""],["underline",""],["createlink","http://www.google.com/"],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com/\">a[]</a>bar",
+	[]],
+["foo[]bar",
+	[["subscript",""],["fontsize","2"],["inserttext","a"]],
+	"foo<sub>a[]</sub>bar",
+	[]],
+["foo[]bar",
+	[["fontsize","2"],["subscript",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>bar",
+	[]],
+["foo[]bar",
+	[["subscript",""],["fontsize","3"],["inserttext","a"]],
+	"foo<sub><font size=\"3\">a[]</font></sub>bar",
+	[]],
+["foo[]bar",
+	[["fontsize","3"],["subscript",""],["inserttext","a"]],
+	"foo<sub><font size=\"3\">a[]</font></sub>bar",
+	[]],
+["foo[]bar",
+	[["hilitecolor","aqua"],["backcolor","tan"],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(210, 180, 140)\">a[]</span>bar",
+	[]],
+["foo[]bar",
+	[["backcolor","tan"],["hilitecolor","aqua"],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">a[]</span>bar",
+	[]],
+["foo<b>[bar]</b>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<b>a[]</b>baz",
+	[]],
+["foo<i>[bar]</i>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<i>a[]</i>baz",
+	[]],
+["foo<s>[bar]</s>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<s>a[]</s>baz",
+	[]],
+["foo<sub>[bar]</sub>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>baz",
+	[]],
+["foo<sup>[bar]</sup>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<sup>a[]</sup>baz",
+	[]],
+["foo<u>[bar]</u>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<u>a[]</u>baz",
+	[]],
+["foo<a href=http://www.google.com>[bar]</a>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>baz",
+	[]],
+["foo<font face=sans-serif>[bar]</font>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<font face=\"sans-serif\">a[]</font>baz",
+	[]],
+["foo<font size=4>[bar]</font>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<font size=\"4\">a[]</font>baz",
+	[]],
+["foo<font color=#0000FF>[bar]</font>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<font color=\"#0000ff\">a[]</font>baz",
+	[]],
+["foo<span style=background-color:#00FFFF>[bar]</span>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">a[]</span>baz",
+	[]],
+["foo<a href=http://www.google.com><font color=blue>[bar]</font></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>baz",
+	[]],
+["foo<font color=blue><a href=http://www.google.com>[bar]</a></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>baz",
+	[]],
+["foo<a href=http://www.google.com><font color=brown>[bar]</font></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"#a52a2a\">a[]</font></a>baz",
+	[]],
+["foo<font color=brown><a href=http://www.google.com>[bar]</a></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>baz",
+	[]],
+["foo<a href=http://www.google.com><font color=black>[bar]</font></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"#000000\">a[]</font></a>baz",
+	[]],
+["foo<a href=http://www.google.com><u>[bar]</u></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>baz",
+	[]],
+["foo<u><a href=http://www.google.com>[bar]</a></u>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>baz",
+	[]],
+["foo<sub><font size=2>[bar]</font></sub>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>baz",
+	[]],
+["foo<font size=2><sub>[bar]</sub></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub><font size=\"1\">a[]</font></sub>baz",
+	[]],
+["foo<sub><font size=3>[bar]</font></sub>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub><font size=\"3\">a[]</font></sub>baz",
+	[]],
+["foo<font size=3><sub>[bar]</sub></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>baz",
+	[]],
+["[foo<b>bar]</b>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<i>bar]</i>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<s>bar]</s>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sub>bar]</sub>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sup>bar]</sup>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<u>bar]</u>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com>bar]</a>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font face=sans-serif>bar]</font>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font size=4>bar]</font>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font color=#0000FF>bar]</font>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<span style=background-color:#00FFFF>bar]</span>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><font color=blue>bar]</font></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font color=blue><a href=http://www.google.com>bar]</a></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><font color=brown>bar]</font></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font color=brown><a href=http://www.google.com>bar]</a></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><font color=black>bar]</font></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<a href=http://www.google.com><u>bar]</u></a>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<u><a href=http://www.google.com>bar]</a></u>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sub><font size=2>bar]</font></sub>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font size=2><sub>bar]</sub></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<sub><font size=3>bar]</font></sub>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["[foo<font size=3><sub>bar]</sub></font>baz",
+	[["delete",""],["inserttext","a"]],
+	"a[]baz",
+	[]],
+["foo<b>[bar</b>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<b>a[]</b>",
+	[]],
+["foo<i>[bar</i>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<i>a[]</i>",
+	[]],
+["foo<s>[bar</s>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<s>a[]</s>",
+	[]],
+["foo<sub>[bar</sub>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>",
+	[]],
+["foo<sup>[bar</sup>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<sup>a[]</sup>",
+	[]],
+["foo<u>[bar</u>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<u>a[]</u>",
+	[]],
+["foo<a href=http://www.google.com>[bar</a>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>",
+	[]],
+["foo<font face=sans-serif>[bar</font>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<font face=\"sans-serif\">a[]</font>",
+	[]],
+["foo<font size=4>[bar</font>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<font size=\"4\">a[]</font>",
+	[]],
+["foo<font color=#0000FF>[bar</font>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<font color=\"#0000ff\">a[]</font>",
+	[]],
+["foo<span style=background-color:#00FFFF>[bar</span>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<span style=\"background-color:rgb(0, 255, 255)\">a[]</span>",
+	[]],
+["foo<a href=http://www.google.com><font color=blue>[bar</font></a>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>",
+	[]],
+["foo<font color=blue><a href=http://www.google.com>[bar</a></font>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>",
+	[]],
+["foo<a href=http://www.google.com><font color=brown>[bar</font></a>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"#a52a2a\">a[]</font></a>",
+	[]],
+["foo<font color=brown><a href=http://www.google.com>[bar</a></font>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>",
+	[]],
+["foo<a href=http://www.google.com><font color=black>[bar</font></a>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\"><font color=\"#000000\">a[]</font></a>",
+	[]],
+["foo<a href=http://www.google.com><u>[bar</u></a>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>",
+	[]],
+["foo<u><a href=http://www.google.com>[bar</a></u>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<a href=\"http://www.google.com\">a[]</a>",
+	[]],
+["foo<sub><font size=2>[bar</font></sub>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>",
+	[]],
+["foo<font size=2><sub>[bar</sub></font>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub><font size=\"1\">a[]</font></sub>",
+	[]],
+["foo<sub><font size=3>[bar</font></sub>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub><font size=\"3\">a[]</font></sub>",
+	[]],
+["foo<font size=3><sub>[bar</sub></font>baz]",
+	[["delete",""],["inserttext","a"]],
+	"foo<sub>a[]</sub>",
+	[]],
+["<blockquote><font color=blue>[foo]</font></blockquote>",
+	[["delete",""],["inserttext","a"]],
+	"<blockquote><font color=\"#0000ff\">a[]</font></blockquote>",
+	[]]
+]]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/conformancetest/gentest.html	Fri Sep 02 16:05:32 2011 -0600
@@ -0,0 +1,167 @@
+<!doctype html>
+<meta charset=utf-8>
+<link rel=stylesheet href=../tests.css>
+<style>
+body { margin-top: 0 }
+#toolbar { display: none !important }
+</style>
+<title>Generator for editing conformance tests</title>
+<p>See the <a href=editing.html#tests>Tests</a> section of the specification
+for documentation.
+
+<p><button onclick="generateTests(); this.parentNode.removeChild(this)">Generate all tests</button>
+
+<p id=timing></p>
+
+<div id=errors></div>
+
+<pre id=output></pre>
+
+<div id=test-container></div>
+
+<script src=../implementation.js></script>
+<script src=../tests.js></script>
+<script>
+"use strict";
+
+document.getElementById("toolbar").parentNode.removeChild(document.getElementById("toolbar"));
+
+function generateTests() {
+	var startTime = Date.now();
+	document.getElementById("test-container").innerHTML = "<div contenteditable></div><p>test";
+
+	var outputEl = document.getElementById("output");
+	outputEl.textContent = "var browserTests = [\n";
+	for (var command in tests) {
+		tests[command].forEach(function(test) {
+			if (badTests[command].indexOf(test) != -1) {
+				return;
+			}
+			try {
+				if (command == "multitest") {
+					generateTest(normalizeTest(command, test));
+				} else if (doubleTestingCommands.indexOf(command) != -1) {
+					generateTest(normalizeTest(command, test, false));
+					generateTest(normalizeTest(command, test, true));
+				} else {
+					generateTest(normalizeTest(command, test, false));
+				}
+			} catch(e) {
+				var errorP = document.createElement("p");
+				errorP.textContent = "Exception, "
+					+ command + " " + JSON.stringify(test) + ": "
+					+ formatException(e);
+				document.getElementById("errors").appendChild(errorP);
+			}
+		});
+	}
+
+	// Finish up our JSON.  First remove the last comma, since JSON doesn't
+	// like that, then add a closing bracket.
+	outputEl.firstChild.deleteData(outputEl.textContent.lastIndexOf(","), 1);
+	outputEl.firstChild.appendData("]");
+
+	document.getElementById("output").firstChild.appendData("]");
+
+	document.getElementById("test-container").parentNode
+		.removeChild(document.getElementById("test-container"));
+	var elapsed = Math.round(Date.now() - startTime)/1000;
+	document.getElementById("timing").textContent =
+		"Time elapsed: " + Math.floor(elapsed/60) + ":" + (elapsed % 60) + " min.";
+	getSelection().selectAllChildren(document.getElementById("output"));
+}
+
+/**
+ * Input is in the format generated by normalizeTest:
+ *   [input HTML, [command, value], [command, value], . . .]
+ * Converts to something of the following form:
+ *   [input HTML,
+ *    array of commands,
+ *    expected output HTML,
+ *    array of expected indeterm/state/value].
+ * The array of commands is [[command, value], [command, value], ...].  The
+ * indeterm/state/value array is zero or more entries of the form
+ *   [command, expected indeterm before, expected state before,
+ *    expected value before, expected indeterm after,
+ *    expected state after, expected value after].
+ * null for any of the last six entries means an INVALID_ACCESS_ERR must be
+ * raised.
+ *
+ * The converted test value is then added to the pre with id=output.
+ */
+function generateTest(test) {
+	var output = document.getElementById("output").firstChild;
+
+	var testDiv = document.querySelector("div[contenteditable]");
+	var points = setupDiv(testDiv, test[0]);
+
+	// Hack around Firefox bug when generating the tests, although we don't
+	// want to give it a pass when actually running them:
+	// https://bugzilla.mozilla.org/show_bug.cgi?id=618737
+	[].forEach.call(testDiv.querySelectorAll("video[tabindex]"), function(video) {
+		if (video.tabIndex == 0) {
+			video.removeAttribute("tabindex");
+		}
+	});
+
+	var range = document.createRange();
+	range.setStart(points[0], points[1]);
+	range.setEnd(points[2], points[3]);
+	// The points might be backwards
+	if (range.collapsed) {
+		range.setEnd(points[0], points[1]);
+	}
+
+	for (var i = 1; i < test.length; i++) {
+		myExecCommand(test[i][0], false, test[i][1], range);
+	}
+
+	var compareDiv1 = testDiv.cloneNode(true);
+
+	// Now do various sanity checks, and throw if they're violated.  First
+	// just count children:
+	if (testDiv.parentNode.childNodes.length != 2) {
+		throw "The cell didn't have two children.  Did something spill outside the test div?";
+	}
+
+	// Now verify that the DOM serializes.
+	compareDiv1.normalize();
+	var compareDiv2 = compareDiv1.cloneNode(false);
+	compareDiv2.innerHTML = compareDiv1.innerHTML;
+	// Oddly, IE9 sometimes produces two nodes that return true for
+	// isEqualNode but have different innerHTML (omitting closing tags vs.
+	// not).
+	if (!compareDiv1.isEqualNode(compareDiv2)
+	&& compareDiv1.innerHTML != compareDiv2.innerHTML) {
+		throw "DOM does not round-trip through serialization!  "
+			+ prettyPrint(compareDiv1.innerHTML) + " vs. " + prettyPrint(compareDiv2.innerHTML);
+	}
+	if (!compareDiv1.isEqualNode(compareDiv2)) {
+		throw "DOM does not round-trip through serialization (although innerHTML is the same)!  "
+			+ prettyPrint(compareDiv1.innerHTML);
+	}
+
+	// Check for attributes
+	if (testDiv.attributes.length != 1) {
+		throw "Wrapper div has extra attributes!  " +
+			prettyPrint(testDiv.parentNode.innerHTML);
+	}
+
+	// Final sanity check: make sure everything isAllowedChild() of its
+	// parent.
+	getDescendants(testDiv).forEach(function(descendant) {
+		if (!isAllowedChild(descendant, descendant.parentNode)) {
+			throw "Something here is not an allowed child of its parent: " + descendant;
+		}
+	});
+
+	normalizeSerializedStyle(testDiv);
+
+	addBrackets(range);
+
+	output.appendData("[" + JSON.stringify(test[0]) + ",\n"
+		+ "\t" + JSON.stringify(test.slice(1)) + ",\n"
+		+ "\t" + JSON.stringify(testDiv.innerHTML) + ",\n"
+		+ "\t" + JSON.stringify([]) + "],\n");
+}
+</script>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/conformancetest/runtest.html	Fri Sep 02 16:05:32 2011 -0600
@@ -0,0 +1,93 @@
+<!doctype html>
+<meta charset=utf-8>
+<link rel=stylesheet href=../tests.css>
+<style>
+body { margin-top: 0 }
+#toolbar { display: none !important }
+</style>
+<title>HTML editing conformance tests</title>
+<p>See the <a href=editing.html#tests>Tests</a> section of the specification
+for documentation.
+
+<p id=timing></p>
+
+<div id=log></div>
+
+<div id=test-container></div>
+
+<script src=../implementation.js></script>
+<script src=../tests.js></script>
+<script>
+document.getElementById("toolbar").parentNode.removeChild(
+	document.getElementById("toolbar"));
+</script>
+<script src=data.js></script>
+<script src=http://dvcs.w3.org/hg/html/raw-file/tip/tests/resources/testharness.js></script>
+<script src=http://dvcs.w3.org/hg/html/raw-file/tip/tests/resources/testharnessreport.js></script>
+<script>
+"use strict";
+
+runTests();
+
+function runTests() {
+	var startTime = Date.now();
+	browserTests.forEach(runTest);
+
+	document.getElementById("test-container").parentNode
+		.removeChild(document.getElementById("test-container"));
+
+	var elapsed = Math.round(Date.now() - startTime)/1000;
+	document.getElementById("timing").textContent =
+		"Time elapsed: " + Math.floor(elapsed/60) + ":" + (elapsed % 60) + " min.";
+}
+
+/**
+ * Input is the same format as output of generateTest in gentest.html.
+ */
+function runTest(browserTest) {
+	document.getElementById("test-container").innerHTML = "<div contenteditable></div><p>test";
+	var testName = JSON.stringify(browserTest[1]) + " " + format_value(browserTest[0]);
+	var testDiv = document.querySelector("div[contenteditable]");
+	var setupDone = false;
+
+	test(function() {
+		var points = setupDiv(testDiv, browserTest[0]);
+
+		var range = document.createRange();
+		range.setStart(points[0], points[1]);
+		range.setEnd(points[2], points[3]);
+		// The points might be backwards
+		if (range.collapsed) {
+			range.setEnd(points[0], points[1]);
+		}
+		getSelection().removeAllRanges();
+		getSelection().addRange(range);
+
+		for (var i = 0; i < browserTest[1].length; i++) {
+			document.execCommand(browserTest[1][i][0], false, browserTest[1][i][1]);
+		}
+
+		// Now do various sanity checks, and throw if they're violated.  First
+		// just count children:
+		assert_equals(testDiv.parentNode.childNodes.length, 2,
+			"The parent div didn't have two children.  Did something spill outside the test div?");
+
+		// Check for attributes
+		assert_equals(testDiv.attributes.length, 1,
+			"Wrapper div has extra attributes!  " +
+			format_value(testDiv.parentNode.innerHTML));
+
+		normalizeSerializedStyle(testDiv);
+
+		setupDone = true;
+	}, testName + " setup and sanity checks");
+
+	test(function() {
+		assert_true(setupDone, "Setup failed, cannot proceed");
+
+		assert_equals(testDiv.innerHTML,
+			browserTest[2].replace(/[\[\]{}]/g, ""),
+			"Unexpected innerHTML");
+	}, testName + " compare innerHTML");
+}
+</script>
--- a/editing.html	Fri Sep 02 16:04:11 2011 -0600
+++ b/editing.html	Fri Sep 02 16:05:32 2011 -0600
@@ -112,7 +112,11 @@
  <li><a class=no-num href=#status-of-this-document>Status of this Document</a></li>
  <li><a class=no-num href=#table-of-contents>Table of contents</a></li>
  <li><a href=#introduction>Introduction</a></li>
- <li><a href=#tests>Tests</a></li>
+ <li><a href=#tests>Tests</a>
+  <ol>
+   <li><a href=#general-remarks>General remarks</a></li>
+   <li><a href=#development-tests>Development tests</a></li>
+   <li><a href=#conformance-tests>Conformance tests</a></ol></li>
  <li><a href=#issues>Issues</a></li>
  <li><a href=#commands>Commands</a>
   <ol>
@@ -264,10 +268,108 @@
 
 <h2 id=tests>Tests</h2>
 
-
-<p>This specification is developed in tandem with a more or less complete <a href=implementation.js>JavaScript implementation</a>, which is used for a suite
-of fully automated tests plus a few separate suites of manual tests.  The tests
-are:
+<h3 id=general-remarks>General remarks</h3>
+
+
+<p>This specification is developed in tandem with a more or less complete <a href=implementation.js>JavaScript implementation</a>.  The implementation is
+used for creating tests, of two different types: development tests and
+conformance tests.  The two types of test share most of the same code, starting
+with the multi-thousand-line implementation itself.  The actual tests run are
+largely the same in either case, but the way they're run is very different.
+
+<p>The development tests were the original ones, and were designed to assist in
+writing the specification from scratch.  Given an input, they print out the
+spec's and browser's output to allow manual inspection.  They can store the
+spec's output and will raise an alert if it changed since the last run, as a
+form of regression testing, but they don't print out counts of passed/failed
+tests.  They are not designed to run exactly the same across browsers and are
+tolerant of minor variations.  Development tests are likely not very useful for
+anyone other than the spec's editor.
+
+<p>Conformance tests were added later.  They run the same tests as the
+development tests, but in an entirely non-interactive format, using the <a href=http://dvcs.w3.org/hg/html/file/tip/tests/resources/testharness.js>testharness.js</a>
+framework developed by James Graham.  They always run the same set of tests,
+don't vary behavior between browsers (hopefully), and are unforgiving of any
+deviation.  However, they're significantly more cumbersome to set up and use,
+so they're less useful for developing the specification itself.
+
+<p>There's a suite of predefined tests for each command (~30&ndash;300 at the
+time of this writing).  These are the only tests run for the conformance tests,
+and in the regression tests they can be run by clicking the "Run tests" button.
+For the regression tests, you can also enter your own tests manually in the box
+provided.  In any event, the test input is a snippet of HTML, which must have a
+selection marked in it.  There are three ways to mark a selection's start or
+end:
+
+<ol>
+  <li>Square brackets mark a selection inside a text node, like
+  <code title="">&lt;b&gt;foo[bar]baz&lt;/b&gt;</code> for a selection whose start and end nodes are in
+  the text node <code title="">foobarbaz</code>, with start offset 3 and end offset 6.  Do
+  not use square brackets where there's no text node: <code title="">&lt;b&gt;[]&lt;/b&gt;</code> is
+  bad, <code title="">&lt;b&gt;{}&lt;/b&gt;</code> is correct.
+
+  <li>Curly braces mark a selection inside an element, like
+  <code title="">&lt;b&gt;{foobarbaz&lt;/b&gt;} </code> for a selection whose start node is the element
+  <code title="">&lt;b&gt;</code>, whose start offset is 0, whose end node is the root of the
+  editable region, and whose end offset is 1.  Do not use curly braces in the
+  middle of a text node: <code title="">foo{bar}baz</code> is bad, <code title="">foo[bar]baz</code> is correct.
+
+  <li>The <code title="">data-start</code> and <code title="">data-end</code>
+  attributes mark a selection inside an element if a curly brace can't be put
+  there in text/html.  For instance,
+  <code title="">&lt;table&gt;&lt;tr&gt;{&lt;td&gt;foo&lt;/td&gt;}&lt;/tr&gt;&lt;/table&gt;</code> doesn't work because when the
+  fragment is parsed, the curly braces end up outside the table.  Instead, you
+  have to do <code title="">&lt;table&gt;&lt;tr data-start=0 data-end=1&gt;&lt;td&gt;foo&lt;/table&gt;</code>.
+</ol>
+
+<p>Every input must have exactly one start marker and one end marker, which
+will be removed from the DOM before the test is run.  You can mix and match
+marker types, e.g., <code title="">[foo}</code>.
+
+<p>There is one special test type that behaves differently, "multitest".  This
+allows running several tests in succession, which is needed at least for
+testing the effect of commands' <a href=#state-override>state override</a> or <a href=#value-override>value
+override</a>.  The syntax is JSON, and looks like
+
+<pre>[<var title="">HTML input</var>,
+  [<var title="">command name 1</var>, <var title="">command value 1</var>],
+  [<var title="">command name 2</var>, <var title="">command value 2</var>],
+  . . .]</pre>
+
+<p>where all the variables are properly-quoted JSON strings.  <code title="">queryCommand*()</code> are not run for multitests.
+
+<p>In all cases, prefixing the test string (or the first string in the test
+array, for arrays) with "!" has a special effect.  The "!" will be stripped,
+and the test will be added to an array of bad tests.  These tests will be
+omitted from the <a href=#conformance-tests>conformance tests</a>.  This is
+used to mark tests where the reference implementation is known to currently
+give bad results, either because of a bug in the reference implementation or a
+bug in the spec.  Bad tests will still be run as <a href=#development-tests>development tests</a>.
+
+<p>Commands that are expected to vary significantly based on the value of the
+<a href=#css-styling-flag>CSS styling flag</a> are run twice.  The first time runs
+<code title="">execCommand("styleWithCSS", false, "false")</code> before every
+command, and the second runs <code title="">execCommand("styleWithCSS", false,
+"true")</code> before every command.  All other commands other than multitests
+run <code title="">execCommand("styleWithCSS", false, "false")</code> before every
+command.  The extra tests are not run as regression tests, in IE or Opera,
+because they don't implement <a href=#the-stylewithcss-command>the <code title="">styleWithCSS</code>
+command</a> (but of course the conformance tests always all run).
+
+<p>The implementation is also used for an actual <a href=editor.html>rich-text
+editor</a>, but it's currently more of a toy than anything.  Significant
+functionality is probably broken, especially outside of Gecko/WebKit.  I might
+spend some more time getting it to work right, but it's certainly not going to
+be very useful on real-world sites, since there's no way any of this stuff will
+work in IE8.
+
+
+<h3 id=development-tests>Development tests</h3>
+
+
+<p>The development tests are mostly useful for developing the spec itself, not
+for use by authors or browser implementers.  They consist of a suite of fully
+automated tests plus a few separate suites of manual tests.  The tests are:
 
 <ul>
   <li><a href=autoimplementation.html>autoimplementation.html</a>: Fully
@@ -313,37 +415,6 @@
 regression-testing the spec itself, and is probably not interesting to anyone
 other than me.
 
-<p>There's a suite of tests for each command (~30&ndash;300 at the time of this
-writing) that can be run by clicking the "Run tests" button.  This can take a
-while for some commands.  You can also enter your own tests manually in the box
-provided.  The test input is a snippet of HTML, which must have a selection
-marked in it.  There are three ways to mark a selection's start or end:
-
-<ol>
-  <li>Square brackets mark a selection inside a text node, like <code title="">&lt;b&gt;foo[bar]baz&lt;/b&gt;</code> for a selection whose start and end
-  nodes are in the text node <code title="">foobarbaz</code>, with start offset 3
-  and end offset 6.  Do not use square brackets where there's no text node:
-  <code title="">&lt;b&gt;[]&lt;/b&gt;</code> is bad, <code title="">&lt;b&gt;{}&lt;/b&gt;</code>
-  is correct.
-
-  <li>Curly braces mark a selection inside an element, like <code title="">&lt;b&gt;{foobarbaz&lt;/b&gt;}</code> for a selection whose start node is the
-  element <code title="">&lt;b&gt;</code>, whose start offset is 0, whose end node is
-  the root of the editable region, and whose end offset is 1.  Do not use curly
-  braces in the middle of a text node: <code title="">foo{bar}baz</code> is bad,
-  <code title="">foo[bar]baz</code> is correct.
-
-  <li>The <code title="">data-start</code> and <code title="">data-end</code>
-  attributes mark a selection inside an element if a curly brace can't be put
-  there in text/html.  For instance, <code title="">&lt;table&gt;&lt;tr&gt;{&lt;td&gt;foo&lt;/td&gt;}&lt;/tr&gt;&lt;/table&gt;</code> doesn't
-  work because when the fragment is parsed, the curly braces end up outside the
-  table.  Instead, you have to do <code title="">&lt;table&gt;&lt;tr data-start=0
-  data-end=1&gt;&lt;td&gt;foo&lt;/table&gt;</code>.
-</ol>
-
-<p>Every input must have exactly one start marker and one end marker, which
-will be removed from the DOM before the test is run.  You can mix and match
-marker types, e.g., <code title="">[foo}</code>.
-
 <p>When a test runs, first the code sets up a contenteditable div with the
 given contents and sets the selection as requested.  Then it runs
 <code><a href=#querycommandindeterm()>queryCommandIndeterm()</a></code>, <code><a href=#querycommandstate()>queryCommandState()</a></code>, and
@@ -352,27 +423,6 @@
 <code><a href=#querycommandindeterm()>queryCommandIndeterm()</a></code>, <code><a href=#querycommandstate()>queryCommandState()</a></code>, and
 <code><a href=#querycommandvalue()>queryCommandValue()</a></code> again.  Then it adds the output to the table.
 
-<p>There is one special test type that behaves differently, "multitest".  This
-allows running several tests in succession, which is needed at least for
-testing the effect of commands' <a href=#state-override>state override</a> or <a href=#value-override>value
-override</a>.  The syntax is JSON, and looks like
-
-<pre>[<var title="">HTML input</var>,
-  [<var title="">command name 1</var>, <var title="">command value 1</var>],
-  [<var title="">command name 2</var>, <var title="">command value 2</var>],
-  . . .]</pre>
-
-<p>where all the variables are properly-quoted JSON strings.  <code title="">queryCommand*()</code> are not run for multitests.
-
-<p>Commands that are expected to vary significantly based on the value of the
-<a href=#css-styling-flag>CSS styling flag</a> have two tables of results.  The first table runs
-<code title="">execCommand("styleWithCSS", false, "false")</code> before every
-command, and the second runs <code title="">execCommand("styleWithCSS", false,
-"true")</code> before every command.  All other commands other than multitests
-run <code title="">execCommand("styleWithCSS", false, "false")</code> before every
-command.  The extra tests are not run in IE or Opera, because they don't
-implement <a href=#the-stylewithcss-command>the <code title="">styleWithCSS</code> command</a>.
-
 <p>The manual tests are much like the automated tests, with some key
 differences.  They only test one command each, with one input value (if
 applicable).  When a test is run, everything proceeds as in the automated case,
@@ -384,31 +434,68 @@
 subsequent runs except for newly-added tests, but the cached entries can be
 cleared if necessary.
 
-<p>The tests have been tested and largely work in the latest versions (at the
-time of this writing) of IE, Firefox, Chrome, and Opera.  Since the
-implementation of the spec is in JavaScript, it's vulnerable to bugs in
-browsers' JavaScript implementations.  I work around or warn about some of
+<p>The development tests have been tested and largely work in the latest
+versions (at the time of this writing) of IE, Firefox, Chrome, and Opera.
+Since the implementation of the spec is in JavaScript, it's vulnerable to bugs
+in browsers' JavaScript implementations.  I work around or warn about some of
 these, but not all.  The most correct results will probably be in Firefox or
 Chrome: both IE and Opera have serious known bugs that corrupt spec output for
 many tests.  The tests are still useful for reviewing the browser output, but
 spec output in those browsers should be sanity-checked and compared against
 another browser's spec output in case of doubt.
 
-<p>These tests are really meant to aid spec development by seeing how browsers
-behave, not to aid browser development by seeing where the browser doesn't
-match the spec.  Proper conformance tests would a) record all expected results
-statically to avoid browser JS bugs, and b) compare expected and actual results
-much more strictly.  They would also test a <em>lot</em> more corner cases,
-like nested <code title="">contenteditable=false</code> regions.  It should be
-relatively easy to transform the existing tests into proper conformance tests,
-but there's not much point until the spec is more stable.
-
-<p>The implementation is also used for an actual <a href=editor.html>rich-text
-editor</a>, but it's currently more of a toy than anything.  Significant
-functionality is probably broken, especially outside of Gecko/WebKit.  I might
-spend some more time getting it to work right, but it's certainly not going to
-be very useful on real-world sites, since there's no way any of this stuff will
-work in IE8.
+
+<h3 id=conformance-tests>Conformance tests</h3>
+
+
+<p>The conformance tests operate more like one would expect from tests.  Once
+generated, they consist of a single page, <a href=conformancetest/runtest.html>conformancetest/runtest.html</a>, which runs
+all the tests and prints out a table of passes and fails.  Like many other
+recent web standards suites, they use the <a href=http://dvcs.w3.org/hg/html/file/tip/tests/resources/testharness.js>testharness.js</a>
+framework, and browser implementers should be able to make them part of their
+automated regression test frameworks.
+
+<p>Unlike the development tests, the conformance tests don't run the JavaScript
+implementation as part of the test.  Instead, the tests' expected values are
+generated by a separate page, <a href=conformancetest/gentest.html>conformancetest/gentest.html</a>.  That page
+will output the expected values for all tests in a format to be copied to <a href=conformancetest/data.js>conformancetest/data.js</a>, where it will be used
+by runtest.html.
+
+<p>This separation has a few benefits.  First of all, it means the conformance
+tests take a long time to generate, but run <em>much</em> faster than the
+development tests: on the order of one minute instead of five or more.
+(Browser implementations of <code title="">execCommand()</code> are currently much faster
+than the spec's JS reference implementation, it seems.)  Second of all, it
+means that all browsers are running against the same expected results.  Third
+of all, the fact that all expected results are saved in a file allows much more
+systematic regression testing of the spec and the reference implementation.
+Changes in expected results will be recorded in the spec's version history and
+can be matched up to changes in the reference implementation or the spec,
+instead of being stored transiently in the spec editor's <code title="">localStorage</code>
+and then lost.
+
+<p>There are a couple of disadvantages as well.  For one thing, new tests can't
+easily be added live, so the conformance tests aren't useful for experimenting
+with how implementations work.  For another thing, the tests' expected results
+can only be generated all at once (not per-command), which takes minutes.  A
+third issue is that they provide no useful feedback at all about user actions
+such as hitting Enter: they tell you what <a href=#the-insertparagraph-command>the <code title="">insertParagraph</code> command</a> does in the browser, but not
+whether it matches up to any user action.  Commands like <a href=#the-inserttext-command>the <code title="">insertText</code> command</a> just fail all tests in most browsers.
+Thus they don't replace the manual development tests at all.  (Manual
+conformance tests will eventually be added.)
+
+<p>As might be expected, browsers don't generate exactly the same expected
+results from the tests.  Clearly incorrect expected results (like a DOM that
+doesn't round-trip through text/html) are automatically rejected, with a
+printed warning, but some discrepancies remain.  At the time of this writing,
+Firefox 8.0a2 and Chrome 15 dev generate identical results, except that Firefox
+omits one test (due to <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=578141">incorrect
+serialization of <code title="">&lt;xmp&gt;</code></a>) and Chrome gets one test wrong (due to a
+<a href="https://bugs.webkit.org/show_bug.cgi?id=67424">style resolution
+bug</a>).  Thus I generate the tests right now in Firefox, since all its
+generated tests are at least correct.  IE9 and Opera 11.50 don't yet generate
+or run the tests usefully at all in this initial version, but this will be
+remedied soon.
 
 
 
--- a/source.html	Fri Sep 02 16:04:11 2011 -0600
+++ b/source.html	Fri Sep 02 16:05:32 2011 -0600
@@ -186,12 +186,115 @@
 <!-- @} -->
 
 <h2>Tests</h2>
+
+<h3>General remarks</h3>
 <!-- @{ -->
 
 <p>This specification is developed in tandem with a more or less complete <a
-href=implementation.js>JavaScript implementation</a>, which is used for a suite
-of fully automated tests plus a few separate suites of manual tests.  The tests
-are:
+href=implementation.js>JavaScript implementation</a>.  The implementation is
+used for creating tests, of two different types: development tests and
+conformance tests.  The two types of test share most of the same code, starting
+with the multi-thousand-line implementation itself.  The actual tests run are
+largely the same in either case, but the way they're run is very different.
+
+<p>The development tests were the original ones, and were designed to assist in
+writing the specification from scratch.  Given an input, they print out the
+spec's and browser's output to allow manual inspection.  They can store the
+spec's output and will raise an alert if it changed since the last run, as a
+form of regression testing, but they don't print out counts of passed/failed
+tests.  They are not designed to run exactly the same across browsers and are
+tolerant of minor variations.  Development tests are likely not very useful for
+anyone other than the spec's editor.
+
+<p>Conformance tests were added later.  They run the same tests as the
+development tests, but in an entirely non-interactive format, using the <a
+href=http://dvcs.w3.org/hg/html/file/tip/tests/resources/testharness.js>testharness.js</a>
+framework developed by James Graham.  They always run the same set of tests,
+don't vary behavior between browsers (hopefully), and are unforgiving of any
+deviation.  However, they're significantly more cumbersome to set up and use,
+so they're less useful for developing the specification itself.
+
+<p>There's a suite of predefined tests for each command (~30&ndash;300 at the
+time of this writing).  These are the only tests run for the conformance tests,
+and in the regression tests they can be run by clicking the "Run tests" button.
+For the regression tests, you can also enter your own tests manually in the box
+provided.  In any event, the test input is a snippet of HTML, which must have a
+selection marked in it.  There are three ways to mark a selection's start or
+end:
+
+<ol>
+  <li>Square brackets mark a selection inside a text node, like
+  {{code|<b>foo[bar]baz</b>}} for a selection whose start and end nodes are in
+  the text node {{code|foobarbaz}}, with start offset 3 and end offset 6.  Do
+  not use square brackets where there's no text node: {{code|<b>[]</b>}} is
+  bad, {{code|<b>{}</b>}} is correct.
+
+  <li>Curly braces mark a selection inside an element, like
+  {{code|<b>{foobarbaz</b>} }} for a selection whose start node is the element
+  {{code<|b>}}, whose start offset is 0, whose end node is the root of the
+  editable region, and whose end offset is 1.  Do not use curly braces in the
+  middle of a text node: <code title>foo{bar}baz</code> is bad, <code
+  title>foo[bar]baz</code> is correct.
+
+  <li>The <code title>data-start</code> and <code title>data-end</code>
+  attributes mark a selection inside an element if a curly brace can't be put
+  there in text/html.  For instance,
+  {{code|<table><tr>{<td>foo</td>}</tr></table>}} doesn't work because when the
+  fragment is parsed, the curly braces end up outside the table.  Instead, you
+  have to do {{code|<table><tr data-start=0 data-end=1><td>foo</table>}}.
+</ol>
+
+<p>Every input must have exactly one start marker and one end marker, which
+will be removed from the DOM before the test is run.  You can mix and match
+marker types, e.g., <code title>[foo}</code>.
+
+<p>There is one special test type that behaves differently, "multitest".  This
+allows running several tests in succession, which is needed at least for
+testing the effect of commands' <span>state override</span> or <span>value
+override</span>.  The syntax is JSON, and looks like
+
+<pre>
+[<var>HTML input</var>,
+  [<var>command name 1</var>, <var>command value 1</var>],
+  [<var>command name 2</var>, <var>command value 2</var>],
+  . . .]</pre>
+
+<p>where all the variables are properly-quoted JSON strings.  <code
+title>queryCommand*()</code> are not run for multitests.
+
+<p>In all cases, prefixing the test string (or the first string in the test
+array, for arrays) with "!" has a special effect.  The "!" will be stripped,
+and the test will be added to an array of bad tests.  These tests will be
+omitted from the <a href=#conformance-tests>conformance tests</a>.  This is
+used to mark tests where the reference implementation is known to currently
+give bad results, either because of a bug in the reference implementation or a
+bug in the spec.  Bad tests will still be run as <a
+href=#development-tests>development tests</a>.
+
+<p>Commands that are expected to vary significantly based on the value of the
+<span>CSS styling flag</span> are run twice.  The first time runs
+<code title>execCommand("styleWithCSS", false, "false")</code> before every
+command, and the second runs <code title>execCommand("styleWithCSS", false,
+"true")</code> before every command.  All other commands other than multitests
+run <code title>execCommand("styleWithCSS", false, "false")</code> before every
+command.  The extra tests are not run as regression tests, in IE or Opera,
+because they don't implement <span>the <code title>styleWithCSS</code>
+command</span> (but of course the conformance tests always all run).
+
+<p>The implementation is also used for an actual <a href=editor.html>rich-text
+editor</a>, but it's currently more of a toy than anything.  Significant
+functionality is probably broken, especially outside of Gecko/WebKit.  I might
+spend some more time getting it to work right, but it's certainly not going to
+be very useful on real-world sites, since there's no way any of this stuff will
+work in IE8.
+
+<!-- @} -->
+<h3 id=development-tests>Development tests</h3>
+<!-- @{ -->
+
+<p>The development tests are mostly useful for developing the spec itself, not
+for use by authors or browser implementers.  They consist of a suite of fully
+automated tests plus a few separate suites of manual tests.  The tests are:
 
 <ul>
   <li><a href=autoimplementation.html>autoimplementation.html</a>: Fully
@@ -238,40 +341,6 @@
 regression-testing the spec itself, and is probably not interesting to anyone
 other than me.
 
-<p>There's a suite of tests for each command (~30&ndash;300 at the time of this
-writing) that can be run by clicking the "Run tests" button.  This can take a
-while for some commands.  You can also enter your own tests manually in the box
-provided.  The test input is a snippet of HTML, which must have a selection
-marked in it.  There are three ways to mark a selection's start or end:
-
-<ol>
-  <li>Square brackets mark a selection inside a text node, like <code
-  title>&lt;b>foo[bar]baz&lt;/b></code> for a selection whose start and end
-  nodes are in the text node <code title>foobarbaz</code>, with start offset 3
-  and end offset 6.  Do not use square brackets where there's no text node:
-  <code title>&lt;b>[]&lt;/b></code> is bad, <code title>&lt;b>{}&lt;/b></code>
-  is correct.
-
-  <li>Curly braces mark a selection inside an element, like <code
-  title>&lt;b>{foobarbaz&lt;/b>}</code> for a selection whose start node is the
-  element <code title>&lt;b></code>, whose start offset is 0, whose end node is
-  the root of the editable region, and whose end offset is 1.  Do not use curly
-  braces in the middle of a text node: <code title>foo{bar}baz</code> is bad,
-  <code title>foo[bar]baz</code> is correct.
-
-  <li>The <code title>data-start</code> and <code title>data-end</code>
-  attributes mark a selection inside an element if a curly brace can't be put
-  there in text/html.  For instance, <code
-  title>&lt;table>&lt;tr>{&lt;td>foo&lt;/td>}&lt;/tr>&lt;/table></code> doesn't
-  work because when the fragment is parsed, the curly braces end up outside the
-  table.  Instead, you have to do <code title>&lt;table>&lt;tr data-start=0
-  data-end=1>&lt;td>foo&lt;/table></code>.
-</ol>
-
-<p>Every input must have exactly one start marker and one end marker, which
-will be removed from the DOM before the test is run.  You can mix and match
-marker types, e.g., <code title>[foo}</code>.
-
 <p>When a test runs, first the code sets up a contenteditable div with the
 given contents and sets the selection as requested.  Then it runs
 <code>queryCommandIndeterm()</code>, <code>queryCommandState()</code>, and
@@ -280,29 +349,6 @@
 <code>queryCommandIndeterm()</code>, <code>queryCommandState()</code>, and
 <code>queryCommandValue()</code> again.  Then it adds the output to the table.
 
-<p>There is one special test type that behaves differently, "multitest".  This
-allows running several tests in succession, which is needed at least for
-testing the effect of commands' <span>state override</span> or <span>value
-override</span>.  The syntax is JSON, and looks like
-
-<pre>
-[<var>HTML input</var>,
-  [<var>command name 1</var>, <var>command value 1</var>],
-  [<var>command name 2</var>, <var>command value 2</var>],
-  . . .]</pre>
-
-<p>where all the variables are properly-quoted JSON strings.  <code
-title>queryCommand*()</code> are not run for multitests.
-
-<p>Commands that are expected to vary significantly based on the value of the
-<span>CSS styling flag</span> have two tables of results.  The first table runs
-<code title>execCommand("styleWithCSS", false, "false")</code> before every
-command, and the second runs <code title>execCommand("styleWithCSS", false,
-"true")</code> before every command.  All other commands other than multitests
-run <code title>execCommand("styleWithCSS", false, "false")</code> before every
-command.  The extra tests are not run in IE or Opera, because they don't
-implement <span>the <code title>styleWithCSS</code> command</span>.
-
 <p>The manual tests are much like the automated tests, with some key
 differences.  They only test one command each, with one input value (if
 applicable).  When a test is run, everything proceeds as in the automated case,
@@ -314,31 +360,75 @@
 subsequent runs except for newly-added tests, but the cached entries can be
 cleared if necessary.
 
-<p>The tests have been tested and largely work in the latest versions (at the
-time of this writing) of IE, Firefox, Chrome, and Opera.  Since the
-implementation of the spec is in JavaScript, it's vulnerable to bugs in
-browsers' JavaScript implementations.  I work around or warn about some of
+<p>The development tests have been tested and largely work in the latest
+versions (at the time of this writing) of IE, Firefox, Chrome, and Opera.
+Since the implementation of the spec is in JavaScript, it's vulnerable to bugs
+in browsers' JavaScript implementations.  I work around or warn about some of
 these, but not all.  The most correct results will probably be in Firefox or
 Chrome: both IE and Opera have serious known bugs that corrupt spec output for
 many tests.  The tests are still useful for reviewing the browser output, but
 spec output in those browsers should be sanity-checked and compared against
 another browser's spec output in case of doubt.
 
-<p>These tests are really meant to aid spec development by seeing how browsers
-behave, not to aid browser development by seeing where the browser doesn't
-match the spec.  Proper conformance tests would a) record all expected results
-statically to avoid browser JS bugs, and b) compare expected and actual results
-much more strictly.  They would also test a <em>lot</em> more corner cases,
-like nested <code title>contenteditable=false</code> regions.  It should be
-relatively easy to transform the existing tests into proper conformance tests,
-but there's not much point until the spec is more stable.
-
-<p>The implementation is also used for an actual <a href=editor.html>rich-text
-editor</a>, but it's currently more of a toy than anything.  Significant
-functionality is probably broken, especially outside of Gecko/WebKit.  I might
-spend some more time getting it to work right, but it's certainly not going to
-be very useful on real-world sites, since there's no way any of this stuff will
-work in IE8.
+<!-- @} -->
+<h3 id=conformance-tests>Conformance tests</h3>
+<!-- @{ -->
+
+<p>The conformance tests operate more like one would expect from tests.  Once
+generated, they consist of a single page, <a
+href=conformancetest/runtest.html>conformancetest/runtest.html</a>, which runs
+all the tests and prints out a table of passes and fails.  Like many other
+recent web standards suites, they use the <a
+href=http://dvcs.w3.org/hg/html/file/tip/tests/resources/testharness.js>testharness.js</a>
+framework, and browser implementers should be able to make them part of their
+automated regression test frameworks.
+
+<p>Unlike the development tests, the conformance tests don't run the JavaScript
+implementation as part of the test.  Instead, the tests' expected values are
+generated by a separate page, <a
+href=conformancetest/gentest.html>conformancetest/gentest.html</a>.  That page
+will output the expected values for all tests in a format to be copied to <a
+href=conformancetest/data.js>conformancetest/data.js</a>, where it will be used
+by runtest.html.
+
+<p>This separation has a few benefits.  First of all, it means the conformance
+tests take a long time to generate, but run <em>much</em> faster than the
+development tests: on the order of one minute instead of five or more.
+(Browser implementations of {{code|execCommand()}} are currently much faster
+than the spec's JS reference implementation, it seems.)  Second of all, it
+means that all browsers are running against the same expected results.  Third
+of all, the fact that all expected results are saved in a file allows much more
+systematic regression testing of the spec and the reference implementation.
+Changes in expected results will be recorded in the spec's version history and
+can be matched up to changes in the reference implementation or the spec,
+instead of being stored transiently in the spec editor's {{code|localStorage}}
+and then lost.
+
+<p>There are a couple of disadvantages as well.  For one thing, new tests can't
+easily be added live, so the conformance tests aren't useful for experimenting
+with how implementations work.  For another thing, the tests' expected results
+can only be generated all at once (not per-command), which takes minutes.  A
+third issue is that they provide no useful feedback at all about user actions
+such as hitting Enter: they tell you what <span>the <code
+title>insertParagraph</code> command</span> does in the browser, but not
+whether it matches up to any user action.  Commands like <span>the <code
+title>insertText</code> command</span> just fail all tests in most browsers.
+Thus they don't replace the manual development tests at all.  (Manual
+conformance tests will eventually be added.)
+
+<p>As might be expected, browsers don't generate exactly the same expected
+results from the tests.  Clearly incorrect expected results (like a DOM that
+doesn't round-trip through text/html) are automatically rejected, with a
+printed warning, but some discrepancies remain.  At the time of this writing,
+Firefox 8.0a2 and Chrome 15 dev generate identical results, except that Firefox
+omits one test (due to <a
+href=https://bugzilla.mozilla.org/show_bug.cgi?id=578141>incorrect
+serialization of {{code|<xmp>}}</a>) and Chrome gets one test wrong (due to a
+<a href=https://bugs.webkit.org/show_bug.cgi?id=67424>style resolution
+bug</a>).  Thus I generate the tests right now in Firefox, since all its
+generated tests are at least correct.  IE9 and Opera 11.50 don't yet generate
+or run the tests usefully at all in this initial version, but this will be
+remedied soon.
 
 <!-- @} -->
 
--- a/tests.js	Fri Sep 02 16:04:11 2011 -0600
+++ b/tests.js	Fri Sep 02 16:05:32 2011 -0600
@@ -222,7 +222,8 @@
 		'<span>foo[</span><span>]bar</span>',
 		'foo[bar]baz',
 		'foo]bar[baz',
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 
 		'<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>',
 		'<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>',
@@ -610,13 +611,13 @@
 		// https://bugs.webkit.org/show_bug.cgi?id=35281
 		// Results here are wrong, see:
 		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13976
-		'<ol><li>foo</li></ol>{}<br><ol><li>bar</li></ol>',
-		'<ol id=a><li>foo</li></ol>{}<br><ol><li>bar</li></ol>',
-		'<ol><li>foo</li></ol>{}<br><ol id=b><li>bar</li></ol>',
-		'<ol id=a><li>foo</li></ol>{}<br><ol id=b><li>bar</li></ol>',
-		'<ol class=a><li>foo</li></ol>{}<br><ol class=b><li>bar</li></ol>',
-		'<ol><ol><li>foo</ol><li>{}<br><ol><li>bar</ol></ol>',
-		'<ol><ol><li>foo</ol><li>{}<br></li><ol><li>bar</ol></ol>',
+		'!<ol><li>foo</li></ol>{}<br><ol><li>bar</li></ol>',
+		'!<ol id=a><li>foo</li></ol>{}<br><ol><li>bar</li></ol>',
+		'!<ol><li>foo</li></ol>{}<br><ol id=b><li>bar</li></ol>',
+		'!<ol id=a><li>foo</li></ol>{}<br><ol id=b><li>bar</li></ol>',
+		'!<ol class=a><li>foo</li></ol>{}<br><ol class=b><li>bar</li></ol>',
+		'!<ol><ol><li>foo</ol><li>{}<br><ol><li>bar</ol></ol>',
+		'!<ol><ol><li>foo</ol><li>{}<br></li><ol><li>bar</ol></ol>',
 	],
 	//@}
 	fontname: [
@@ -626,7 +627,8 @@
 		'<span>foo[</span><span>]bar</span>',
 		'foo[bar]baz',
 		'foo]bar[baz',
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 
 		'<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>',
 		'<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>',
@@ -730,7 +732,8 @@
 		["-9", 'foo[bar]baz'],
 		["", 'foo[bar]baz'],
 
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 		'foo[bar<i>baz]qoz</i>quz',
 
 		'<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>',
@@ -797,9 +800,9 @@
 		'<font size=6>fo[o</font><span style=font-size:xx-large>b]ar</span>',
 
 		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13829
-		["6", '<span style=background-color:aqua>[foo]</span>'],
-		["6", '<span style=background-color:aqua>foo[bar]baz</span>'],
-		["6", '[foo<span style=background-color:aqua>bar</span>baz]'],
+		["!6", '<span style=background-color:aqua>[foo]</span>'],
+		["!6", '<span style=background-color:aqua>foo[bar]baz</span>'],
+		["!6", '[foo<span style=background-color:aqua>bar</span>baz]'],
 	],
 	//@}
 	forecolor: [
@@ -809,7 +812,8 @@
 		'<span>foo[</span><span>]bar</span>',
 		'foo[bar]baz',
 		'foo]bar[baz',
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 		'foo[bar<i>baz]qoz</i>quz',
 
 		['blue', 'foo[bar]baz'],
@@ -1147,7 +1151,7 @@
 		['<pre>', '&#10;[foo<p>bar]</p>'],
 		// From https://bugs.webkit.org/show_bug.cgi?id=47300
 		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=14009
-		['<p>', '{<pre>&#10;foo&#10;&#10;bar&#10;</pre>}'],
+		['!<p>', '{<pre>&#10;foo&#10;&#10;bar&#10;</pre>}'],
 	],
 	//@}
 	forwarddelete: [
@@ -1470,7 +1474,8 @@
 		'<span>foo[</span><span>]bar</span>',
 		'foo[bar]baz',
 		'foo]bar[baz',
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 		'foo[bar<i>baz]qoz</i>quz',
 
 		'<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>',
@@ -1507,12 +1512,12 @@
 		'<span style=background-color:tan>fo[o<span style=background-color:transparent>b]ar</span></span>',
 
 		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13829
-		'<font size=6>[foo]</font>',
-		'<span style=font-size:xx-large>[foo]</span>',
-		'<font size=6>foo[bar]baz</font>',
-		'<span style=font-size:xx-large>foo[bar]baz</span>',
-		'[foo<font size=6>bar</font>baz]',
-		'[foo<span style=font-size:xx-large>bar</span>baz]',
+		'!<font size=6>[foo]</font>',
+		'!<span style=font-size:xx-large>[foo]</span>',
+		'!<font size=6>foo[bar]baz</font>',
+		'!<span style=font-size:xx-large>foo[bar]baz</span>',
+		'![foo<font size=6>bar</font>baz]',
+		'![foo<span style=font-size:xx-large>bar</span>baz]',
 	],
 	//@}
 	indent: [
@@ -2510,7 +2515,8 @@
 		'<span>foo[</span><span>]bar</span>',
 		'foo[bar]baz',
 		'foo]bar[baz',
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 		'foo[bar<b>baz]qoz</b>quz',
 
 		'<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>',
@@ -3245,7 +3251,8 @@
 		'<span>foo[</span><span>]bar</span>',
 		'foo[bar]baz',
 		'foo]bar[baz',
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 		'foo[bar<b>baz]qoz</b>quz',
 
 		'<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>',
@@ -3441,7 +3448,8 @@
 		'<span>foo[</span><span>]bar</span>',
 		'foo[bar]baz',
 		'foo]bar[baz',
-		'{<p><p> <p>foo</p>}',
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13996
+		'!{<p><p> <p>foo</p>}',
 		'foo[bar<b>baz]qoz</b>quz',
 
 		'<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>',
@@ -3691,6 +3699,28 @@
 tests.backcolor = tests.hilitecolor;
 tests.insertlinebreak = tests.insertparagraph;
 
+// Tests that start with "!" are believed to have bogus results and should be
+// skipped until the relevant bugs are fixed.
+var badTests = {};
+(function(){
+	for (var command in tests) {
+		badTests[command] = [];
+		for (var i = 0; i < tests[command].length; i++) {
+			var test = tests[command][i];
+			if (typeof test == "string" && test[0] == "!") {
+				test = test.slice(1);
+				tests[command][i] = test;
+				badTests[command].push(test);
+			}
+			if (typeof test == "object" && test[0][0] == "!") {
+				test = [test[0].slice(1)].concat(test.slice(1));
+				tests[command][i] = test;
+				badTests[command].push(test);
+			}
+		}
+	}
+})();
+
 var defaultValues = {
 //@{
 	backcolor: "#00FFFF",
@@ -4125,13 +4155,10 @@
 	} catch (e) {
 		specCell.firstChild.contentEditable = "inherit";
 		specCell.firstChild.removeAttribute("spellcheck");
-		specCell.lastChild.textContent = "Exception: " + e;
+		specCell.lastChild.textContent = "Exception: " + formatException(e);
 
 		specCell.parentNode.className = "alert";
 		specCell.lastChild.className = "alert";
-		if (typeof e == "object" && "stack" in e) {
-			specCell.lastChild.textContent += " (stack: " + e.stack + ")";
-		}
 
 		// Don't bother comparing to localStorage, this is always wrong no
 		// matter what.
@@ -4205,16 +4232,22 @@
 		testDiv.removeAttribute("spellcheck");
 	}
 	browserCell.lastChild.className = "alert";
-	browserCell.lastChild.textContent = "Exception: " + e;
-	if (typeof e == "object" && "stack" in e) {
-		specCell.lastChild.textContent += " (stack: " + e.stack + ")";
-	}
+	browserCell.lastChild.textContent = "Exception: " + formatException(e);
 	if (testDiv && testDiv.parentNode != browserCell) {
 		browserCell.insertBefore(testDiv, browserCell.firstChild);
 	}
 }
 //@}
 
+function formatException(e) {
+//@{
+	if (typeof e == "object" && "stack" in e) {
+		return e + " (stack: " + e.stack + ")";
+	}
+	return String(e);
+}
+//@}
+
 function doSameCell(tr) {
 //@{
 	tr.className = (" " + tr.className + " ").replace(" active ", "").trim();
@@ -4318,6 +4351,12 @@
 //@{
 	cell.innerHTML = "<div></div><div></div>";
 
+	return setupDiv(cell.firstChild, html);
+}
+//@}
+
+function setupDiv(node, html) {
+//@{
 	// A variety of checks to avoid simple errors.  Not foolproof, of course.
 	var re = /\{|\[|data-start/g;
 	var markers = [];
@@ -4339,7 +4378,6 @@
 		throw "Need exactly one end marker (] or } or data-end), found " + markers.length;
 	}
 
-	var node = cell.firstChild;
 	node.innerHTML = html;
 
 	var startNode, startOffset, endNode, endOffset;
@@ -4532,4 +4570,40 @@
 	}
 }
 //@}
+
+function normalizeSerializedStyle(wrapper) {
+//@{
+	// Inline CSS attribute serialization has terrible interop, so we fix
+	// things up a bit to avoid spurious mismatches.  This needs to be removed
+	// once CSSOM defines this stuff properly, but for now there's just no
+	// standard for any of it.  This only normalizes descendants of wrapper,
+	// not wrapper itself.
+	[].forEach.call(wrapper.querySelectorAll("[style]"), function(node) {
+		if (node.style.color != "") {
+			var newColor = normalizeColor(node.style.color);
+			node.style.color = "";
+			node.style.color = newColor;
+		}
+		if (node.style.backgroundColor != "") {
+			var newBackgroundColor = normalizeColor(node.style.backgroundColor);
+			node.style.backgroundColor = "";
+			node.style.backgroundColor = newBackgroundColor;
+		}
+		node.setAttribute("style", node.getAttribute("style")
+			// Random spacing differences
+			.replace(/; ?$/, "")
+			.replace(/: /g, ":")
+			// Gecko likes "transparent"
+			.replace(/transparent/g, "rgba(0, 0, 0, 0)")
+			// WebKit likes to look overly precise
+			.replace(/, 0.496094\)/g, ", 0.5)")
+			// Gecko converts anything with full alpha to "transparent" which
+			// then becomes "rgba(0, 0, 0, 0)", so we have to make other
+			// browsers match
+			.replace(/rgba\([0-9]+, [0-9]+, [0-9]+, 0\)/g, "rgba(0, 0, 0, 0)")
+		);
+	});
+}
+//@}
+
 // vim: foldmarker=@{,@} foldmethod=marker