Bug 317093 part 2 - execCommand() should remove <strong>, <em>, and <s> as well as <b>, <i>, <strike>; r=ehsan

This commit is contained in:
Aryeh Gregor 2012-04-04 14:47:13 +03:00
Родитель ef2365e614
Коммит 342965bb6e
3 изменённых файлов: 370 добавлений и 363 удалений

Просмотреть файл

@ -261,10 +261,21 @@ nsStyleUpdatingCommand::ToggleState(nsIEditor *aEditor, const char* aTagName)
NS_ENSURE_SUCCESS(rv, rv);
}
if (doTagRemoval)
if (doTagRemoval) {
// Also remove equivalent properties (bug 317093)
if (tagName.EqualsLiteral("b")) {
rv = RemoveTextProperty(aEditor, NS_LITERAL_STRING("strong").get(), nsnull);
NS_ENSURE_SUCCESS(rv, rv);
} else if (tagName.EqualsLiteral("i")) {
rv = RemoveTextProperty(aEditor, NS_LITERAL_STRING("em").get(), nsnull);
NS_ENSURE_SUCCESS(rv, rv);
} else if (tagName.EqualsLiteral("strike")) {
rv = RemoveTextProperty(aEditor, NS_LITERAL_STRING("s").get(), nsnull);
NS_ENSURE_SUCCESS(rv, rv);
}
rv = RemoveTextProperty(aEditor, tagName.get(), nsnull);
else
{
} else {
// Superscript and Subscript styles are mutually exclusive
nsAutoString removeName;
aEditor->BeginTransaction();

Просмотреть файл

@ -27,11 +27,8 @@ var knownFailures = {
'superscript-1' : true,
},
'u': {
'bold-1' : true,
'italic-1' : true,
'removeformat-1' : true,
'removeformat-2' : true,
'strikethrough-1' : true,
'strikethrough-2' : true,
'subscript-1' : true,
'superscript-1' : true,

Просмотреть файл

@ -4542,11 +4542,11 @@ const TEST_RESULTS = {
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"blue\" contenteditable=\"true\">`foo[bar]baz´</body>",
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"blue\">`foo[bar]baz´</body>",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"blue\" contenteditable=\"true\">`foo[bar]baz´</body>",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"blue\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"blue\" contenteditable=\"true\">`foo[bar]baz´</body>"
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"blue\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
@ -5915,11 +5915,11 @@ const TEST_RESULTS = {
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#884422\" contenteditable=\"true\"><font style=\"background-color: #ffccaa\">`[foobarbaz]´</font></body>",
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#884422\"><font style=\"background-color: #ffccaa\">`[foobarbaz]´</font></body>",
"innerHTML": "<font style=\"background-color: #ffccaa\">`[foobarbaz]´</font>",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#884422\" contenteditable=\"true\"><font style=\"background-color: #ffccaa\">`[foobarbaz]´</font></body>",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#884422\"><font style=\"background-color: #ffccaa\">`[foobarbaz]´</font></body>",
"bodyInnerHTML": "<font style=\"background-color: #ffccaa\">`[foobarbaz]´</font>",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#884422\" contenteditable=\"true\"><font style=\"background-color: #ffccaa\">`[foobarbaz]´</font></body>"
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#884422\"><font style=\"background-color: #ffccaa\">`[foobarbaz]´</font></body>"
},
"div": {
"valscore": 0,
@ -5950,11 +5950,11 @@ const TEST_RESULTS = {
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#0000ff\" contenteditable=\"true\"><span style=\"background-color: #ff0000\">`[foobarbaz]´</span></body>",
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#0000ff\"><span style=\"background-color: #ff0000\">`[foobarbaz]´</span></body>",
"innerHTML": "<span style=\"background-color: #ff0000\">`[foobarbaz]´</span>",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#0000ff\" contenteditable=\"true\"><span style=\"background-color: #ff0000\">`[foobarbaz]´</span></body>",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#0000ff\"><span style=\"background-color: #ff0000\">`[foobarbaz]´</span></body>",
"bodyInnerHTML": "<span style=\"background-color: #ff0000\">`[foobarbaz]´</span>",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#0000ff\" contenteditable=\"true\"><span style=\"background-color: #ff0000\">`[foobarbaz]´</span></body>"
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#0000ff\"><span style=\"background-color: #ff0000\">`[foobarbaz]´</span></body>"
},
"div": {
"valscore": 0,
@ -5985,11 +5985,11 @@ const TEST_RESULTS = {
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#aaccee\" contenteditable=\"true\"><span style=\"background-color: rgb(255, 0, 0)\" class=\"Apple-style-span\">`[foobarbaz]´</span></body>",
"output": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#aaccee\"><span style=\"background-color: rgb(255, 0, 0)\" class=\"Apple-style-span\">`[foobarbaz]´</span></body>",
"innerHTML": "<span class=\"Apple-style-span\" style=\"background-color: rgb(255, 0, 0)\">`[foobarbaz]´</span>",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#aaccee\" contenteditable=\"true\"><span style=\"background-color: rgb(255, 0, 0)\" class=\"Apple-style-span\">`[foobarbaz]´</span></body>",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#aaccee\"><span style=\"background-color: rgb(255, 0, 0)\" class=\"Apple-style-span\">`[foobarbaz]´</span></body>",
"bodyInnerHTML": "<span class=\"Apple-style-span\" style=\"background-color: rgb(255, 0, 0)\">`[foobarbaz]´</span>",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" bgcolor=\"#aaccee\" contenteditable=\"true\"><span style=\"background-color: rgb(255, 0, 0)\" class=\"Apple-style-span\">`[foobarbaz]´</span></body>"
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" bgcolor=\"#aaccee\"><span style=\"background-color: rgb(255, 0, 0)\" class=\"Apple-style-span\">`[foobarbaz]´</span></body>"
},
"div": {
"valscore": 0,
@ -8994,22 +8994,22 @@ const TEST_RESULTS = {
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
"output": "`foo´`[bar]´`baz´",
"innerHTML": "`foo´`[bar]´`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´`[bar]´`baz´</body>",
"bodyInnerHTML": "`foo´`[bar]´`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´`[bar]´`baz´</body>"
},
"body": {
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
"output": "`foo´`[bar]´`baz´",
"innerHTML": "`foo´`[bar]´`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´`[bar]´`baz´</body>",
"bodyInnerHTML": "`foo´`[bar]´`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´`[bar]´`baz´</body>"
},
"div": {
"valscore": 1,
@ -9379,22 +9379,22 @@ const TEST_RESULTS = {
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strike><s>`[bar]´</s></strike>`baz´",
"innerHTML": "`foo´<strike><s>`[bar]´</s></strike>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<strike><s>`[bar]´</s></strike>`baz´</body>",
"bodyInnerHTML": "`foo´<strike><s>`[bar]´</s></strike>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<strike><s>`[bar]´</s></strike>`baz´</body>"
"output": "`foo´<s><strike>`[bar]´</strike></s>`baz´",
"innerHTML": "`foo´<s><strike>`[bar]´</strike></s>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<s><strike>`[bar]´</strike></s>`baz´</body>",
"bodyInnerHTML": "`foo´<s><strike>`[bar]´</strike></s>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<s><strike>`[bar]´</strike></s>`baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strike><s>`[bar]´</s></strike>`baz´",
"innerHTML": "`foo´<strike><s>`[bar]´</s></strike>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<strike><s>`[bar]´</s></strike>`baz´</body>",
"bodyInnerHTML": "`foo´<strike><s>`[bar]´</s></strike>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<strike><s>`[bar]´</s></strike>`baz´</body>"
"output": "`foo´<s><strike>`[bar]´</strike></s>`baz´",
"innerHTML": "`foo´<s><strike>`[bar]´</strike></s>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<s><strike>`[bar]´</strike></s>`baz´</body>",
"bodyInnerHTML": "`foo´<s><strike>`[bar]´</strike></s>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<s><strike>`[bar]´</strike></s>`baz´</body>"
},
"div": {
"valscore": 0,
@ -10744,142 +10744,142 @@ const TEST_RESULTS = {
},
"B_STRONG-1_SW": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"innerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´</body>",
"bodyInnerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"innerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´</body>",
"bodyInnerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"innerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´<strong style=\"font-weight: normal;\">`[bar]´</strong>`baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo´`[bar]´`baz´",
"innerHTML": "`foo´`[bar]´`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´`[bar]´`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´`[bar]´`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´`[bar]´`baz´</div>CAN<br>ARY</body>"
}
},
"B_STRONG-1_SO": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"innerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´</body>",
"bodyInnerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"innerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´</body>",
"bodyInnerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"innerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´<strong style=\"font-weight: normal;\">`bar´</strong>`]baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[´`bar´`]baz´",
"innerHTML": "`foo[´`bar´`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´`bar´`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´`bar´`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´`bar´`]baz´</div>CAN<br>ARY</body>"
}
},
"B_STRONG-1_SL": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"innerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´</body>",
"bodyInnerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"innerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´</body>",
"bodyInnerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"innerHTML": "`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´<strong style=\"font-weight: normal;\">`bar]´</strong>`baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[´`bar]´`baz´",
"innerHTML": "`foo[´`bar]´`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´`bar]´`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´`bar]´`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´`bar]´`baz´</div>CAN<br>ARY</body>"
}
},
"B_STRONG-1_SR": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"innerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´</body>",
"bodyInnerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"innerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´</body>",
"bodyInnerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"innerHTML": "`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´<strong style=\"font-weight: normal;\">`[bar´</strong>`]baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo´`[bar´`]baz´",
"innerHTML": "`foo´`[bar´`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´`[bar´`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´`[bar´`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´`[bar´`]baz´</div>CAN<br>ARY</body>"
}
},
"B_SPANs:fw:b-1_SW": {
@ -11164,142 +11164,142 @@ const TEST_RESULTS = {
},
"I_EM-1_SW": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<em>`[bar]´</em>`baz´",
"innerHTML": "`foo´<em>`[bar]´</em>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<em>`[bar]´</em>`baz´</body>",
"bodyInnerHTML": "`foo´<em>`[bar]´</em>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<em>`[bar]´</em>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<em>`[bar]´</em>`baz´",
"innerHTML": "`foo´<em>`[bar]´</em>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<em>`[bar]´</em>`baz´</body>",
"bodyInnerHTML": "`foo´<em>`[bar]´</em>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<em>`[bar]´</em>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<em>`[bar]´</em>`baz´",
"innerHTML": "`foo´<em>`[bar]´</em>`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´<em>`[bar]´</em>`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´<em>`[bar]´</em>`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´<em>`[bar]´</em>`baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo´`[bar]´`baz´",
"innerHTML": "`foo´`[bar]´`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´`[bar]´`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´`[bar]´`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´`[bar]´`baz´</div>CAN<br>ARY</body>"
}
},
"I_EM-1_SO": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<em>`bar´</em>`]baz´",
"innerHTML": "`foo[´<em>`bar´</em>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<em>`bar´</em>`]baz´</body>",
"bodyInnerHTML": "`foo[´<em>`bar´</em>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<em>`bar´</em>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<em>`bar´</em>`]baz´",
"innerHTML": "`foo[´<em>`bar´</em>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<em>`bar´</em>`]baz´</body>",
"bodyInnerHTML": "`foo[´<em>`bar´</em>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<em>`bar´</em>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<em>`bar´</em>`]baz´",
"innerHTML": "`foo[´<em>`bar´</em>`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´<em>`bar´</em>`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´<em>`bar´</em>`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´<em>`bar´</em>`]baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[´`bar´`]baz´",
"innerHTML": "`foo[´`bar´`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´`bar´`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´`bar´`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´`bar´`]baz´</div>CAN<br>ARY</body>"
}
},
"I_EM-1_SL": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<em>`bar]´</em>`baz´",
"innerHTML": "`foo[´<em>`bar]´</em>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<em>`bar]´</em>`baz´</body>",
"bodyInnerHTML": "`foo[´<em>`bar]´</em>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<em>`bar]´</em>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<em>`bar]´</em>`baz´",
"innerHTML": "`foo[´<em>`bar]´</em>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<em>`bar]´</em>`baz´</body>",
"bodyInnerHTML": "`foo[´<em>`bar]´</em>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<em>`bar]´</em>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<em>`bar]´</em>`baz´",
"innerHTML": "`foo[´<em>`bar]´</em>`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´<em>`bar]´</em>`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´<em>`bar]´</em>`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´<em>`bar]´</em>`baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[´`bar]´`baz´",
"innerHTML": "`foo[´`bar]´`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´`bar]´`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´`bar]´`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´`bar]´`baz´</div>CAN<br>ARY</body>"
}
},
"I_EM-1_SR": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<em>`[bar´</em>`]baz´",
"innerHTML": "`foo´<em>`[bar´</em>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<em>`[bar´</em>`]baz´</body>",
"bodyInnerHTML": "`foo´<em>`[bar´</em>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<em>`[bar´</em>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<em>`[bar´</em>`]baz´",
"innerHTML": "`foo´<em>`[bar´</em>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<em>`[bar´</em>`]baz´</body>",
"bodyInnerHTML": "`foo´<em>`[bar´</em>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<em>`[bar´</em>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<em>`[bar´</em>`]baz´",
"innerHTML": "`foo´<em>`[bar´</em>`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´<em>`[bar´</em>`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´<em>`[bar´</em>`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´<em>`[bar´</em>`]baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo´`[bar´`]baz´",
"innerHTML": "`foo´`[bar´`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´`[bar´`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´`[bar´`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´`[bar´`]baz´</div>CAN<br>ARY</body>"
}
},
"I_SPANs:fs:i-1_SW": {
@ -11724,142 +11724,142 @@ const TEST_RESULTS = {
},
"S_S-1_SW": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<s>`[bar]´</s>`baz´",
"innerHTML": "`foo´<s>`[bar]´</s>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<s>`[bar]´</s>`baz´</body>",
"bodyInnerHTML": "`foo´<s>`[bar]´</s>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<s>`[bar]´</s>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<s>`[bar]´</s>`baz´",
"innerHTML": "`foo´<s>`[bar]´</s>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<s>`[bar]´</s>`baz´</body>",
"bodyInnerHTML": "`foo´<s>`[bar]´</s>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<s>`[bar]´</s>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<s>`[bar]´</s>`baz´",
"innerHTML": "`foo´<s>`[bar]´</s>`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´<s>`[bar]´</s>`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´<s>`[bar]´</s>`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´<s>`[bar]´</s>`baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo´`[bar]´`baz´",
"innerHTML": "`foo´`[bar]´`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´`[bar]´`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´`[bar]´`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´`[bar]´`baz´</div>CAN<br>ARY</body>"
}
},
"S_S-1_SO": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<s>`bar´</s>`]baz´",
"innerHTML": "`foo[´<s>`bar´</s>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<s>`bar´</s>`]baz´</body>",
"bodyInnerHTML": "`foo[´<s>`bar´</s>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<s>`bar´</s>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<s>`bar´</s>`]baz´",
"innerHTML": "`foo[´<s>`bar´</s>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<s>`bar´</s>`]baz´</body>",
"bodyInnerHTML": "`foo[´<s>`bar´</s>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<s>`bar´</s>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<s>`bar´</s>`]baz´",
"innerHTML": "`foo[´<s>`bar´</s>`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´<s>`bar´</s>`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´<s>`bar´</s>`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´<s>`bar´</s>`]baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[´`bar´`]baz´",
"innerHTML": "`foo[´`bar´`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´`bar´`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´`bar´`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´`bar´`]baz´</div>CAN<br>ARY</body>"
}
},
"S_S-1_SL": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<s>`bar]´</s>`baz´",
"innerHTML": "`foo[´<s>`bar]´</s>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<s>`bar]´</s>`baz´</body>",
"bodyInnerHTML": "`foo[´<s>`bar]´</s>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[´<s>`bar]´</s>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<s>`bar]´</s>`baz´",
"innerHTML": "`foo[´<s>`bar]´</s>`baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<s>`bar]´</s>`baz´</body>",
"bodyInnerHTML": "`foo[´<s>`bar]´</s>`baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[´<s>`bar]´</s>`baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo[´<s>`bar]´</s>`baz´",
"innerHTML": "`foo[´<s>`bar]´</s>`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´<s>`bar]´</s>`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´<s>`bar]´</s>`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´<s>`bar]´</s>`baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[´`bar]´`baz´",
"innerHTML": "`foo[´`bar]´`baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo[´`bar]´`baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo[´`bar]´`baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo[´`bar]´`baz´</div>CAN<br>ARY</body>"
}
},
"S_S-1_SR": {
"dM": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<s>`[bar´</s>`]baz´",
"innerHTML": "`foo´<s>`[bar´</s>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<s>`[bar´</s>`]baz´</body>",
"bodyInnerHTML": "`foo´<s>`[bar´</s>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo´<s>`[bar´</s>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" onload=\"setDesignMode()\">`foo[bar]baz´</body>"
},
"body": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<s>`[bar´</s>`]baz´",
"innerHTML": "`foo´<s>`[bar´</s>`]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<s>`[bar´</s>`]baz´</body>",
"bodyInnerHTML": "`foo´<s>`[bar´</s>`]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo´<s>`[bar´</s>`]baz´</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo[bar]baz´",
"innerHTML": "`foo[bar]baz´",
"outerHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>",
"bodyInnerHTML": "`foo[bar]baz´",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\">`foo[bar]baz´</body>"
},
"div": {
"valscore": 0,
"selscore": 0,
"valresult": 6,
"selresult": 3,
"output": "`foo´<s>`[bar´</s>`]baz´",
"innerHTML": "`foo´<s>`[bar´</s>`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´<s>`[bar´</s>`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´<s>`[bar´</s>`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´<s>`[bar´</s>`]baz´</div>CAN<br>ARY</body>"
"valscore": 1,
"selscore": 1,
"valresult": 8,
"selresult": 5,
"output": "`foo´`[bar´`]baz´",
"innerHTML": "`foo´`[bar´`]baz´",
"outerHTML": "<div xmlns=\"http://www.w3.org/1999/xhtml\" contenteditable=\"true\" id=\"editor-div\">`foo´`[bar´`]baz´</div>",
"bodyInnerHTML": "CAN<br>ARY<div id=\"editor-div\" contenteditable=\"true\">`foo´`[bar´`]baz´</div>CAN<br>ARY",
"bodyOuterHTML": "<body xmlns=\"http://www.w3.org/1999/xhtml\">CAN<br>ARY<div contenteditable=\"true\" id=\"editor-div\">`foo´`[bar´`]baz´</div>CAN<br>ARY</body>"
}
},
"S_STRIKE-1_SW": {
@ -23830,4 +23830,3 @@ const TEST_RESULTS = {
}
}
}