Truly independent web browser
LibWeb: Compare resolved font sizes with legacy font sizes in editing
Andreas Kling34ad23b78aa3
diff --git a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp b/Libraries/LibWeb/Editing/Internal/Algorithms.cppindex c9ce0ffd961..fef5a3bb49d 100644--- a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp+++ b/Libraries/LibWeb/Editing/Internal/Algorithms.cpp@@ -4400,6 +4400,12 @@ void set_the_selections_value(DOM::Document& document, Utf16FlyString const& com// 1. Push down values on node.push_down_values(command, node, new_value);+ // INTEROP: Browsers do not change the font size of a br that is the only child of a block, which is the line+ // break of an empty line.+ if (command == CommandNames::fontSize && is<HTML::HTMLBRElement>(*node) && node->parent()+ && node->parent()->child_count() == 1 && is_block_node(*node->parent()))+ continue;+// 2. If node is an allowed child of "span", force the value of node.if (is_allowed_child_of_node(node, HTML::TagNames::span))force_the_value(node, command, new_value);@@ -5070,8 +5076,27 @@ bool values_are_loosely_equivalent(Utf16FlyString const& command, Optional<Utf16.value_or_lazy_evaluated_optional([&] { return size_quantities.first_index_of(a.value()); });auto b_index = named_quantities.first_index_of(b.value()).value_or_lazy_evaluated_optional([&] { return size_quantities.first_index_of(b.value()); });+ if (a_index.has_value() && a_index == b_index)+ return true;- return a_index.has_value() && a_index == b_index;+ // NB: Compare the resolved value of "font-size" with the font sizes of font elements with each size attribute.+ auto resolved_value_index = [](Utf16View quantity) -> Optional<size_t> {+ if (!quantity.ends_with(u"px"sv))+ return {};+ auto pixel_size = font_size_to_pixel_size(quantity).to_float();+ for (size_t index = 0; index < 7; ++index) {+ if (fabsf(font_size_to_pixel_size(Utf16String::number(index + 1)).to_float() - pixel_size) < 0.05f)+ return index;+ }+ return {};+ };+ auto a_named_index = named_quantities.first_index_of(a.value());+ auto b_named_index = named_quantities.first_index_of(b.value());+ if (a_named_index.has_value() && a_named_index == resolved_value_index(b.value()))+ return true;+ if (b_named_index.has_value() && b_named_index == resolved_value_index(a.value()))+ return true;+ return false;}return false;diff --git a/Tests/LibWeb/Text/expected/Editing/execCommand-fontSize.txt b/Tests/LibWeb/Text/expected/Editing/execCommand-fontSize.txtindex c70bbba9c28..5a559806f42 100644--- a/Tests/LibWeb/Text/expected/Editing/execCommand-fontSize.txt+++ b/Tests/LibWeb/Text/expected/Editing/execCommand-fontSize.txt@@ -1,6 +1,6 @@div: "foobar"fontSize value: 3-div: "foo<font size="5" style="font-size: x-large;">bar</font>"+div: "foo<font size="5">bar</font>"fontSize value: 5-div: "<font size="4" style="font-size: large;">foo</font><font style=""><font size="4" style="font-size: large;"><font size="4" style="font-size: large;">bar</font></font></font>"+div: "<font size="4">foobar</font>"fontSize value: 4diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]index 7a7b6c344e8..5922b916bf5 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]@@ -2,8 +2,8 @@ Harness status: OKFound 1000 tests-961 Pass-39 Fail+997 Pass+3 FailPass [["fontsize","4"]] "foo[]bar": execCommand("fontsize", false, "4") return valuePass [["fontsize","4"]] "foo[]bar" checks for modifications to non-editable contentPass [["fontsize","4"]] "foo[]bar" compare innerHTML@@ -32,7 +32,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" queryCPass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" queryCommandValue("stylewithcss") before@@ -48,7 +48,7 @@ Pass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p> <p>bar]</p>" queryPass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" compare innerHTMLPass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" queryCommandValue("stylewithcss") before@@ -64,7 +64,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<span>[foo</span> <span>bar]</sPass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</span>" queryCommandValue("stylewithcss") before@@ -80,7 +80,7 @@ Pass [["stylewithcss","false"],["fontsize","4"]] "<span>[foo</span> <span>bar]</Pass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" compare innerHTMLPass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" queryCommandValue("stylewithcss") before@@ -96,7 +96,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span>Pass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>" queryCommandValue("stylewithcss") before@@ -128,7 +128,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<p>[foo<p><br><p>bar]" queryComPass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p>[foo<p><br><p>bar]" queryCommandValue("stylewithcss") before@@ -196,7 +196,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo[bar]baz" queryCommandValue(Pass [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -228,7 +228,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz" queryPass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<b>baz]qoz</b>quz" queryCommandValue("stylewithcss") before@@ -260,7 +260,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz" queryPass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[bar<i>baz]qoz</i>quz" queryCommandValue("stylewithcss") before@@ -292,7 +292,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "{<p><p> <p>foo</p>}" queryCommaPass [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "{<p><p> <p>foo</p>}" queryCommandValue("stylewithcss") before@@ -324,7 +324,7 @@ Pass [["stylewithcss","true"],["fontsize","1"]] "foo[bar]baz" queryCommandValue(Pass [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz": execCommand("fontsize", false, "1") return valuePass [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -356,7 +356,7 @@ Pass [["stylewithcss","true"],["fontsize","0"]] "foo[bar]baz" queryCommandValue(Pass [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz": execCommand("fontsize", false, "0") return valuePass [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","0"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -388,7 +388,7 @@ Pass [["stylewithcss","true"],["fontsize","-5"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz": execCommand("fontsize", false, "-5") return valuePass [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","-5"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -420,7 +420,7 @@ Pass [["stylewithcss","true"],["fontsize","6"]] "foo[bar]baz" queryCommandValue(Pass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz": execCommand("fontsize", false, "6") return valuePass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -436,7 +436,7 @@ Pass [["stylewithcss","false"],["fontsize","6"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz": execCommand("fontsize", false, "7") return valuePass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -452,7 +452,7 @@ Pass [["stylewithcss","true"],["fontsize","7"]] "foo[bar]baz" queryCommandValue(Pass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz": execCommand("fontsize", false, "7") return valuePass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -468,7 +468,7 @@ Pass [["stylewithcss","false"],["fontsize","7"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz": execCommand("fontsize", false, "8") return valuePass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -484,7 +484,7 @@ Pass [["stylewithcss","true"],["fontsize","8"]] "foo[bar]baz" queryCommandValue(Pass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz": execCommand("fontsize", false, "8") return valuePass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -500,7 +500,7 @@ Pass [["stylewithcss","false"],["fontsize","8"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz": execCommand("fontsize", false, "100") return valuePass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -516,7 +516,7 @@ Pass [["stylewithcss","true"],["fontsize","100"]] "foo[bar]baz" queryCommandValuPass [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz": execCommand("fontsize", false, "100") return valuePass [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","100"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -575,7 +575,7 @@ Pass [["stylewithcss","true"],["fontsize"," 1 "]] "foo[bar]baz" queryCommandValuPass [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz": execCommand("fontsize", false, " 1 ") return valuePass [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize"," 1 "]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -616,7 +616,7 @@ Pass [["stylewithcss","true"],["fontsize","1.0"]] "foo[bar]baz" queryCommandValuPass [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz": execCommand("fontsize", false, "1.0") return valuePass [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.0"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -648,7 +648,7 @@ Pass [["stylewithcss","true"],["fontsize","1.0e2"]] "foo[bar]baz" queryCommandVaPass [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz": execCommand("fontsize", false, "1.0e2") return valuePass [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.0e2"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -680,7 +680,7 @@ Pass [["stylewithcss","true"],["fontsize","1.1"]] "foo[bar]baz" queryCommandValuPass [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz": execCommand("fontsize", false, "1.1") return valuePass [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.1"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -712,7 +712,7 @@ Pass [["stylewithcss","true"],["fontsize","1.9"]] "foo[bar]baz" queryCommandValuPass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz": execCommand("fontsize", false, "1.9") return valuePass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -727,7 +727,7 @@ Pass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" queryCommandStaPass [["stylewithcss","false"],["fontsize","1.9"]] "foo[bar]baz" queryCommandValue("fontsize") afterPass [["fontsize","+0"]] "foo[bar]baz": execCommand("fontsize", false, "+0") return valuePass [["fontsize","+0"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["fontsize","+0"]] "foo[bar]baz" compare innerHTML+Pass [["fontsize","+0"]] "foo[bar]baz" compare innerHTMLPass [["fontsize","+0"]] "foo[bar]baz" queryCommandIndeterm("fontsize") beforePass [["fontsize","+0"]] "foo[bar]baz" queryCommandState("fontsize") beforePass [["fontsize","+0"]] "foo[bar]baz" queryCommandValue("fontsize") before@@ -753,7 +753,7 @@ Pass [["stylewithcss","true"],["fontsize","+1"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz": execCommand("fontsize", false, "+1") return valuePass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -769,7 +769,7 @@ Pass [["stylewithcss","false"],["fontsize","+1"]] "foo[bar]baz" queryCommandValuPass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz": execCommand("fontsize", false, "+9") return valuePass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -785,7 +785,7 @@ Pass [["stylewithcss","true"],["fontsize","+9"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz": execCommand("fontsize", false, "+9") return valuePass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -800,7 +800,7 @@ Pass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" queryCommandStatPass [["stylewithcss","false"],["fontsize","+9"]] "foo[bar]baz" queryCommandValue("fontsize") afterPass [["fontsize","-0"]] "foo[bar]baz": execCommand("fontsize", false, "-0") return valuePass [["fontsize","-0"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["fontsize","-0"]] "foo[bar]baz" compare innerHTML+Pass [["fontsize","-0"]] "foo[bar]baz" compare innerHTMLPass [["fontsize","-0"]] "foo[bar]baz" queryCommandIndeterm("fontsize") beforePass [["fontsize","-0"]] "foo[bar]baz" queryCommandState("fontsize") beforePass [["fontsize","-0"]] "foo[bar]baz" queryCommandValue("fontsize") before@@ -826,7 +826,7 @@ Pass [["stylewithcss","true"],["fontsize","-1"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz": execCommand("fontsize", false, "-1") return valuePass [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","-1"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -858,7 +858,7 @@ Pass [["stylewithcss","true"],["fontsize","-9"]] "foo[bar]baz" queryCommandValuePass [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz": execCommand("fontsize", false, "-9") return valuePass [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","-9"]] "foo[bar]baz" queryCommandValue("stylewithcss") before@@ -899,7 +899,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[Pass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>" queryCommandValue("stylewithcss") before@@ -931,7 +931,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<table><tbody><tr data-start=1Pass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandValue("stylewithcss") before@@ -963,7 +963,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<table><tbody><tr data-start=0Pass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandValue("stylewithcss") before@@ -995,7 +995,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<table><tbody data-start=0 dataPass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandValue("stylewithcss") beforediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]index c1194b5df85..90a5255e7d4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]@@ -2,8 +2,8 @@ Harness status: OKFound 1000 tests-941 Pass-59 Fail+971 Pass+29 FailPass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandValue("fontsize") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("fontsize") afterPass [["stylewithcss","false"],["fontsize","4"]] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandState("fontsize") after@@ -27,7 +27,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<table data-start=0 data-end=1>Pass [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" queryCommandValue("stylewithcss") before@@ -59,7 +59,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>bPass [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "{<table><tr><td>foo<td>bar<td>baz</table>}" queryCommandValue("stylewithcss") before@@ -91,7 +91,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<font size=1>[bar]</font>bazPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=1>[bar]</font>baz" queryCommandValue("stylewithcss") before@@ -155,7 +155,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<font size=3>[bar]</font>bazPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=3>[bar]</font>baz" queryCommandValue("stylewithcss") before@@ -219,7 +219,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<font size=4>[bar]</font>bazPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz" queryCommandValue("stylewithcss") before@@ -234,7 +234,7 @@ Pass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=4>[bar]</font>baz" queryCommandValue("fontsize") afterPass [["fontsize","4"]] "<font size=4>foo[bar]baz</font>": execCommand("fontsize", false, "4") return valuePass [["fontsize","4"]] "<font size=4>foo[bar]baz</font>" checks for modifications to non-editable content-Fail [["fontsize","4"]] "<font size=4>foo[bar]baz</font>" compare innerHTML+Pass [["fontsize","4"]] "<font size=4>foo[bar]baz</font>" compare innerHTMLPass [["fontsize","4"]] "<font size=4>foo[bar]baz</font>" queryCommandIndeterm("fontsize") beforePass [["fontsize","4"]] "<font size=4>foo[bar]baz</font>" queryCommandState("fontsize") beforePass [["fontsize","4"]] "<font size=4>foo[bar]baz</font>" queryCommandValue("fontsize") before@@ -260,7 +260,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz" queryCommandValue("stylewithcss") before@@ -275,7 +275,7 @@ Pass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>bPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=+1>[bar]</font>baz" queryCommandValue("fontsize") afterPass [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>": execCommand("fontsize", false, "4") return valuePass [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>" checks for modifications to non-editable content-Fail [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>" compare innerHTML+Pass [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>" compare innerHTMLPass [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>" queryCommandIndeterm("fontsize") beforePass [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>" queryCommandState("fontsize") beforePass [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>" queryCommandValue("fontsize") before@@ -285,7 +285,7 @@ Pass [["fontsize","4"]] "<font size=+1>foo[bar]baz</font>" queryCommandValue("foPass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" compare innerHTMLPass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" queryCommandValue("stylewithcss") before@@ -301,7 +301,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<font size=4>foo<font size=1>b[Pass [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<font size=4>foo<font size=1>b[a]r</font>baz</font>" queryCommandValue("stylewithcss") before@@ -333,7 +333,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<span style=\"font-size: xx-Pass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: xx-small\">[bar]</span>baz" queryCommandValue("stylewithcss") before@@ -397,7 +397,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<span style=\"font-size: medPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: medium\">[bar]</span>baz" queryCommandValue("stylewithcss") before@@ -461,7 +461,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<span style=\"font-size: larPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz" queryCommandValue("stylewithcss") before@@ -476,7 +476,7 @@ Pass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: laPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: large\">[bar]</span>baz" queryCommandValue("fontsize") afterPass [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>": execCommand("fontsize", false, "4") return valuePass [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>" checks for modifications to non-editable content-Fail [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>" compare innerHTML+Pass [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>" compare innerHTMLPass [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>" queryCommandIndeterm("fontsize") beforePass [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>" queryCommandState("fontsize") beforePass [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>" queryCommandValue("fontsize") before@@ -486,7 +486,7 @@ Pass [["fontsize","4"]] "<span style=\"font-size: large\">foo[bar]baz</span>" quPass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" compare innerHTMLPass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" queryCommandValue("stylewithcss") before@@ -502,7 +502,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<span style=\"font-size: large\Pass [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<span style=\"font-size: large\">foo<span style=\"font-size: xx-small\">b[a]r</span>baz</span>" queryCommandValue("stylewithcss") before@@ -534,7 +534,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<span style=\"font-size: 2emPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<span style=\"font-size: 2em\">[bar]</span>baz" queryCommandValue("stylewithcss") before@@ -598,7 +598,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<p style=\"font-size: xx-small\Pass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>" queryCommandValue("stylewithcss") before@@ -630,7 +630,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<p style=\"font-size: medium\">Pass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" queryCommandValue("stylewithcss") before@@ -645,7 +645,7 @@ Pass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\"Pass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" queryCommandValue("fontsize") afterPass [["fontsize","4"]] "<p style=\"font-size: large\">foo[bar]baz</p>": execCommand("fontsize", false, "4") return valuePass [["fontsize","4"]] "<p style=\"font-size: large\">foo[bar]baz</p>" checks for modifications to non-editable content-Fail [["fontsize","4"]] "<p style=\"font-size: large\">foo[bar]baz</p>" compare innerHTML+Pass [["fontsize","4"]] "<p style=\"font-size: large\">foo[bar]baz</p>" compare innerHTMLPass [["fontsize","4"]] "<p style=\"font-size: large\">foo[bar]baz</p>" queryCommandIndeterm("fontsize") beforePass [["fontsize","4"]] "<p style=\"font-size: large\">foo[bar]baz</p>" queryCommandState("fontsize") beforePass [["fontsize","4"]] "<p style=\"font-size: large\">foo[bar]baz</p>" queryCommandValue("fontsize") before@@ -671,7 +671,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "<p style=\"font-size: 2em\">fooPass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "<p style=\"font-size: 2em\">foo[bar]baz</p>" queryCommandValue("stylewithcss") before@@ -718,7 +718,7 @@ Pass [["stylewithcss","false"],["fontsize","3"]] "<p style=\"font-size: xx-smallPass [["stylewithcss","false"],["fontsize","3"]] "<p style=\"font-size: xx-small\">foo[bar]baz</p>" queryCommandValue("fontsize") afterPass [["fontsize","3"]] "<p style=\"font-size: medium\">foo[bar]baz</p>": execCommand("fontsize", false, "3") return valuePass [["fontsize","3"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" checks for modifications to non-editable content-Fail [["fontsize","3"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" compare innerHTML+Pass [["fontsize","3"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" compare innerHTMLPass [["fontsize","3"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" queryCommandIndeterm("fontsize") beforePass [["fontsize","3"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" queryCommandState("fontsize") beforePass [["fontsize","3"]] "<p style=\"font-size: medium\">foo[bar]baz</p>" queryCommandValue("fontsize") before@@ -792,7 +792,7 @@ Pass [["stylewithcss","false"],["fontsize","3"]] "<p style=\"font-size: 2em\">foPass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" compare innerHTMLPass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" queryCommandValue("stylewithcss") before@@ -808,7 +808,7 @@ Pass [["stylewithcss","true"],["fontsize","3"]] "<font size=6>foo <span style=\"Pass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\"font-size: 2em\">b[a]r</span> baz</font>" queryCommandValue("stylewithcss") before@@ -824,7 +824,7 @@ Pass [["stylewithcss","false"],["fontsize","3"]] "<font size=6>foo <span style=\Pass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz" compare innerHTMLPass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz" queryCommandValue("stylewithcss") before@@ -840,7 +840,7 @@ Pass [["stylewithcss","true"],["fontsize","3"]] "foo<big>[bar]</big>baz" queryCoPass [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>[bar]</big>baz" queryCommandValue("stylewithcss") before@@ -872,7 +872,7 @@ Pass [["stylewithcss","true"],["fontsize","3"]] "foo<big>b[a]r</big>baz" queryCoPass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz" queryCommandValue("stylewithcss") before@@ -888,7 +888,7 @@ Pass [["stylewithcss","false"],["fontsize","3"]] "foo<big>b[a]r</big>baz" queryCPass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz" compare innerHTMLPass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz" queryCommandValue("stylewithcss") before@@ -904,7 +904,7 @@ Pass [["stylewithcss","true"],["fontsize","3"]] "foo<small>[bar]</small>baz" quePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>[bar]</small>baz" queryCommandValue("stylewithcss") before@@ -936,7 +936,7 @@ Pass [["stylewithcss","true"],["fontsize","3"]] "foo<small>b[a]r</small>baz" quePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz": execCommand("fontsize", false, "3") return valuePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","3"]] "foo<small>b[a]r</small>baz" queryCommandValue("stylewithcss") beforediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]index 0194c96d225..f539f08fbf6 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]@@ -2,8 +2,8 @@ Harness status: OKFound 422 tests-381 Pass-41 Fail+394 Pass+28 FailPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>ba[r</font>b]az" queryCommandIndeterm("stylewithcss") afterFail [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>ba[r</font>b]az" queryCommandState("stylewithcss") afterPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>ba[r</font>b]az" queryCommandValue("stylewithcss") after@@ -16,7 +16,7 @@ Fail [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>ba[r</font>b]aPass [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az": execCommand("stylewithcss", false, "true") return valuePass [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" checks for modifications to non-editable content-Fail [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" compare innerHTML+Pass [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" compare innerHTMLPass [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" queryCommandIndeterm("stylewithcss") beforeFail [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" queryCommandState("stylewithcss") beforePass [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" queryCommandValue("stylewithcss") before@@ -32,7 +32,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]azPass [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "fo[o<font size=2>bar</font>b]az" queryCommandValue("stylewithcss") before@@ -128,7 +128,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo[<font size=2>bar</font>]bazPass [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo[<font size=2>bar</font>]baz" queryCommandValue("stylewithcss") before@@ -160,7 +160,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo<font size=2>[bar]</font>bazPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo<font size=2>[bar]</font>baz" queryCommandValue("stylewithcss") before@@ -192,7 +192,7 @@ Pass [["stylewithcss","true"],["fontsize","4"]] "foo{<font size=2>bar</font>}bazPass [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz" queryCommandIndeterm("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz" queryCommandState("stylewithcss") beforePass [["stylewithcss","false"],["fontsize","4"]] "foo{<font size=2>bar</font>}baz" queryCommandValue("stylewithcss") before@@ -303,7 +303,7 @@ Pass [["stylewithcss","false"],["fontsize","4"]] "<font size=3>fo[o</font><spanPass [["stylewithcss","false"],["fontsize","4"]] "<font size=3>fo[o</font><span style=font-size:medium>b]ar</span>" queryCommandValue("fontsize") afterPass [["fontsize","4"]] "<font size=4>fo[o</font><span style=font-size:large>b]ar</span>": execCommand("fontsize", false, "4") return valuePass [["fontsize","4"]] "<font size=4>fo[o</font><span style=font-size:large>b]ar</span>" checks for modifications to non-editable content-Fail [["fontsize","4"]] "<font size=4>fo[o</font><span style=font-size:large>b]ar</span>" compare innerHTML+Pass [["fontsize","4"]] "<font size=4>fo[o</font><span style=font-size:large>b]ar</span>" compare innerHTMLPass [["fontsize","4"]] "<font size=4>fo[o</font><span style=font-size:large>b]ar</span>" queryCommandIndeterm("fontsize") beforePass [["fontsize","4"]] "<font size=4>fo[o</font><span style=font-size:large>b]ar</span>" queryCommandState("fontsize") beforePass [["fontsize","4"]] "<font size=4>fo[o</font><span style=font-size:large>b]ar</span>" queryCommandValue("fontsize") before@@ -389,23 +389,23 @@ Fail [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000 face=monosPass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>[a]bc</font>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>[a]bc</font>": execCommand("fontSize", false, "7") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>[a]bc</font>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>[a]bc</font>" compare innerHTML+Pass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>[a]bc</font>" compare innerHTMLPass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>ab[c]</font>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>ab[c]</font>": execCommand("fontSize", false, "7") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>ab[c]</font>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>ab[c]</font>" compare innerHTML+Pass [["styleWithCSS","false"],["fontSize","7"]] "<font color=#ff0000>ab[c]</font>" compare innerHTMLPass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>[a]bc</font>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>[a]bc</font>": execCommand("fontSize", false, "7") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>[a]bc</font>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>[a]bc</font>" compare innerHTML+Pass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>[a]bc</font>" compare innerHTMLPass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>ab[c]</font>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>ab[c]</font>": execCommand("fontSize", false, "7") return valuePass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>ab[c]</font>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>ab[c]</font>" compare innerHTML+Pass [["styleWithCSS","false"],["fontSize","7"]] "<font face=monospace>ab[c]</font>" compare innerHTMLPass [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc]</span>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc]</span>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc]</span>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc]</span>" compare innerHTML+Pass [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc]</span>" compare innerHTMLPass [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[a]bc</span>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[a]bc</span>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[a]bc</span>" checks for modifications to non-editable content@@ -421,8 +421,8 @@ Fail [["styleWithCSS","false"],["fontSize","5"]] "<span style=\"font-size:32px;Pass [["styleWithCSS","false"],["fontSize","5"]] "<p><span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc</span></p><p><span style=\"font-size:64px; background-color:rgb(128, 128, 0)\">def]</span></p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["fontSize","5"]] "<p><span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc</span></p><p><span style=\"font-size:64px; background-color:rgb(128, 128, 0)\">def]</span></p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["fontSize","5"]] "<p><span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc</span></p><p><span style=\"font-size:64px; background-color:rgb(128, 128, 0)\">def]</span></p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["fontSize","5"]] "<p><span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc</span></p><p><span style=\"font-size:64px; background-color:rgb(128, 128, 0)\">def]</span></p>" compare innerHTML+Pass [["styleWithCSS","false"],["fontSize","5"]] "<p><span style=\"font-size:32px; background-color:rgb(0, 128, 128)\">[abc</span></p><p><span style=\"font-size:64px; background-color:rgb(128, 128, 0)\">def]</span></p>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","5"]] "{ <span contenteditable=\"false\">A</span> ; <span contenteditable=\"false\">B</span> ; <span contenteditable=\"false\">C</span> }": execCommand("stylewithcss", false, "false") return valuePass [["stylewithcss","false"],["fontsize","5"]] "{ <span contenteditable=\"false\">A</span> ; <span contenteditable=\"false\">B</span> ; <span contenteditable=\"false\">C</span> }": execCommand("fontsize", false, "5") return valuePass [["stylewithcss","false"],["fontsize","5"]] "{ <span contenteditable=\"false\">A</span> ; <span contenteditable=\"false\">B</span> ; <span contenteditable=\"false\">C</span> }" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","5"]] "{ <span contenteditable=\"false\">A</span> ; <span contenteditable=\"false\">B</span> ; <span contenteditable=\"false\">C</span> }" compare innerHTML\ No newline at end of file+Pass [["stylewithcss","false"],["fontsize","5"]] "{ <span contenteditable=\"false\">A</span> ; <span contenteditable=\"false\">B</span> ; <span contenteditable=\"false\">C</span> }" compare innerHTML\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]index 721acc89901..4a643189f9e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]@@ -2,8 +2,8 @@ Harness status: OKFound 1092 tests-990 Pass-102 Fail+1001 Pass+91 FailPass [["delete",""],["inserttext","a"]] "foo<font color=#0000FF>[bar</font>baz]" queryCommandIndeterm("inserttext") beforePass [["delete",""],["inserttext","a"]] "foo<font color=#0000FF>[bar</font>baz]" queryCommandState("inserttext") beforePass [["delete",""],["inserttext","a"]] "foo<font color=#0000FF>[bar</font>baz]" queryCommandValue("inserttext") before@@ -717,7 +717,7 @@ Pass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=Pass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>": execCommand("fontsize", false, "4") return valuePass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>": execCommand("insertText", false, "a") return valuePass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>" checks for modifications to non-editable content-Fail [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>" compare innerHTML+Pass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>" compare innerHTMLPass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>" queryCommandIndeterm("fontsize") beforePass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>" queryCommandState("fontsize") beforePass [["stylewithcss","false"],["fontsize","4"],["insertText","a"]] "<font size=7>{}<br></font>" queryCommandValue("fontsize") before@@ -918,13 +918,13 @@ Pass [["styleWithCSS","false"],["fontSize","5"],["bold",""],["insertText","b"]]Pass [["styleWithCSS","false"],["fontSize","5"],["bold",""],["insertText","b"]] "a[]c": execCommand("bold", false, "") return valuePass [["styleWithCSS","false"],["fontSize","5"],["bold",""],["insertText","b"]] "a[]c": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["fontSize","5"],["bold",""],["insertText","b"]] "a[]c" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["fontSize","5"],["bold",""],["insertText","b"]] "a[]c" compare innerHTML+Pass [["styleWithCSS","false"],["fontSize","5"],["bold",""],["insertText","b"]] "a[]c" compare innerHTMLPass [["styleWithCSS","false"],["bold",""],["fontSize","5"],["insertText","b"]] "a[]c": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["bold",""],["fontSize","5"],["insertText","b"]] "a[]c": execCommand("bold", false, "") return valuePass [["styleWithCSS","false"],["bold",""],["fontSize","5"],["insertText","b"]] "a[]c": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["bold",""],["fontSize","5"],["insertText","b"]] "a[]c": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["bold",""],["fontSize","5"],["insertText","b"]] "a[]c" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["bold",""],["fontSize","5"],["insertText","b"]] "a[]c" compare innerHTML+Pass [["styleWithCSS","false"],["bold",""],["fontSize","5"],["insertText","b"]] "a[]c" compare innerHTMLPass [["styleWithCSS","false"],["foreColor","#ff0000"],["bold",""],["fontSize","5"],["fontName","monospace"],["insertText","b"]] "a[]c": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["foreColor","#ff0000"],["bold",""],["fontSize","5"],["fontName","monospace"],["insertText","b"]] "a[]c": execCommand("foreColor", false, "#ff0000") return valuePass [["styleWithCSS","false"],["foreColor","#ff0000"],["bold",""],["fontSize","5"],["fontName","monospace"],["insertText","b"]] "a[]c": execCommand("bold", false, "") return value@@ -938,51 +938,51 @@ Pass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]Pass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a</font></p><p>[]c</p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a</font></p><p>[]c</p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a</font></p><p>[]c</p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a</font></p><p>[]c</p>" compare innerHTML+Pass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a</font></p><p>[]c</p>" compare innerHTMLPass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>": execCommand("delete", false, "") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>": execCommand("foreColor", false, "#ff0000") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>" compare innerHTML+Pass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a</font></p><p>[]c</p>" compare innerHTMLPass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p>[]c</p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p>[]c</p>": execCommand("delete", false, "") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p>[]c</p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p>[]c</p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p>[]c</p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p>[]c</p>" compare innerHTML+Pass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p>[]c</p>" compare innerHTMLPass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p><i>[]c</i></p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p><i>[]c</i></p>": execCommand("delete", false, "") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p><i>[]c</i></p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p><i>[]c</i></p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p><i>[]c</i></p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p><i>[]c</i></p>" compare innerHTML+Pass [["styleWithCSS","false"],["delete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a</b></font></p><p><i>[]c</i></p>" compare innerHTMLPass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a[]</font></p><p>c</p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a[]</font></p><p>c</p>": execCommand("forwardDelete", false, "") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a[]</font></p><p>c</p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a[]</font></p><p>c</p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a[]</font></p><p>c</p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a[]</font></p><p>c</p>" compare innerHTML+Pass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\">a[]</font></p><p>c</p>" compare innerHTMLPass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>": execCommand("forwardDelete", false, "") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>": execCommand("foreColor", false, "#ff0000") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>" compare innerHTML+Pass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["foreColor","#ff0000"],["insertText","b"]] "<p><font size=\"5\" color=\"#ff0000\">a[]</font></p><p>c</p>" compare innerHTMLPass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p>c</p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p>c</p>": execCommand("forwardDelete", false, "") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p>c</p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p>c</p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p>c</p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p>c</p>" compare innerHTML+Pass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p>c</p>" compare innerHTMLPass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p><i>c</i></p>": execCommand("styleWithCSS", false, "false") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p><i>c</i></p>": execCommand("forwardDelete", false, "") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p><i>c</i></p>": execCommand("fontSize", false, "5") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p><i>c</i></p>": execCommand("insertText", false, "b") return valuePass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p><i>c</i></p>" checks for modifications to non-editable content-Fail [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p><i>c</i></p>" compare innerHTML+Pass [["styleWithCSS","false"],["forwardDelete",""],["fontSize","5"],["insertText","b"]] "<p><font size=\"5\"><b>a[]</b></font></p><p><i>c</i></p>" compare innerHTMLPass [["delete",""],["inserttext","g"],["inserttext","h"]] "<div>{abc</div><div>def</div>}": execCommand("delete", false, "") return valuePass [["delete",""],["inserttext","g"],["inserttext","h"]] "<div>{abc</div><div>def</div>}": execCommand("inserttext", false, "g") return valuePass [["delete",""],["inserttext","g"],["inserttext","h"]] "<div>{abc</div><div>def</div>}": execCommand("inserttext", false, "h") return value