var browserTests = [
["foo[]bar<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[]bar</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[]bar<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[]bar</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[]bar<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[]bar</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[]bar<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[]bar</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo</span>{}<span>bar</span><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo</span>{}<span>bar</span><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo</span>{}<span>bar</span><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo</span>{}<span>bar</span><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo</span>{}<span>bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo[</span><span>]bar</span><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo[</span><span>]bar</span><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo[</span><span>]bar</span><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span>foo[</span><span>]bar</span><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><span>foo[</span><span>]bar</span></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar]baz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar]baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar]baz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar]baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar]baz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar]baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar]baz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar]baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar<b>baz]qoz</b>quz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar<b>baz]qoz</b>quz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar<b>baz]qoz</b>quz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["foo[bar<b>baz]qoz</b>quz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo[bar<b>baz]qoz</b>quz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[]bar<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[]bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[]bar<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[]bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[]bar<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[]bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[]bar<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[]bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[bar]baz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[bar]baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[bar]baz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[bar]baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[bar]baz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[bar]baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>foo[bar]baz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo[bar]baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<h1>foo[bar]baz</h1><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><h1>foo[bar]baz</h1></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<h1>foo[bar]baz</h1><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><h1>foo[bar]baz</h1></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<h1>foo[bar]baz</h1><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><h1>foo[bar]baz</h1></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<h1>foo[bar]baz</h1><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><h1>foo[bar]baz</h1></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<pre>foo[bar]baz</pre><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><pre>foo[bar]baz</pre></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<pre>foo[bar]baz</pre><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><pre>foo[bar]baz</pre></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<pre>foo[bar]baz</pre><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><pre>foo[bar]baz</pre></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<pre>foo[bar]baz</pre><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><pre>foo[bar]baz</pre></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<xmp>foo[bar]baz</xmp><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<xmp>foo[bar]baz</xmp><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<xmp>foo[bar]baz</xmp><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<xmp>foo[bar]baz</xmp><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><xmp>foo[bar]baz</xmp></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<center><p>[foo]<p>bar</center><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<center><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<center><p>[foo]<p>bar</center><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<center><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<center><p>[foo]<p>bar</center><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<center><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<center><p>[foo]<p>bar</center><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<center><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></center><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<center><p>[foo<p>bar]</center><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<center><p>[foo<p>bar]</center><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<center><p>[foo<p>bar]</center><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<center><p>[foo<p>bar]</center><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<table><tbody align=right><tr><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["justifyright",""]],
    "<table><tbody align=\"right\"><tr><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody align=right><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["justifyright",""]],
    "<table><tbody align=\"right\"><tr><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody align=right><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["justifyright",""]],
    "<table><tbody align=\"right\"><tr>{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody><tr align=right><td>foo<td>b[a]r<td>baz</table><p>extra",
    [["justifyright",""]],
    "<table><tbody><tr align=\"right\"><td>foo</td><td>b[a]r</td><td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody><tr align=right data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["justifyright",""]],
    "<table><tbody><tr align=\"right\"><td>foo</td>{<td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody><tr align=right data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra",
    [["justifyright",""]],
    "<table><tbody><tr align=\"right\">{<td>foo</td><td>bar</td>}<td>baz</td></tr></tbody></table><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<div align=center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<div align=center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<div align=center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<div align=center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,false,"center",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,false,"center",false,true,"right"]}],
["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"center",false,true,"right"]}],
["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<div style=text-align:center><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:center\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"center",false,true,"right"]}],
["<div style=text-align:center><p>[foo<p>bar]</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"center",false,true,"right"]}],
["<div align=justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div align=justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div align=justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div align=justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,false,"justify",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div style=text-align:justify><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:justify\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"justify",false,true,"right"]}],
["<div style=text-align:justify><p>[foo<p>bar]</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"justify",false,true,"right"]}],
["<div align=left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,false,"left",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:left><p>[foo]<p>bar</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:left\"><div style=\"text-align:right\"><p>[foo]</p></div><p>bar</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:left><p>[foo<p>bar]</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right><p>[foo]<p>bar</div><p>extra",
    [["justifyright",""]],
    "<div align=\"right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,true,"right",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,true,"right",false,true,"right"]}],
["<div style=text-align:right><p>[foo]<p>bar</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<div style=text-align:right><p>[foo<p>bar]</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo</p><p>bar]</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<div align=right>foo</div>[bar]<p>extra",
    [["justifyright",""]],
    "<div align=\"right\">foo<br>[bar]</div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["[foo]<div align=right>bar</div><p>extra",
    [["justifyright",""]],
    "<div align=\"right\">[foo]<br>bar</div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right>foo</div>[bar]<div align=right>baz</div><p>extra",
    [["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"right\">foo<br>[bar]<br>baz</div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right>foo</div>[bar]<div align=right>baz</div><p>extra",
    [["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"right\">foo<br>[bar]<br>baz</div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right><p>foo</div><p>[bar]<p>extra",
    [["justifyright",""]],
    "<div align=\"right\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]<div align=right><p>bar</div><p>extra",
    [["justifyright",""]],
    "<div align=\"right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right><p>foo</div><p>[bar]<div align=right><p>baz</div><p>extra",
    [["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right><p>foo</div><p>[bar]<div align=right><p>baz</div><p>extra",
    [["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right>foo</div>[bar]<p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\">foo<br>[bar]</div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["[foo]<div style=text-align:right>bar</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\">[foo]<br>bar</div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right>foo</div>[bar]<div style=text-align:right>baz</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo<br>[bar]<br>baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right>foo</div>[bar]<div style=text-align:right>baz</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">foo<br>[bar]<br>baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right>foo</div>[bar]<div style=text-align:right>baz</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo<br>[bar]<br>baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right>foo</div>[bar]<div style=text-align:right>baz</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">foo<br>[bar]<br>baz</div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div><p>[bar]<p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p><p>[bar]</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]<div style=text-align:right><p>bar</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p><p>bar</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div><p>[bar]<div style=text-align:right><p>baz</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div><p>[bar]<div style=text-align:right><p>baz</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div><p>[bar]<div style=text-align:right><p>baz</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div><p>[bar]<div style=text-align:right><p>baz</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p><p>[bar]</p><p>baz</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]<p align=right>bar<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p></div><p align=\"right\">bar</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]<p align=right>bar<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p></div><p align=\"right\">bar</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]<p align=right>bar<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p></div><p align=\"right\">bar</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]<p align=right>bar<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p></div><p align=\"right\">bar</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p align=right>baz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p align=\"right\">baz</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p align=right>baz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p align=\"right\">baz</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p align=right>baz<p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p align=\"right\">baz</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<p align=right>foo<p>[bar]<p align=right>baz<p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<p align=\"right\">foo</p><div style=\"text-align:right\"><p>[bar]</p></div><p align=\"right\">baz</p><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right>[foo</div>bar]<p>extra",
    [["stylewithcss","true"],["justifyright",""]],
    "<div style=\"text-align:right\">[foo<br>bar]</div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[true,false,"right",false,true,"right"]}],
["<div align=right>[foo</div>bar]<p>extra",
    [["stylewithcss","false"],["justifyright",""]],
    "<div style=\"text-align:right\">[foo<br>bar]</div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[true,false,"right",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[true,false,"right",false,true,"right"]}],
["<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>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[true,false,"right",false,true,"right"]}],
["<div style=text-align:right>[foo</div>bar]<p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\">[foo<br>bar]</div><p>extra</p>",
    [true],
    {"justifyright":[true,false,"right",false,true,"right"]}],
["<div style=text-align:right>fo[o</div>b]ar<p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\">fo[o<br>b]ar</div><p>extra</p>",
    [true],
    {"justifyright":[true,false,"right",false,true,"right"]}],
["<span style=text-align:right>[foo]</span><p>extra",
    [["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">[foo]</div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span style=text-align:right>[foo]</span><p>extra",
    [["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">[foo]</div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span style=text-align:right>f[o]o</span><p>extra",
    [["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\">f[o]o</div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<span style=text-align:right>f[o]o</span><p>extra",
    [["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\">f[o]o</div><p>extra</p>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,true,"right",false,true,"right"]}],
["<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz]</div><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["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>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,true,"right",false,true,"right"]}],
["<div align=nonsense><p>[foo]</div><p>extra",
    [["stylewithcss","true"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=nonsense><p>[foo]</div><p>extra",
    [["stylewithcss","false"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:inherit><p>[foo]</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<quasit align=center><p>[foo]</p></quasit><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<quasit align=center><p>[foo]</p></quasit><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<quasit align=center><p>[foo]</p></quasit><p>extra",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<quasit align=center><p>[foo]</p></quasit><p>extra",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:start>[foo]</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\">[foo]</div><p>extra</p>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:end>[foo]</div><p>extra",
    [["justifyright",""]],
    "<div style=\"text-align:right\">[foo]</div><p>extra</p>",
    [true],
    {"justifyright":[false,true,"right",false,true,"right"]}],
["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
    [["stylewithcss","true"],["justifyright",""]],
    "<div dir=\"rtl\">[foo]</div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,true,"right",false,true,"right"]}],
["<div dir=rtl style=text-align:start>[foo]</div><p>extra",
    [["stylewithcss","false"],["justifyright",""]],
    "<div dir=\"rtl\">[foo]</div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,true,"right",false,true,"right"]}],
["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
    [["stylewithcss","true"],["justifyright",""]],
    "<div dir=\"rtl\">[foo]</div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,false,"left",false,true,"right"]}],
["<div dir=rtl style=text-align:end>[foo]</div><p>extra",
    [["stylewithcss","false"],["justifyright",""]],
    "<div dir=\"rtl\">[foo]</div><p>extra</p>",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div> <p>[bar]",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p> <p>[bar]</p></div>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right><p>foo</div> <p>[bar]",
    [["justifyright",""]],
    "<div align=\"right\"><p>foo</p> <p>[bar]</p></div>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]</p> <div style=text-align:right><p>bar</div>",
    [["justifyright",""]],
    "<div style=\"text-align:right\"><p>[foo]</p> <p>bar</p></div>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<p>[foo]</p> <div align=right><p>bar</div>",
    [["justifyright",""]],
    "<div align=\"right\"><p>[foo]</p> <p>bar</p></div>",
    [true],
    {"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div> <p>[bar]</p> <div style=text-align:right><p>baz</div>",
    [["stylewithcss","true"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p> <p>[bar]</p> <p>baz</p></div>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div> <p>[bar]</p> <div style=text-align:right><p>baz</div>",
    [["stylewithcss","false"],["defaultparagraphseparator","div"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p> <p>[bar]</p> <p>baz</p></div>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div> <p>[bar]</p> <div style=text-align:right><p>baz</div>",
    [["stylewithcss","true"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p> <p>[bar]</p> <p>baz</p></div>",
    [true,true,true],
    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div style=text-align:right><p>foo</div> <p>[bar]</p> <div style=text-align:right><p>baz</div>",
    [["stylewithcss","false"],["defaultparagraphseparator","p"],["justifyright",""]],
    "<div style=\"text-align:right\"><p>foo</p> <p>[bar]</p> <p>baz</p></div>",
    [true,true,true],
    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right><p>foo</div> <p>[bar]</p> <div align=right><p>baz</div>",
    [["defaultparagraphseparator","div"],["justifyright",""]],
    "<div align=\"right\"><p>foo</p> <p>[bar]</p> <p>baz</p></div>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"justifyright":[false,false,"left",false,true,"right"]}],
["<div align=right><p>foo</div> <p>[bar]</p> <div align=right><p>baz</div>",
    [["defaultparagraphseparator","p"],["justifyright",""]],
    "<div align=\"right\"><p>foo</p> <p>[bar]</p> <p>baz</p></div>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"justifyright":[false,false,"left",false,true,"right"]}]
]
