Skip to content

Truly independent web browser

LibWeb: Restore command overrides after canonicalizing the caret

Andreas Klingb58462726076
diff --git a/Libraries/LibWeb/Editing/ExecCommand.cpp b/Libraries/LibWeb/Editing/ExecCommand.cpp
index 47af1b8dbea..8486ccf168f 100644
--- a/Libraries/LibWeb/Editing/ExecCommand.cpp
+++ b/Libraries/LibWeb/Editing/ExecCommand.cpp
@@ -226,9 +226,20 @@ WebIDL::ExceptionOr<bool> Document::exec_command_internal(Utf16FlyString const&
}
}
+ // NB: Canonicalize the caret the command produced before the ending selection is recorded, but only if the
+ // command actually performed an edit; Chromium leaves the caret alone otherwise.
+ // INTEROP: A user cut or paste counts as an edit whenever its command ran: Chromium fires the input event and
+ // settles the caret even when the pasted fragment reduces to nothing but transport markers.
+ bool tree_was_modified = dom_tree_version() != old_dom_tree_version
+ || character_data_version() != old_character_data_version
+ || (is_cut_or_paste && command_result);
+ if (affected_editing_host && m_selection && tree_was_modified)
+ Editing::canonicalize_collapsed_selection_for_editing(*m_selection);
+
// https://w3c.github.io/editing/docs/execCommand/#preserves-overrides
// After taking the action, if the active range is collapsed, it must restore states and values from the recorded
// list.
+ // NB: Do this after canonicalizing the caret above, since moving the caret unsets the overrides.
if (!overrides.is_empty() && m_selection && m_selection->is_collapsed()) {
auto* focus = m_selection->focus_node().ptr();
// INTEROP: A deleted link's inherited style must not recreate the link on the next keystroke.
@@ -242,16 +253,6 @@ WebIDL::ExceptionOr<bool> Document::exec_command_internal(Utf16FlyString const&
Editing::restore_states_and_values(*this, overrides);
}
- // NB: Canonicalize the caret the command produced before the ending selection is recorded, but only if the
- // command actually performed an edit; Chromium leaves the caret alone otherwise.
- // INTEROP: A user cut or paste counts as an edit whenever its command ran: Chromium fires the input event and
- // settles the caret even when the pasted fragment reduces to nothing but transport markers.
- bool tree_was_modified = dom_tree_version() != old_dom_tree_version
- || character_data_version() != old_character_data_version
- || (is_cut_or_paste && command_result);
- if (affected_editing_host && m_selection && tree_was_modified)
- Editing::canonicalize_collapsed_selection_for_editing(*m_selection);
-
// NB: End the recording before dispatching the input event below, so that the undo step's ending selection is the
// selection produced by the command itself, not whatever an input event handler changed it to.
if (auto history = editing_history_if_exists())
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre&command=insertParagraph.txt
index c9c1523a125..4268a7062cc 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre&command=insertParagraph.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 138 tests
-108 Pass
-30 Fail
+112 Pass
+26 Fail
Pass <div contenteditable style="white-space:pre; display:block">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre; display:block">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre; display:block">a[]bc</div> (defaultParagraphSeparator: div)
@@ -30,7 +30,7 @@ Pass <div contenteditable><p style="display:block; white-space:pre">a[]bc</p></d
Pass <div contenteditable style="white-space:pre; display:inline">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre; display:inline">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre; display:inline">a[]bc</div> (defaultParagraphSeparator: div)
-Fail <div contenteditable style="white-space:pre; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)
Pass <div contenteditable style="display:inline"><div style="white-space:pre">abc[]</div></div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="display:inline"><div style="white-space:pre">[]abc</div></div> (defaultParagraphSeparator: div)
@@ -53,7 +53,7 @@ Fail <div contenteditable><p style="display:inline; white-space:pre">a[]bc</p></
Pass <div contenteditable style="white-space:pre; display:inline-block">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre; display:inline-block">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre; display:inline-block">a[]bc</div> (defaultParagraphSeparator: div)
-Fail <div contenteditable style="white-space:pre; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre">abc[]</div></div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre">[]abc</div></div> (defaultParagraphSeparator: div)
@@ -99,7 +99,7 @@ Pass <div contenteditable><p style="display:block; white-space:pre">a[]bc</p></d
Pass <div contenteditable style="white-space:pre; display:inline">abc[]</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre; display:inline">[]abc</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre; display:inline">a[]bc</div> (defaultParagraphSeparator: p)
-Fail <div contenteditable style="white-space:pre; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)
Pass <div contenteditable style="display:inline"><div style="white-space:pre">abc[]</div></div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="display:inline"><div style="white-space:pre">[]abc</div></div> (defaultParagraphSeparator: p)
@@ -122,7 +122,7 @@ Fail <div contenteditable><p style="display:inline; white-space:pre">a[]bc</p></
Pass <div contenteditable style="white-space:pre; display:inline-block">abc[]</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre; display:inline-block">[]abc</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre; display:inline-block">a[]bc</div> (defaultParagraphSeparator: p)
-Fail <div contenteditable style="white-space:pre; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre">abc[]</div></div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre">[]abc</div></div> (defaultParagraphSeparator: p)
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-line&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-line&command=insertParagraph.txt
index 0e027db0252..3bc8a1ff1eb 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-line&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-line&command=insertParagraph.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 138 tests
-108 Pass
-30 Fail
+112 Pass
+26 Fail
Pass <div contenteditable style="white-space:pre-line; display:block">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-line; display:block">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-line; display:block">a[]bc</div> (defaultParagraphSeparator: div)
@@ -30,7 +30,7 @@ Pass <div contenteditable><p style="display:block; white-space:pre-line">a[]bc</
Pass <div contenteditable style="white-space:pre-line; display:inline">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-line; display:inline">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-line; display:inline">a[]bc</div> (defaultParagraphSeparator: div)
-Fail <div contenteditable style="white-space:pre-line; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-line; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-line; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-line">abc[]</div></div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-line">[]abc</div></div> (defaultParagraphSeparator: div)
@@ -53,7 +53,7 @@ Fail <div contenteditable><p style="display:inline; white-space:pre-line">a[]bc<
Pass <div contenteditable style="white-space:pre-line; display:inline-block">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-line; display:inline-block">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-line; display:inline-block">a[]bc</div> (defaultParagraphSeparator: div)
-Fail <div contenteditable style="white-space:pre-line; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-line; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-line; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-line">abc[]</div></div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-line">[]abc</div></div> (defaultParagraphSeparator: div)
@@ -99,7 +99,7 @@ Pass <div contenteditable><p style="display:block; white-space:pre-line">a[]bc</
Pass <div contenteditable style="white-space:pre-line; display:inline">abc[]</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-line; display:inline">[]abc</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-line; display:inline">a[]bc</div> (defaultParagraphSeparator: p)
-Fail <div contenteditable style="white-space:pre-line; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-line; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-line; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-line">abc[]</div></div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-line">[]abc</div></div> (defaultParagraphSeparator: p)
@@ -122,7 +122,7 @@ Fail <div contenteditable><p style="display:inline; white-space:pre-line">a[]bc<
Pass <div contenteditable style="white-space:pre-line; display:inline-block">abc[]</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-line; display:inline-block">[]abc</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-line; display:inline-block">a[]bc</div> (defaultParagraphSeparator: p)
-Fail <div contenteditable style="white-space:pre-line; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-line; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-line; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-line">abc[]</div></div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-line">[]abc</div></div> (defaultParagraphSeparator: p)
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-wrap&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-wrap&command=insertParagraph.txt
index 3a2eefe2193..0dc69917aee 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-wrap&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=pre-wrap&command=insertParagraph.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 138 tests
-108 Pass
-30 Fail
+112 Pass
+26 Fail
Pass <div contenteditable style="white-space:pre-wrap; display:block">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-wrap; display:block">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-wrap; display:block">a[]bc</div> (defaultParagraphSeparator: div)
@@ -30,7 +30,7 @@ Pass <div contenteditable><p style="display:block; white-space:pre-wrap">a[]bc</
Pass <div contenteditable style="white-space:pre-wrap; display:inline">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-wrap; display:inline">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-wrap; display:inline">a[]bc</div> (defaultParagraphSeparator: div)
-Fail <div contenteditable style="white-space:pre-wrap; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-wrap; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-wrap; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-wrap">abc[]</div></div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-wrap">[]abc</div></div> (defaultParagraphSeparator: div)
@@ -53,7 +53,7 @@ Fail <div contenteditable><p style="display:inline; white-space:pre-wrap">a[]bc<
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: div)
-Fail <div contenteditable style="white-space:pre-wrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-wrap">abc[]</div></div> (defaultParagraphSeparator: div)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-wrap">[]abc</div></div> (defaultParagraphSeparator: div)
@@ -99,7 +99,7 @@ Pass <div contenteditable><p style="display:block; white-space:pre-wrap">a[]bc</
Pass <div contenteditable style="white-space:pre-wrap; display:inline">abc[]</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-wrap; display:inline">[]abc</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-wrap; display:inline">a[]bc</div> (defaultParagraphSeparator: p)
-Fail <div contenteditable style="white-space:pre-wrap; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-wrap; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-wrap; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-wrap">abc[]</div></div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="display:inline"><div style="white-space:pre-wrap">[]abc</div></div> (defaultParagraphSeparator: p)
@@ -122,7 +122,7 @@ Fail <div contenteditable><p style="display:inline; white-space:pre-wrap">a[]bc<
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: p)
-Fail <div contenteditable style="white-space:pre-wrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
+Pass <div contenteditable style="white-space:pre-wrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)
Pass <div contenteditable style="white-space:pre-wrap; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-wrap">abc[]</div></div> (defaultParagraphSeparator: p)
Pass <div contenteditable style="display:inline-block"><div style="white-space:pre-wrap">[]abc</div></div> (defaultParagraphSeparator: p)
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index f507ebe81b0..872a1d7abf8 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: OK
Found 1000 tests
-966 Pass
-34 Fail
+972 Pass
+28 Fail
Pass [["bold",""],["inserttext","a"]] "foo[]bar": execCommand("bold", false, "") return value
Pass [["bold",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return value
Pass [["bold",""],["inserttext","a"]] "foo[]bar" checks for modifications to non-editable content
@@ -301,7 +301,7 @@ Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("bold"
Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("bold") before
Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("bold") before
Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("bold") after
-Fail [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("bold") after
+Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("bold") after
Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("bold") after
Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -318,7 +318,7 @@ Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCom
Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") before
Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") before
Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("bold") after
-Fail [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") after
+Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") after
Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") after
Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -379,7 +379,7 @@ Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("bold"
Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandState("bold") before
Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("bold") before
Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("bold") after
-Fail [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandState("bold") after
+Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandState("bold") after
Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("bold") after
Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -396,7 +396,7 @@ Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCom
Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") before
Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") before
Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("bold") after
-Fail [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") after
+Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") after
Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") after
Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -941,7 +941,7 @@ Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("ita
Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("italic") before
Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("italic") before
Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("italic") after
-Fail [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("italic") after
+Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("italic") after
Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("italic") after
Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -958,7 +958,7 @@ Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryC
Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") before
Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") before
Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("italic") after
-Fail [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") after
+Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") after
Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") after
Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index 44acbce3d76..68aa98112dc 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: OK
Found 1000 tests
-967 Pass
-33 Fail
+973 Pass
+27 Fail
Pass [["italic",""],["insertorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertorderedlist") after
Pass [["italic",""],["insertorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("inserttext") before
Pass [["italic",""],["insertorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandState("inserttext") before
@@ -19,7 +19,7 @@ Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("ita
Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("italic") before
Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("italic") before
Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("italic") after
-Fail [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("italic") after
+Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("italic") after
Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("italic") after
Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -36,7 +36,7 @@ Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryC
Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") before
Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") before
Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("italic") after
-Fail [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") after
+Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") after
Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") after
Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -581,7 +581,7 @@ Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndete
Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("strikethrough") before
Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("strikethrough") before
Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("strikethrough") after
-Fail [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("strikethrough") after
+Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("strikethrough") after
Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("strikethrough") after
Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -598,7 +598,7 @@ Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar"
Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("strikethrough") before
Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") before
Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("strikethrough") after
-Fail [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("strikethrough") after
+Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("strikethrough") after
Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") after
Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -659,7 +659,7 @@ Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandIndete
Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandState("strikethrough") before
Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("strikethrough") before
Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("strikethrough") after
-Fail [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandState("strikethrough") after
+Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandState("strikethrough") after
Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("strikethrough") after
Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -676,7 +676,7 @@ Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar"
Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("strikethrough") before
Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") before
Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("strikethrough") after
-Fail [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("strikethrough") after
+Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("strikethrough") after
Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") after
Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index 06a7bf8bd77..62a88faad7a 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: OK
Found 1000 tests
-981 Pass
-19 Fail
+991 Pass
+9 Fail
Fail [["subscript",""],["formatblock","<div>"],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") after
Pass [["subscript",""],["formatblock","<div>"],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") after
Pass [["subscript",""],["formatblock","<div>"],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("formatblock") before
@@ -221,7 +221,7 @@ Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("
Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("subscript") before
Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("subscript") before
Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("subscript") after
-Fail [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("subscript") after
+Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("subscript") after
Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("subscript") after
Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -233,12 +233,12 @@ Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": ex
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return value
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return value
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" checks for modifications to non-editable content
-Fail [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
+Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("subscript") before
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") before
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") before
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("subscript") after
-Fail [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") after
+Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") after
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") after
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -299,7 +299,7 @@ Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("
Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("subscript") before
Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("subscript") before
Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("subscript") after
-Fail [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("subscript") after
+Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("subscript") after
Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("subscript") after
Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -316,7 +316,7 @@ Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" que
Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") before
Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") before
Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("subscript") after
-Fail [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") after
+Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") after
Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") after
Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -861,7 +861,7 @@ Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm
Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("superscript") before
Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("superscript") before
Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("superscript") after
-Fail [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("superscript") after
+Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("superscript") after
Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("superscript") after
Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -873,12 +873,12 @@ Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar":
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return value
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return value
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" checks for modifications to non-editable content
-Fail [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
+Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("superscript") before
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") before
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") before
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("superscript") after
-Fail [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") after
+Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") after
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") after
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -939,7 +939,7 @@ Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm
Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("superscript") before
Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("superscript") before
Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("superscript") after
-Fail [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("superscript") after
+Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("superscript") after
Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("superscript") after
Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -956,7 +956,7 @@ Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" q
Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") before
Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") before
Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("superscript") after
-Fail [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") after
+Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") after
Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") after
Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index c6f5ae4532d..d3339511139 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: OK
Found 1000 tests
-978 Pass
-22 Fail
+982 Pass
+18 Fail
Pass [["superscript",""],["insertunorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandState("inserttext") before
Pass [["superscript",""],["insertunorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandValue("inserttext") before
Pass [["superscript",""],["insertunorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("inserttext") after
@@ -501,7 +501,7 @@ Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("
Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("underline") before
Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("underline") before
Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("underline") after
-Fail [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("underline") after
+Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("underline") after
Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("underline") after
Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -518,7 +518,7 @@ Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" que
Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") before
Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") before
Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("underline") after
-Fail [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") after
+Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") after
Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") after
Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
@@ -579,7 +579,7 @@ Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("
Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandState("underline") before
Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("underline") before
Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("underline") after
-Fail [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandState("underline") after
+Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandState("underline") after
Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("underline") after
Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
@@ -596,7 +596,7 @@ Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" que
Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") before
Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") before
Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("underline") after
-Fail [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") after
+Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") after
Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") after
Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index 14d63a64d6c..43c14de1bac 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: OK
Found 1000 tests
-988 Pass
-12 Fail
+994 Pass
+6 Fail
Pass [["backcolor","#00FFFF"],["indent",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("indent") before
Pass [["backcolor","#00FFFF"],["indent",""],["inserttext","a"]] "foo[]bar" queryCommandState("indent") before
Pass [["backcolor","#00FFFF"],["indent",""],["inserttext","a"]] "foo[]bar" queryCommandValue("indent") before
@@ -142,7 +142,7 @@ Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandSta
Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("backcolor") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("backcolor") after
Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("backcolor") after
-Fail [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("backcolor") after
+Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("backcolor") after
Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -153,13 +153,13 @@ Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]b
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return value
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return value
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" checks for modifications to non-editable content
-Fail [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
+Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("backcolor") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("backcolor") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("backcolor") after
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("backcolor") after
-Fail [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") after
+Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") after
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -220,7 +220,7 @@ Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandSta
Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("backcolor") before
Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("backcolor") after
Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandState("backcolor") after
-Fail [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("backcolor") after
+Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("backcolor") after
Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before
@@ -237,7 +237,7 @@ Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]b
Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") before
Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("backcolor") after
Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("backcolor") after
-Fail [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") after
+Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") after
Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before
@@ -793,7 +793,7 @@ Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttex
Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return value
Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return value
Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" checks for modifications to non-editable content
-Fail [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
+Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("createlink") before
Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("createlink") before
Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("createlink") before
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index 0eb1cdb71c2..622db3a1d3d 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: OK
Found 1000 tests
-971 Pass
-29 Fail
+975 Pass
+25 Fail
Pass [["createlink","http://www.google.com/"],["justifyfull",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("inserttext") after
Pass [["createlink","http://www.google.com/"],["justifyfull",""],["inserttext","a"]] "foo[]bar" queryCommandState("inserttext") after
Pass [["createlink","http://www.google.com/"],["justifyfull",""],["inserttext","a"]] "foo[]bar" queryCommandValue("inserttext") after
@@ -422,7 +422,7 @@ Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandS
Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontname") before
Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("fontname") after
Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandState("fontname") after
-Fail [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontname") after
+Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontname") after
Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -439,7 +439,7 @@ Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[
Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontname") before
Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontname") after
Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("fontname") after
-Fail [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontname") after
+Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontname") after
Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -500,7 +500,7 @@ Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandS
Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontname") before
Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("fontname") after
Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandState("fontname") after
-Fail [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontname") after
+Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontname") after
Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before
@@ -517,7 +517,7 @@ Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[
Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontname") before
Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontname") after
Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("fontname") after
-Fail [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontname") after
+Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontname") after
Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index a5f2a4723b0..2820c5a7669 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: OK
Found 1000 tests
-964 Pass
-36 Fail
+972 Pass
+28 Fail
Pass [["fontsize","4"],["inserthtml","ab<b>c</b>d"],["inserttext","a"]] "foo[]bar" queryCommandValue("inserthtml") before
Pass [["fontsize","4"],["inserthtml","ab<b>c</b>d"],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("inserthtml") after
Pass [["fontsize","4"],["inserthtml","ab<b>c</b>d"],["inserttext","a"]] "foo[]bar" queryCommandState("inserthtml") after
@@ -62,7 +62,7 @@ Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandState("fon
Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontsize") before
Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("fontsize") after
Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandState("fontsize") after
-Fail [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontsize") after
+Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontsize") after
Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -79,7 +79,7 @@ Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" que
Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") before
Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontsize") after
Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("fontsize") after
-Fail [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") after
+Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") after
Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -140,7 +140,7 @@ Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandState("fon
Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontsize") before
Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("fontsize") after
Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandState("fontsize") after
-Fail [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontsize") after
+Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontsize") after
Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before
@@ -157,7 +157,7 @@ Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" que
Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") before
Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontsize") after
Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("fontsize") after
-Fail [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") after
+Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") after
Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before
@@ -702,7 +702,7 @@ Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandSta
Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("forecolor") before
Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("forecolor") after
Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("forecolor") after
-Fail [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("forecolor") after
+Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("forecolor") after
Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -719,7 +719,7 @@ Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]b
Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") before
Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("forecolor") after
Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("forecolor") after
-Fail [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") after
+Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") after
Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -780,7 +780,7 @@ Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandSta
Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("forecolor") before
Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("forecolor") after
Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandState("forecolor") after
-Fail [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("forecolor") after
+Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("forecolor") after
Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before
@@ -797,7 +797,7 @@ Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]b
Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") before
Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("forecolor") after
Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("forecolor") after
-Fail [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") after
+Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") after
Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index 62d26e965af..b58fb4b7bc1 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: OK
Found 1000 tests
-988 Pass
-12 Fail
+993 Pass
+7 Fail
Pass [["forecolor","#0000FF"],["justifyright",""],["inserttext","a"]] "foo[]bar" queryCommandValue("inserttext") after
Pass [["forecolor","#0000FF"],["outdent",""]] "foo[]bar": execCommand("forecolor", false, "#0000FF") return value
Pass [["forecolor","#0000FF"],["outdent",""]] "foo[]bar": execCommand("outdent", false, "") return value
@@ -342,7 +342,7 @@ Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandS
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("hilitecolor") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("hilitecolor") after
-Fail [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("hilitecolor") after
+Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -353,13 +353,13 @@ Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return value
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return value
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" checks for modifications to non-editable content
-Fail [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
+Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" compare innerHTML
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("hilitecolor") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("hilitecolor") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("hilitecolor") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("hilitecolor") after
-Fail [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("hilitecolor") after
+Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before
Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before
@@ -420,7 +420,7 @@ Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandS
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("hilitecolor") before
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandState("hilitecolor") after
-Fail [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("hilitecolor") after
+Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before
@@ -437,7 +437,7 @@ Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("hilitecolor") before
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("hilitecolor") after
-Fail [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("hilitecolor") after
+Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("hilitecolor") after
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") before
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before
Pass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before