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.cppindex 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.txtindex 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: OKFound 138 tests-108 Pass-30 Fail+112 Pass+26 FailPass <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></dPass <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></dPass <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.txtindex 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: OKFound 138 tests-108 Pass-30 Fail+112 Pass+26 FailPass <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.txtindex 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: OKFound 138 tests-108 Pass-30 Fail+112 Pass+26 FailPass <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: OKFound 1000 tests-966 Pass-34 Fail+972 Pass+28 FailPass [["bold",""],["inserttext","a"]] "foo[]bar": execCommand("bold", false, "") return valuePass [["bold",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return valuePass [["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") beforePass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("bold") beforePass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("bold") after-Fail [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("bold") after+Pass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("bold") afterPass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("bold") afterPass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["bold",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before@@ -318,7 +318,7 @@ Pass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryComPass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") beforePass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") beforePass [["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") afterPass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") afterPass [["bold",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["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") beforePass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("bold") beforePass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("bold") after-Fail [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandState("bold") after+Pass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandState("bold") afterPass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("bold") afterPass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["bold",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before@@ -396,7 +396,7 @@ Pass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryComPass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("bold") beforePass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") beforePass [["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") afterPass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("bold") afterPass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["bold",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before@@ -941,7 +941,7 @@ Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("itaPass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("italic") beforePass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("italic") beforePass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("italic") after-Fail [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("italic") after+Pass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("italic") afterPass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("italic") afterPass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["italic",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before@@ -958,7 +958,7 @@ Pass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCPass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") beforePass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") beforePass [["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") afterPass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") afterPass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["italic",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") 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 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: OKFound 1000 tests-967 Pass-33 Fail+973 Pass+27 FailPass [["italic",""],["insertorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertorderedlist") afterPass [["italic",""],["insertorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("inserttext") beforePass [["italic",""],["insertorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandState("inserttext") before@@ -19,7 +19,7 @@ Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("itaPass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("italic") beforePass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("italic") beforePass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("italic") after-Fail [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("italic") after+Pass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("italic") afterPass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("italic") afterPass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["italic",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before@@ -36,7 +36,7 @@ Pass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCPass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("italic") beforePass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") beforePass [["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") afterPass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("italic") afterPass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["italic",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before@@ -581,7 +581,7 @@ Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndetePass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("strikethrough") beforePass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("strikethrough") beforePass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("strikethrough") after-Fail [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("strikethrough") after+Pass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("strikethrough") afterPass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("strikethrough") afterPass [["strikethrough",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["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") beforePass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") beforePass [["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") afterPass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") afterPass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["strikethrough",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before@@ -659,7 +659,7 @@ Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandIndetePass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandState("strikethrough") beforePass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("strikethrough") beforePass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("strikethrough") after-Fail [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandState("strikethrough") after+Pass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandState("strikethrough") afterPass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("strikethrough") afterPass [["strikethrough",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["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") beforePass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") beforePass [["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") afterPass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("strikethrough") afterPass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["strikethrough",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") 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 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: OKFound 1000 tests-981 Pass-19 Fail+991 Pass+9 FailFail [["subscript",""],["formatblock","<div>"],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") afterPass [["subscript",""],["formatblock","<div>"],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") afterPass [["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") beforePass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("subscript") beforePass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("subscript") after-Fail [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("subscript") after+Pass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("subscript") afterPass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("subscript") afterPass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["subscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before@@ -233,12 +233,12 @@ Pass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": exPass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return valuePass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return valuePass [["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 innerHTMLPass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("subscript") beforePass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") beforePass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") beforePass [["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") afterPass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") afterPass [["subscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["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") beforePass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("subscript") beforePass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("subscript") after-Fail [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("subscript") after+Pass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("subscript") afterPass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("subscript") afterPass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["subscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before@@ -316,7 +316,7 @@ Pass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" quePass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("subscript") beforePass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") beforePass [["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") afterPass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("subscript") afterPass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["subscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") before@@ -861,7 +861,7 @@ Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndetermPass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("superscript") beforePass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("superscript") beforePass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("superscript") after-Fail [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("superscript") after+Pass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("superscript") afterPass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("superscript") afterPass [["superscript",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["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 valuePass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return valuePass [["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 innerHTMLPass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("superscript") beforePass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") beforePass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") beforePass [["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") afterPass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") afterPass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["superscript",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") before@@ -939,7 +939,7 @@ Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndetermPass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("superscript") beforePass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("superscript") beforePass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("superscript") after-Fail [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("superscript") after+Pass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("superscript") afterPass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("superscript") afterPass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["superscript",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before@@ -956,7 +956,7 @@ Pass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" qPass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("superscript") beforePass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") beforePass [["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") afterPass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("superscript") afterPass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["superscript",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") 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 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: OKFound 1000 tests-978 Pass-22 Fail+982 Pass+18 FailPass [["superscript",""],["insertunorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandState("inserttext") beforePass [["superscript",""],["insertunorderedlist",""],["inserttext","a"]] "foo[]bar" queryCommandValue("inserttext") beforePass [["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") beforePass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("underline") beforePass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("underline") after-Fail [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("underline") after+Pass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("underline") afterPass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandValue("underline") afterPass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["underline",""],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") before@@ -518,7 +518,7 @@ Pass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" quePass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") beforePass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") beforePass [["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") afterPass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") afterPass [["underline",""],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["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") beforePass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("underline") beforePass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("underline") after-Fail [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandState("underline") after+Pass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandState("underline") afterPass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandValue("underline") afterPass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["underline",""],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") before@@ -596,7 +596,7 @@ Pass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" quePass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("underline") beforePass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") beforePass [["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") afterPass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("underline") afterPass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["underline",""],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") 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 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: OKFound 1000 tests-988 Pass-12 Fail+994 Pass+6 FailPass [["backcolor","#00FFFF"],["indent",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("indent") beforePass [["backcolor","#00FFFF"],["indent",""],["inserttext","a"]] "foo[]bar" queryCommandState("indent") beforePass [["backcolor","#00FFFF"],["indent",""],["inserttext","a"]] "foo[]bar" queryCommandValue("indent") before@@ -142,7 +142,7 @@ Pass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandStaPass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("backcolor") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("backcolor") afterPass [["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") afterPass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -153,13 +153,13 @@ Pass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bPass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return valuePass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return valuePass [["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 innerHTMLPass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("backcolor") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("backcolor") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("backcolor") afterPass [["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") afterPass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["backcolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -220,7 +220,7 @@ Pass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandStaPass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("backcolor") beforePass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("backcolor") afterPass [["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") afterPass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["backcolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before@@ -237,7 +237,7 @@ Pass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bPass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("backcolor") beforePass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("backcolor") afterPass [["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") afterPass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["backcolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before@@ -793,7 +793,7 @@ Pass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttexPass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("insertlinebreak", false, "") return valuePass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return valuePass [["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 innerHTMLPass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("createlink") beforePass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("createlink") beforePass [["createlink","http://www.google.com/"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("createlink") 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 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: OKFound 1000 tests-971 Pass-29 Fail+975 Pass+25 FailPass [["createlink","http://www.google.com/"],["justifyfull",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("inserttext") afterPass [["createlink","http://www.google.com/"],["justifyfull",""],["inserttext","a"]] "foo[]bar" queryCommandState("inserttext") afterPass [["createlink","http://www.google.com/"],["justifyfull",""],["inserttext","a"]] "foo[]bar" queryCommandValue("inserttext") after@@ -422,7 +422,7 @@ Pass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandSPass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontname") beforePass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("fontname") afterPass [["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") afterPass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["fontname","sans-serif"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["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") beforePass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontname") afterPass [["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") afterPass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["fontname","sans-serif"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -500,7 +500,7 @@ Pass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandSPass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontname") beforePass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("fontname") afterPass [["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") afterPass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["fontname","sans-serif"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["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") beforePass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontname") afterPass [["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") afterPass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["fontname","sans-serif"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") 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 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: OKFound 1000 tests-964 Pass-36 Fail+972 Pass+28 FailPass [["fontsize","4"],["inserthtml","ab<b>c</b>d"],["inserttext","a"]] "foo[]bar" queryCommandValue("inserthtml") beforePass [["fontsize","4"],["inserthtml","ab<b>c</b>d"],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("inserthtml") afterPass [["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("fonPass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("fontsize") beforePass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("fontsize") afterPass [["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") afterPass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["fontsize","4"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -79,7 +79,7 @@ Pass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" quePass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") beforePass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontsize") afterPass [["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") afterPass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["fontsize","4"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -140,7 +140,7 @@ Pass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandState("fonPass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandValue("fontsize") beforePass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("fontsize") afterPass [["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") afterPass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["fontsize","4"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before@@ -157,7 +157,7 @@ Pass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" quePass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("fontsize") beforePass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("fontsize") afterPass [["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") afterPass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["fontsize","4"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before@@ -702,7 +702,7 @@ Pass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandStaPass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("forecolor") beforePass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("forecolor") afterPass [["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") afterPass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["forecolor","#0000FF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -719,7 +719,7 @@ Pass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bPass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") beforePass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("forecolor") afterPass [["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") afterPass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["forecolor","#0000FF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -780,7 +780,7 @@ Pass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandStaPass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("forecolor") beforePass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("forecolor") afterPass [["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") afterPass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["forecolor","#0000FF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("insertparagraph") before@@ -797,7 +797,7 @@ Pass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bPass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("forecolor") beforePass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("forecolor") afterPass [["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") afterPass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["forecolor","#0000FF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") 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 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: OKFound 1000 tests-988 Pass-12 Fail+993 Pass+7 FailPass [["forecolor","#0000FF"],["justifyright",""],["inserttext","a"]] "foo[]bar" queryCommandValue("inserttext") afterPass [["forecolor","#0000FF"],["outdent",""]] "foo[]bar": execCommand("forecolor", false, "#0000FF") return valuePass [["forecolor","#0000FF"],["outdent",""]] "foo[]bar": execCommand("outdent", false, "") return value@@ -342,7 +342,7 @@ Pass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandSPass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandValue("hilitecolor") beforePass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("hilitecolor") afterPass [["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") afterPass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["hilitecolor","#00FFFF"],["insertlinebreak",""]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["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 valuePass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar": execCommand("inserttext", false, "a") return valuePass [["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 innerHTMLPass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("hilitecolor") beforePass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("hilitecolor") beforePass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("hilitecolor") beforePass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("hilitecolor") afterPass [["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") afterPass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertlinebreak") beforePass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertlinebreak") beforePass [["hilitecolor","#00FFFF"],["insertlinebreak",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertlinebreak") before@@ -420,7 +420,7 @@ Pass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandSPass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandValue("hilitecolor") beforePass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("hilitecolor") afterPass [["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") afterPass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["hilitecolor","#00FFFF"],["insertparagraph",""]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["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") beforePass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("hilitecolor") afterPass [["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") afterPass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandIndeterm("insertparagraph") beforePass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandState("insertparagraph") beforePass [["hilitecolor","#00FFFF"],["insertparagraph",""],["inserttext","a"]] "foo[]bar" queryCommandValue("insertparagraph") before