tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

inserthorizontalrule.js (24798B)


      1 // For documentation of the format, see README in this directory.
      2 var browserTests = [
      3 ["foo[]bar",
      4    [["inserthorizontalrule",""]],
      5    "foo<hr>{}bar",
      6    [true],
      7    {"inserthorizontalrule":[false,false,"",false,false,""]}],
      8 ["<span>foo</span>{}<span>bar</span>",
      9    [["inserthorizontalrule",""]],
     10    "<span>foo</span><hr>{}<span>bar</span>",
     11    [true],
     12    {"inserthorizontalrule":[false,false,"",false,false,""]}],
     13 ["<span>foo[</span><span>]bar</span>",
     14    [["inserthorizontalrule",""]],
     15    "<span>foo</span><hr>{}<span>bar</span>",
     16    [true],
     17    {"inserthorizontalrule":[false,false,"",false,false,""]}],
     18 ["<p>foo[bar<p>baz]quz",
     19    [["inserthorizontalrule",""]],
     20    "<p>foo</p><hr>{}<p>quz</p>",
     21    [true],
     22    {"inserthorizontalrule":[false,false,"",false,false,""]}],
     23 ["<div><b>foo</b>{}<b>bar</b></div>",
     24    [["inserthorizontalrule",""]],
     25    "<div><b>foo</b><hr>{}<b>bar</b></div>",
     26    [true],
     27    {"inserthorizontalrule":[false,false,"",false,false,""]}],
     28 ["<div><b>foo[</b><b>]bar</b></div>",
     29    [["inserthorizontalrule",""]],
     30    "<div><b>foo</b><hr>{}<b>bar</b></div>",
     31    [true],
     32    {"inserthorizontalrule":[false,false,"",false,false,""]}],
     33 ["<div><b>foo</b>{<b>bar</b>}<b>baz</b></div>",
     34    [["stylewithcss","true"],["inserthorizontalrule",""]],
     35    "<div><b>foo</b><hr>{}<b>baz</b></div>",
     36    [true,true],
     37    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     38 ["<div><b>foo</b>{<b>bar</b>}<b>baz</b></div>",
     39    [["stylewithcss","false"],["inserthorizontalrule",""]],
     40    "<div><b>foo</b><hr>{}<b>baz</b></div>",
     41    [true,true],
     42    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     43 ["<b>foo[]bar</b>",
     44    [["stylewithcss","true"],["inserthorizontalrule",""]],
     45    "<b>foo</b><hr>{}<b>bar</b>",
     46    [true,true],
     47    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     48 ["<b>foo[]bar</b>",
     49    [["stylewithcss","false"],["inserthorizontalrule",""]],
     50    "<b>foo</b><hr>{}<b>bar</b>",
     51    [true,true],
     52    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     53 ["<b id=abc>foo[]bar</b>",
     54    [["stylewithcss","true"],["inserthorizontalrule",""]],
     55    "<b id=\"abc\">foo</b><hr>{}<b>bar</b>",
     56    [true,true],
     57    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     58 ["<b id=abc>foo[]bar</b>",
     59    [["stylewithcss","false"],["inserthorizontalrule",""]],
     60    "<b id=\"abc\">foo</b><hr>{}<b>bar</b>",
     61    [true,true],
     62    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     63 ["foo[bar]baz",
     64    [["inserthorizontalrule","abc"]],
     65    "foo<hr>{}baz",
     66    [true],
     67    {"inserthorizontalrule":[false,false,"",false,false,""]}],
     68 ["foo[bar]baz",
     69    [["inserthorizontalrule",""]],
     70    "foo<hr>{}baz",
     71    [true],
     72    {"inserthorizontalrule":[false,false,"",false,false,""]}],
     73 ["foo<b>[bar]</b>baz",
     74    [["stylewithcss","true"],["inserthorizontalrule",""]],
     75    "foo<hr>{}baz",
     76    [true,true],
     77    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     78 ["foo<b>[bar]</b>baz",
     79    [["stylewithcss","false"],["inserthorizontalrule",""]],
     80    "foo<hr>{}baz",
     81    [true,true],
     82    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     83 ["foo<b>{bar}</b>baz",
     84    [["stylewithcss","true"],["inserthorizontalrule",""]],
     85    "foo<hr>{}baz",
     86    [true,true],
     87    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     88 ["foo<b>{bar}</b>baz",
     89    [["stylewithcss","false"],["inserthorizontalrule",""]],
     90    "foo<hr>{}baz",
     91    [true,true],
     92    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     93 ["foo{<b>bar</b>}baz",
     94    [["stylewithcss","true"],["inserthorizontalrule",""]],
     95    "foo<hr>{}baz",
     96    [true,true],
     97    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
     98 ["foo{<b>bar</b>}baz",
     99    [["stylewithcss","false"],["inserthorizontalrule",""]],
    100    "foo<hr>{}baz",
    101    [true,true],
    102    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    103 ["<p>foo<p>[bar]<p>baz",
    104    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    105    "<p>foo</p><hr>{}<p>baz</p>",
    106    [true,true],
    107    {"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    108 ["<p>foo<p>[bar]<p>baz",
    109    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    110    "<p>foo</p><hr>{}<p>baz</p>",
    111    [true,true],
    112    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    113 ["<p>foo<p>{bar}<p>baz",
    114    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    115    "<p>foo</p><hr>{}<p>baz</p>",
    116    [true,true],
    117    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    118 ["<p>foo<p>{bar}<p>baz",
    119    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    120    "<p>foo</p><hr>{}<p>baz</p>",
    121    [true,true],
    122    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    123 ["<p>foo{<p>bar</p>}<p>baz",
    124    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    125    "<p>foo</p><hr>{}<p>baz</p>",
    126    [true,true],
    127    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    128 ["<p>foo{<p>bar</p>}<p>baz",
    129    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    130    "<p>foo</p><hr>{}<p>baz</p>",
    131    [true,true],
    132    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    133 ["<p>foo[bar]baz</p>",
    134    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    135    "<p>foo</p><hr>{}<p>baz</p>",
    136    [true,true],
    137    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    138 ["<p>foo[bar]baz</p>",
    139    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    140    "<p>foo</p><hr>{}<p>baz</p>",
    141    [true,true],
    142    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    143 ["<p id=abc>foo[bar]baz</p>",
    144    [["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    145    "<p id=\"abc\">foo</p><hr>{}<p>baz</p>",
    146    [true,true],
    147    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    148 ["<p id=abc>foo[bar]baz</p>",
    149    [["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    150    "<p id=\"abc\">foo</p><hr>{}<p>baz</p>",
    151    [true,true],
    152    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    153 ["<p>foo<b>b[a]r</b>baz</p>",
    154    [["stylewithcss","true"],["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    155    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    156    [true,true,true],
    157    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"p",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    158 ["<p>foo<b>b[a]r</b>baz</p>",
    159    [["stylewithcss","false"],["defaultparagraphseparator","div"],["inserthorizontalrule",""]],
    160    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    161    [true,true,true],
    162    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"div",false,false,"div"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    163 ["<p>foo<b>b[a]r</b>baz</p>",
    164    [["stylewithcss","true"],["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    165    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    166    [true,true,true],
    167    {"stylewithcss":[false,false,"",false,true,""],"defaultparagraphseparator":[false,false,"div",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    168 ["<p>foo<b>b[a]r</b>baz</p>",
    169    [["stylewithcss","false"],["defaultparagraphseparator","p"],["inserthorizontalrule",""]],
    170    "<p>foo<b>b</b></p><hr>{}<p><b>r</b>baz</p>",
    171    [true,true,true],
    172    {"stylewithcss":[false,true,"",false,false,""],"defaultparagraphseparator":[false,false,"p",false,false,"p"],"inserthorizontalrule":[false,false,"",false,false,""]}],
    173 ["<a>foo[bar]baz</a>",
    174    [["inserthorizontalrule",""]],
    175    "<a>foo</a><hr>{}<a>baz</a>",
    176    [true],
    177    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    178 ["<a href=/>foo[bar]baz</a>",
    179    [["inserthorizontalrule",""]],
    180    "<a href=\"/\">foo</a><hr>{}<a href=\"/\">baz</a>",
    181    [true],
    182    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    183 ["<abbr>foo[bar]baz</abbr>",
    184    [["inserthorizontalrule",""]],
    185    "<abbr>foo</abbr><hr>{}<abbr>baz</abbr>",
    186    [true],
    187    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    188 ["<address>foo[bar]baz</address>",
    189    [["inserthorizontalrule",""]],
    190    "<address>foo<hr>{}baz</address>",
    191    [true],
    192    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    193 ["<article>foo[bar]baz</article>",
    194    [["inserthorizontalrule",""]],
    195    "<article>foo<hr>{}baz</article>",
    196    [true],
    197    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    198 ["<aside>foo[bar]baz</aside>",
    199    [["inserthorizontalrule",""]],
    200    "<aside>foo<hr>{}baz</aside>",
    201    [true],
    202    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    203 ["<b>foo[bar]baz</b>",
    204    [["stylewithcss","true"],["inserthorizontalrule",""]],
    205    "<b>foo</b><hr>{}<b>baz</b>",
    206    [true,true],
    207    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    208 ["<b>foo[bar]baz</b>",
    209    [["stylewithcss","false"],["inserthorizontalrule",""]],
    210    "<b>foo</b><hr>{}<b>baz</b>",
    211    [true,true],
    212    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    213 ["<bdi>foo[bar]baz</bdi>",
    214    [["inserthorizontalrule",""]],
    215    "<bdi>foo</bdi><hr>{}<bdi>baz</bdi>",
    216    [true],
    217    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    218 ["<bdo dir=rtl>foo[bar]baz</bdo>",
    219    [["inserthorizontalrule",""]],
    220    "<bdo dir=\"rtl\">foo</bdo><hr>{}<bdo dir=\"rtl\">baz</bdo>",
    221    [true],
    222    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    223 ["<blockquote>foo[bar]baz</blockquote>",
    224    [["inserthorizontalrule",""]],
    225    "<blockquote>foo<hr>{}baz</blockquote>",
    226    [true],
    227    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    228 ["<table><caption>foo[bar]baz</caption><tr><td>quz</table>",
    229    [["inserthorizontalrule",""]],
    230    "<table><caption>foo<hr>{}baz</caption><tbody><tr><td>quz</td></tr></tbody></table>",
    231    [true],
    232    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    233 ["<cite>foo[bar]baz</cite>",
    234    [["inserthorizontalrule",""]],
    235    "<cite>foo</cite><hr>{}<cite>baz</cite>",
    236    [true],
    237    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    238 ["<code>foo[bar]baz</code>",
    239    [["inserthorizontalrule",""]],
    240    "<code>foo</code><hr>{}<code>baz</code>",
    241    [true],
    242    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    243 ["<dl><dd>foo[bar]baz</dd></dl>",
    244    [["inserthorizontalrule",""]],
    245    "<dl><dd>foo<hr>{}baz</dd></dl>",
    246    [true],
    247    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    248 ["<del>foo[bar]baz</del>",
    249    [["inserthorizontalrule",""]],
    250    "<del>foo<hr>{}baz</del>",
    251    [true],
    252    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    253 ["<details>foo[bar]baz</details>",
    254    [["inserthorizontalrule",""]],
    255    "<details>foo<hr>{}baz</details>",
    256    [true],
    257    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    258 ["<dfn>foo[bar]baz</dfn>",
    259    [["inserthorizontalrule",""]],
    260    "<dfn>foo</dfn><hr>{}<dfn>baz</dfn>",
    261    [true],
    262    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    263 ["<div>foo[bar]baz</div>",
    264    [["inserthorizontalrule",""]],
    265    "<div>foo<hr>{}baz</div>",
    266    [true],
    267    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    268 ["<dl><dt>foo[bar]baz</dt></dl>",
    269    [["inserthorizontalrule",""]],
    270    "<dl><dt>foo<hr>{}baz</dt></dl>",
    271    [true],
    272    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    273 ["<em>foo[bar]baz</em>",
    274    [["inserthorizontalrule",""]],
    275    "<em>foo</em><hr>{}<em>baz</em>",
    276    [true],
    277    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    278 ["<figure><figcaption>foo[bar]baz</figcaption>quz</figure>",
    279    [["inserthorizontalrule",""]],
    280    "<figure><figcaption>foo<hr>{}baz</figcaption>quz</figure>",
    281    [true],
    282    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    283 ["<figure>foo[bar]baz</figure>",
    284    [["inserthorizontalrule",""]],
    285    "<figure>foo<hr>{}baz</figure>",
    286    [true],
    287    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    288 ["<footer>foo[bar]baz</footer>",
    289    [["inserthorizontalrule",""]],
    290    "<footer>foo<hr>{}baz</footer>",
    291    [true],
    292    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    293 ["<h1>foo[bar]baz</h1>",
    294    [["inserthorizontalrule",""]],
    295    "<h1>foo</h1><hr>{}<h1>baz</h1>",
    296    [true],
    297    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    298 ["<h2>foo[bar]baz</h2>",
    299    [["inserthorizontalrule",""]],
    300    "<h2>foo</h2><hr>{}<h2>baz</h2>",
    301    [true],
    302    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    303 ["<h3>foo[bar]baz</h3>",
    304    [["inserthorizontalrule",""]],
    305    "<h3>foo</h3><hr>{}<h3>baz</h3>",
    306    [true],
    307    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    308 ["<h4>foo[bar]baz</h4>",
    309    [["inserthorizontalrule",""]],
    310    "<h4>foo</h4><hr>{}<h4>baz</h4>",
    311    [true],
    312    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    313 ["<h5>foo[bar]baz</h5>",
    314    [["inserthorizontalrule",""]],
    315    "<h5>foo</h5><hr>{}<h5>baz</h5>",
    316    [true],
    317    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    318 ["<h6>foo[bar]baz</h6>",
    319    [["inserthorizontalrule",""]],
    320    "<h6>foo</h6><hr>{}<h6>baz</h6>",
    321    [true],
    322    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    323 ["<header>foo[bar]baz</header>",
    324    [["inserthorizontalrule",""]],
    325    "<header>foo<hr>{}baz</header>",
    326    [true],
    327    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    328 ["<hgroup>foo[bar]baz</hgroup>",
    329    [["inserthorizontalrule",""]],
    330    "<hgroup>foo</hgroup><hr>{}<hgroup>baz</hgroup>",
    331    [true],
    332    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    333 ["<hgroup><h1>foo[bar]baz</h1></hgroup>",
    334    [["inserthorizontalrule",""]],
    335    "<hgroup><h1>foo</h1></hgroup><hr>{}<hgroup><h1>baz</h1></hgroup>",
    336    [true],
    337    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    338 ["<i>foo[bar]baz</i>",
    339    [["stylewithcss","true"],["inserthorizontalrule",""]],
    340    "<i>foo</i><hr>{}<i>baz</i>",
    341    [true,true],
    342    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    343 ["<i>foo[bar]baz</i>",
    344    [["stylewithcss","false"],["inserthorizontalrule",""]],
    345    "<i>foo</i><hr>{}<i>baz</i>",
    346    [true,true],
    347    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    348 ["<ins>foo[bar]baz</ins>",
    349    [["inserthorizontalrule",""]],
    350    "<ins>foo<hr>{}baz</ins>",
    351    [true],
    352    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    353 ["<kbd>foo[bar]baz</kbd>",
    354    [["inserthorizontalrule",""]],
    355    "<kbd>foo</kbd><hr>{}<kbd>baz</kbd>",
    356    [true],
    357    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    358 ["<mark>foo[bar]baz</mark>",
    359    [["inserthorizontalrule",""]],
    360    "<mark>foo</mark><hr>{}<mark>baz</mark>",
    361    [true],
    362    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    363 ["<nav>foo[bar]baz</nav>",
    364    [["inserthorizontalrule",""]],
    365    "<nav>foo<hr>{}baz</nav>",
    366    [true],
    367    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    368 ["<ol><li>foo[bar]baz</li></ol>",
    369    [["inserthorizontalrule",""]],
    370    "<ol><li>foo<hr>{}baz</li></ol>",
    371    [true],
    372    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    373 ["<pre>foo[bar]baz</pre>",
    374    [["inserthorizontalrule",""]],
    375    "<pre>foo</pre><hr>{}<pre>baz</pre>",
    376    [true],
    377    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    378 ["<q>foo[bar]baz</q>",
    379    [["inserthorizontalrule",""]],
    380    "<q>foo</q><hr>{}<q>baz</q>",
    381    [true],
    382    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    383 ["<ruby>foo[bar]baz<rt>quz</rt></ruby>",
    384    [["inserthorizontalrule",""]],
    385    "<ruby>foo</ruby><hr>{}<ruby>baz<rt>quz</rt></ruby>",
    386    [true],
    387    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    388 ["<ruby>foo<rt>bar[baz]quz</rt></ruby>",
    389    [["inserthorizontalrule",""]],
    390    "<ruby>foo<rt>bar</rt></ruby><hr>{}<ruby><rt>quz</rt></ruby>",
    391    [true],
    392    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    393 ["<ruby>foo<rp>bar[baz]quz</rp><rt>qoz</rt><rp>qiz</rp></ruby>",
    394    [["inserthorizontalrule",""]],
    395    "<ruby>foo<rp>bar</rp></ruby><hr>{}<ruby><rp>quz</rp><rt>qoz</rt><rp>qiz</rp></ruby>",
    396    [true],
    397    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    398 ["<s>foo[bar]baz</s>",
    399    [["stylewithcss","true"],["inserthorizontalrule",""]],
    400    "<s>foo</s><hr>{}<s>baz</s>",
    401    [true,true],
    402    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    403 ["<s>foo[bar]baz</s>",
    404    [["stylewithcss","false"],["inserthorizontalrule",""]],
    405    "<s>foo</s><hr>{}<s>baz</s>",
    406    [true,true],
    407    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    408 ["<samp>foo[bar]baz</samp>",
    409    [["inserthorizontalrule",""]],
    410    "<samp>foo</samp><hr>{}<samp>baz</samp>",
    411    [true],
    412    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    413 ["<section>foo[bar]baz</section>",
    414    [["inserthorizontalrule",""]],
    415    "<section>foo<hr>{}baz</section>",
    416    [true],
    417    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    418 ["<small>foo[bar]baz</small>",
    419    [["inserthorizontalrule",""]],
    420    "<small>foo</small><hr>{}<small>baz</small>",
    421    [true],
    422    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    423 ["<span>foo[bar]baz</span>",
    424    [["inserthorizontalrule",""]],
    425    "<span>foo</span><hr>{}<span>baz</span>",
    426    [true],
    427    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    428 ["<strong>foo[bar]baz</strong>",
    429    [["inserthorizontalrule",""]],
    430    "<strong>foo</strong><hr>{}<strong>baz</strong>",
    431    [true],
    432    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    433 ["<sub>foo[bar]baz</sub>",
    434    [["stylewithcss","true"],["inserthorizontalrule",""]],
    435    "<sub>foo</sub><hr>{}<sub>baz</sub>",
    436    [true,true],
    437    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    438 ["<sub>foo[bar]baz</sub>",
    439    [["stylewithcss","false"],["inserthorizontalrule",""]],
    440    "<sub>foo</sub><hr>{}<sub>baz</sub>",
    441    [true,true],
    442    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    443 ["<sup>foo[bar]baz</sup>",
    444    [["stylewithcss","true"],["inserthorizontalrule",""]],
    445    "<sup>foo</sup><hr>{}<sup>baz</sup>",
    446    [true,true],
    447    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    448 ["<sup>foo[bar]baz</sup>",
    449    [["stylewithcss","false"],["inserthorizontalrule",""]],
    450    "<sup>foo</sup><hr>{}<sup>baz</sup>",
    451    [true,true],
    452    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    453 ["<table><tr><td>foo[bar]baz</td></table>",
    454    [["inserthorizontalrule",""]],
    455    "<table><tbody><tr><td>foo<hr>{}baz</td></tr></tbody></table>",
    456    [true],
    457    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    458 ["<table><tr><th>foo[bar]baz</th></table>",
    459    [["inserthorizontalrule",""]],
    460    "<table><tbody><tr><th>foo<hr>{}baz</th></tr></tbody></table>",
    461    [true],
    462    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    463 ["<u>foo[bar]baz</u>",
    464    [["stylewithcss","true"],["inserthorizontalrule",""]],
    465    "<u>foo</u><hr>{}<u>baz</u>",
    466    [true,true],
    467    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    468 ["<u>foo[bar]baz</u>",
    469    [["stylewithcss","false"],["inserthorizontalrule",""]],
    470    "<u>foo</u><hr>{}<u>baz</u>",
    471    [true,true],
    472    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    473 ["<ul><li>foo[bar]baz</li></ul>",
    474    [["inserthorizontalrule",""]],
    475    "<ul><li>foo<hr>{}baz</li></ul>",
    476    [true],
    477    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    478 ["<var>foo[bar]baz</var>",
    479    [["inserthorizontalrule",""]],
    480    "<var>foo</var><hr>{}<var>baz</var>",
    481    [true],
    482    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    483 ["<acronym>foo[bar]baz</acronym>",
    484    [["inserthorizontalrule",""]],
    485    "<acronym>foo</acronym><hr>{}<acronym>baz</acronym>",
    486    [true],
    487    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    488 ["<big>foo[bar]baz</big>",
    489    [["inserthorizontalrule",""]],
    490    "<big>foo</big><hr>{}<big>baz</big>",
    491    [true],
    492    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    493 ["<blink>foo[bar]baz</blink>",
    494    [["inserthorizontalrule",""]],
    495    "<blink>foo</blink><hr>{}<blink>baz</blink>",
    496    [true],
    497    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    498 ["<center>foo[bar]baz</center>",
    499    [["inserthorizontalrule",""]],
    500    "<center>foo<hr>{}baz</center>",
    501    [true],
    502    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    503 ["<dir>foo[bar]baz</dir>",
    504    [["inserthorizontalrule",""]],
    505    "<dir>foo</dir><hr>{}<dir>baz</dir>",
    506    [true],
    507    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    508 ["<dir><li>foo[bar]baz</li></dir>",
    509    [["inserthorizontalrule",""]],
    510    "<dir><li>foo<hr>{}baz</li></dir>",
    511    [true],
    512    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    513 ["<font>foo[bar]baz</font>",
    514    [["stylewithcss","true"],["inserthorizontalrule",""]],
    515    "<font>foo</font><hr>{}<font>baz</font>",
    516    [true,true],
    517    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    518 ["<font>foo[bar]baz</font>",
    519    [["stylewithcss","false"],["inserthorizontalrule",""]],
    520    "<font>foo</font><hr>{}<font>baz</font>",
    521    [true,true],
    522    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    523 ["<listing>foo[bar]baz</listing>",
    524    [["inserthorizontalrule",""]],
    525    "<listing>foo</listing><hr>{}<listing>baz</listing>",
    526    [true],
    527    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    528 ["<marquee>foo[bar]baz</marquee>",
    529    [["inserthorizontalrule",""]],
    530    "<marquee>foo</marquee><hr>{}<marquee>baz</marquee>",
    531    [true],
    532    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    533 ["<nobr>foo[bar]baz</nobr>",
    534    [["inserthorizontalrule",""]],
    535    "<nobr>foo</nobr><hr>{}<nobr>baz</nobr>",
    536    [true],
    537    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    538 ["<strike>foo[bar]baz</strike>",
    539    [["stylewithcss","true"],["inserthorizontalrule",""]],
    540    "<strike>foo</strike><hr>{}<strike>baz</strike>",
    541    [true,true],
    542    {"stylewithcss":[false,false,"",false,true,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    543 ["<strike>foo[bar]baz</strike>",
    544    [["stylewithcss","false"],["inserthorizontalrule",""]],
    545    "<strike>foo</strike><hr>{}<strike>baz</strike>",
    546    [true,true],
    547    {"stylewithcss":[false,true,"",false,false,""],"inserthorizontalrule":[false,false,"",false,false,""]}],
    548 ["<tt>foo[bar]baz</tt>",
    549    [["inserthorizontalrule",""]],
    550    "<tt>foo</tt><hr>{}<tt>baz</tt>",
    551    [true],
    552    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    553 ["<xmp>foo[bar]baz</xmp>",
    554    [["inserthorizontalrule",""]],
    555    "<xmp>foo</xmp><hr>{}<xmp>baz</xmp>",
    556    [true],
    557    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    558 ["<quasit>foo[bar]baz</quasit>",
    559    [["inserthorizontalrule",""]],
    560    "<quasit>foo<hr>{}baz</quasit>",
    561    [true],
    562    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    563 ["<table><tr><td>fo[o<td>b]ar</table>",
    564    [["inserthorizontalrule",""]],
    565    "<table><tbody><tr><td>fo<hr>{}</td><td>ar</td></tr></tbody></table>",
    566    [true],
    567    {"inserthorizontalrule":[false,false,"",false,false,""]}],
    568 ["fo[o<span contenteditable=false>bar</span>b]az",
    569    [["inserthorizontalrule",""]],
    570    "fo<hr>{}<span contenteditable=\"false\">bar</span>az",
    571    [true],
    572    {"inserthorizontalrule":[false,false,"",false,false,""]}]
    573 ]