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); 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); rv = RemoveTextProperty(aEditor, tagName.get(), nsnull);
else } else {
{
// Superscript and Subscript styles are mutually exclusive // Superscript and Subscript styles are mutually exclusive
nsAutoString removeName; nsAutoString removeName;
aEditor->BeginTransaction(); aEditor->BeginTransaction();

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

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

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

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