[inserthtml.html]
  type: testharness
  [[["stylewithcss","true"\],["inserthtml","ab<b>c</b>d"\]\] "[foo<span style=color:#aBcDeF>bar\]</span>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["inserthtml","ab<b>c</b>d"\]\] "[foo<span style=color:#aBcDeF>bar\]</span>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["inserthtml","ab<b>c</b>d"\]\] "{foo<span style=color:#aBcDeF>bar}</span>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["inserthtml","ab<b>c</b>d"\]\] "{foo<span style=color:#aBcDeF>bar}</span>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["inserthtml","ab<b>c</b>d"\]\] "foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz\]</span>quz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["inserthtml","ab<b>c</b>d"\]\] "foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz\]</span>quz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["inserthtml","<b>"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["inserthtml","<b>"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","div"\],["inserthtml","<li>abc"\]\] "<p>foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","p"\],["inserthtml","<li>abc"\]\] "<p>foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["inserthtml","abc"\]\] "<xmp>f[o\]o</xmp>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["inserthtml","<b>abc</b>"\]\] "<xmp>f[o\]o</xmp>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["inserthtml","<b>abc</b>"\]\] "<xmp>f[o\]o</xmp>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["inserthtml","<b>abc</b>"\]\] "<script>f[o\]o</script>bar" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["inserthtml","<b>abc</b>"\]\] "<script>f[o\]o</script>bar" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<dt>abc</dt>"\]\] "<dl><dt>f[o\]o<dd>bar</dl>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<dt>abc</dt>"\]\] "f[o\]o" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<dt>abc</dt>"\]\] "<ol><li>f[o\]o</ol>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<dd>abc</dd>"\]\] "f[o\]o" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<dd>abc</dd>"\]\] "<ol><li>f[o\]o</ol>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<ol><li>abc</ol>"\]\] "<dir><li>f[o\]o</dir>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<ol><li>abc</ol>"\]\] "<ol><li>f[o\]o</ol>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<ol><li>abc</ol>"\]\] "<ul><li>f[o\]o</ul>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<ul><li>abc</ul>"\]\] "<dir><li>f[o\]o</dir>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<ul><li>abc</ul>"\]\] "<ol><li>f[o\]o</ol>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<ul><li>abc</ul>"\]\] "<ul><li>f[o\]o</ul>" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","div"\],["inserthtml","<li>abc</li>"\]\] "f[o\]o" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","p"\],["inserthtml","<li>abc</li>"\]\] "f[o\]o" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<nobr>abc</nobr>"\]\] "<nobr>f[o\]o</nobr>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["inserthtml","<p>abc"\]\] "<font color=blue>foo[\]bar</font>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["inserthtml","<p>abc"\]\] "<font color=blue>foo[\]bar</font>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["inserthtml","<p>abc"\]\] "<font color=blue>foo[\]bar</font>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["inserthtml","<p>abc"\]\] "<font color=blue>foo[\]bar</font>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["inserthtml","<p>abc"\]\] "<span style=color:blue>foo[\]bar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["inserthtml","<p>abc"\]\] "<span style=color:blue>foo[\]bar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["inserthtml","<p>abc"\]\] "<span style=color:blue>foo[\]bar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["inserthtml","<p>abc"\]\] "<span style=color:blue>foo[\]bar</span>" compare innerHTML]
    expected: FAIL

  [[["inserthtml"," "\]\] "<p>[foo\]</p>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["inserthtml","<span style=display:none></span>"\]\] "<p>[foo\]</p>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["inserthtml","<span style=display:none></span>"\]\] "<p>[foo\]</p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<!--abc-->"\]\] "<p>[foo\]</p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<!--abc-->"\]\] "<p>{}<br></p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","abc"\]\] "<p><!--foo-->{}<span><br></span><!--bar--></p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<!--abc-->"\]\] "<p><!--foo-->{}<span><br></span><!--bar--></p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","abc"\]\] "<p>{}<span><!--foo--><br><!--bar--></span></p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<!--abc-->"\]\] "<p>{}<span><!--foo--><br><!--bar--></span></p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<!--abc-->"\]\] "<p><br>{}</p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<!--abc-->"\]\] "<p><!--foo--><span><br></span>{}<!--bar--></p>" compare innerHTML]
    expected: FAIL

  [[["inserthtml","<!--abc-->"\]\] "<p><span><!--foo--><br><!--bar--></span>{}</p>" compare innerHTML]
    expected: FAIL

