// For documentation of the format, see README in this directory.
var browserTests = [
[
"foo[]bar" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}bar" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[]bar" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}bar" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar] baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar] baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo{bar} baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo{bar} baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo{bar }baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo{bar }baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"[foobar] baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"abc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"[foobar] baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"abc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"{foobar} baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"abc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"{foobar} baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"abc d{}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar baz]" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar baz]" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo{bar baz}" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo{bar baz}" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar baz] quz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}quz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar baz] quz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc d" ]],
"fooabc d{}quz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"inserthtml" ,
"" ]],
"foo[]baz" ,
[
true ],
{
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"inserthtml" ,
"\u0000" ]],
"foo[]baz" ,
[
true ],
{
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"inserthtml" ,
"\u0007" ]],
"foo\u0007{}baz" ,
[
true ],
{
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"" ]],
"foo {}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"" ]],
"foo {}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"stylewithcss" ,
"true" ],[
"inserthtml" ,
"abc" ]],
"fooabc {}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz" ,
[[
"stylewithcss" ,
"false" ],[
"inserthtml" ,
"abc" ]],
"fooabc {}baz" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"inserthtml" :[
false ,
false ,
"" ,
false ,
false ,
"" ]}],
[
"foo[bar]baz"
,
[[
"defaultparagraphseparator" ,
"div" ],[
"inserthtml" ,
"abc"
]],
"foo
abc
{}baz
" ,
[
true ,
true ],
{
"defaultparagraphseparator" :[
false ,
false ,
"div" ,
false ,
false ,
"div" ],
"inserthtml" :
[false ,false ,"" ,false ,false ,"" ]}],
["foo[bar]baz"
,
[["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"foo
abc
{}baz
" ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[bar]baz"
,
[["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc" ]],
"foo
abc
{}baz
" ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[bar]baz"
,
[["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc" ]],
"foo
abc
{}baz
" ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{foo }bar " ,
[["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"abc
{}bar " ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{foo }bar " ,
[["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"abc
{}bar " ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo {bar }baz " ,
[["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"foo abc
{}baz " ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo {bar }baz " ,
[["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"foo abc
{}baz " ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["[foo] bar " ,
[["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"abc
{}bar " ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["[foo] bar " ,
[["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"abc
{}bar " ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc" ]],
"fabc{}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["stylewithcss" ,"true" ],["inserthtml" ,"abc " ]],
"fabc {}o " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["stylewithcss" ,"false" ],["inserthtml" ,"abc " ]],
"fabc {}o " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["bar" ,
[["inserthtml" ,"abc" ]],
"bar" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["bar" ,
[["stylewithcss" ,"true" ],["inserthtml" ,"abc " ]],
"bar" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["bar" ,
[["stylewithcss" ,"false" ],["inserthtml" ,"abc " ]],
"bar" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"f abc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
".\">f /\">abc {}.\">o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o"
,
[["defaultparagraphseparator" ,"div" ],["inserthtml" ," " ]],
"f
{}o
" ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o"
,
[["defaultparagraphseparator" ,"p" ],["inserthtml" ," " ]],
"f
{}o
" ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["stylewithcss" ,"true" ],["inserthtml" ," " ]],
"f {}o " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["stylewithcss" ,"false" ],["inserthtml" ," " ]],
"f {}o " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"f abc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["" ,
[["inserthtml" ," abc "]],
"" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o" ,
[["inserthtml" ," abc "]],
"fabc{}o" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o bar " ,
[["inserthtml" ,"abc " ]],
"f abc {}o bar " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo b[a]r " ,
[["inserthtml" ,"abc " ]],
"foo b abc {}r " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o bar " ,
[["inserthtml" ,"abc " ]],
"f abc {}o bar " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo b[a]r " ,
[["inserthtml" ,"abc " ]],
"foo b abc {}r " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o" ,
[["inserthtml" ,"abc " ]],
"fabc {} o" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"fabc {} o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o" ,
[["inserthtml" ,"abc " ]],
"fabc {} o" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"fabc {} o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"f abc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"f abc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["" ,
[["inserthtml" ,"abc " ]],
"" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"fabc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"fabc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["" ,
[["inserthtml" ,"abc " ]],
"" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"fabc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"fabc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["" ,
[["inserthtml" ,"abc " ]],
"" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"" ]],
"f{}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"" ]],
"f{}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["" ,
[["inserthtml" ,"" ]],
"" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["" ,
[["inserthtml" ,"" ]],
"" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["old\">li0\">{} " ,
[["inserthtml" ,"new \">li1\">abc li2\">def " ]],
"old\">li1\">abc li2\">def " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["" ,
[["inserthtml" ,"new \">li1\">abc li2\">def " ]],
"" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["old\">li0\">{} " ,
[["inserthtml" ,"" ]],
"old\">li1\">abc li2\">def " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o" ,
[["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc " ]],
"fabc
{}o" ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o" ,
[["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc " ]],
"fabc
{}o" ,
[true ,true ],
{"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o " ,
[["inserthtml" ,"abc " ]],
"f abc {}o " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["f[o]o" ,
[["inserthtml" ,"abc " ]],
"fabc {}o" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"true" ],["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"blue\">foo color:rgb(0, 0, 255)\">abc
{}blue\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"false" ],["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"blue\">foo #0000ff\">abc
{}blue\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"true" ],["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"blue\">foo color:rgb(0, 0, 255)\">abc
{}blue\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"false" ],["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"blue\">foo #0000ff\">abc
{}blue\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"true" ],["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">abc
{}color:rgb(0, 0, 255)\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"false" ],["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"color:rgb(0, 0, 255)\">foo #0000ff\">abc
{}color:rgb(0, 0, 255)\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"true" ],["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">abc
{}color:rgb(0, 0, 255)\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"false" ],["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"color:rgb(0, 0, 255)\">foo #0000ff\">abc
{}color:rgb(0, 0, 255)\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"true" ],["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"font-variant:small-caps\">foo abc
{}font-variant:small-caps\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"false" ],["defaultparagraphseparator" ,"div" ],["inserthtml" ,"abc"
]],
"font-variant:small-caps\">foo abc
{}font-variant:small-caps\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"div" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"true" ],["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"font-variant:small-caps\">foo abc
{}font-variant:small-caps\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"defaultparagraphseparator" :[false ,false ,"div" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["foo[]bar " ,
[["stylewithcss" ,"false" ],["defaultparagraphseparator" ,"p" ],["inserthtml" ,"abc"
]],
"font-variant:small-caps\">foo abc
{}font-variant:small-caps\">bar " ,
[true ,true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"defaultparagraphseparator" :[false ,false ,"p" ,false ,false ,"p" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["[foo]
" ,
[["inserthtml" ," " ]],
" {}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["[foo]
" ,
[["stylewithcss" ,"true" ],["inserthtml" ," " ]],
"display:none\"> {}
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["[foo]
" ,
[["stylewithcss" ,"false" ],["inserthtml" ," " ]],
"display:none\"> {}
" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["[foo]
" ,
[["inserthtml" ,"" ]],
"{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{}
" ,
[["inserthtml" ,"abc" ]],
"abc{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{}
" ,
[["inserthtml" ,"" ]],
"{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{}
" ,
[["inserthtml" ,"abc" ]],
"abc{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{}
" ,
[["inserthtml" ,"" ]],
"{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{}
" ,
[["inserthtml" ,"abc" ]],
"abc{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{}
" ,
[["inserthtml" ,"" ]],
"{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
// When selection is collapsed after an invisible <br> element, content should
// be inserted before it because inserting something after the <br> element
// makes the element visible.
[" {}
" ,
[["inserthtml" ,"abc" ]],
"abc
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
[" {}
" ,
[["inserthtml" ,"" ]],
"
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
[" {}
" ,
[["inserthtml" ,"abc" ]],
["abc
" ,
"abc
" ],
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
[" {}
" ,
[["inserthtml" ,"" ]],
"{}
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
// TODO: Fix the insertion not occurring at caret position.
// Updating the expected value of below two tests as to how other
// browsers behave these tests will still fail and since the insertion
// position is incorrect br tag gets removed, after fixing this it shouldn't.
[" {}
" ,
[["inserthtml" ,"abc" ]],
" abc
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
[" {}
" ,
[["inserthtml" ,"" ]],
"
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["12[]34 " ,
[["inserthtml" ,"abc " ]],
"12abc34 " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["1[23]4 " ,
[["inserthtml" ,"abc " ]],
"1abc4 " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["[1234] " ,
[["inserthtml" ,"abc " ]],
"abc " ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["false \">[1234] " ,
[["inserthtml" ,"abc " ]],
["false \">\">abc " ,
"false \">\">abc " ],
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
// Empty inline elements shouldn't be deleted if they are inserted intentionally
["a[]b
" ,
[["inserthtml" ," " ]],
["a b
" ,"a b
" ],
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["a[]c
" ,
[["inserthtml" ,"s1\"> bs2\"> " ]],
["as1\"> bs2\"> c
" ,
"as1\"> bs2\"> c
" ],
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
["{}" ,
[["inserthtml" ,"d1\">
" ]],
"d1\">
" ,
[true ],
{"inserthtml" :[false ,false ,"" ,false ,false ,"" ]}],
// Do not delete non-editable when clearing the original style
["[X]abc def
" ,
[["inserthtml" ,"Z " ]],
"Z false \">abc def
" ,
[true ],
{}],
["abc [Y]def
" ,
[["inserthtml" ,"Z " ]],
["false \">abc Z def
" ,
"false \">abc Zdef
" ],
[true ],
{}],
]
Messung V0.5 C=93 H=97 G=94
¤ Dauer der Verarbeitung: 0.8 Sekunden
¤
*© Formatika GbR, Deutschland