Truly independent web browser
LibWeb: Rebalance white-space in one Text node when typing and deleting
Andreas Kling9d82cfc1796d
diff --git a/Libraries/LibWeb/Editing/Commands.cpp b/Libraries/LibWeb/Editing/Commands.cppindex a4b0ee281d4..914ce450cfb 100644--- a/Libraries/LibWeb/Editing/Commands.cpp+++ b/Libraries/LibWeb/Editing/Commands.cpp@@ -33,6 +33,7 @@#include <LibWeb/HTML/Scripting/Environments.h>#include <LibWeb/Layout/Node.h>#include <LibWeb/Namespace.h>+#include <LibWeb/Selection/CaretNavigation.h>#include <LibWeb/Selection/SelectionModifier.h>#include <LibWeb/TrustedTypes/RequireTrustedTypesForDirective.h>#include <LibWeb/TrustedTypes/TrustedTypePolicy.h>@@ -154,6 +155,190 @@ Utf16String command_default_paragraph_separator_value(DOM::Document const& documreturn document.default_single_line_container_name().to_utf16_string();}+// Returns the Text node that follows text in tree order within block, if only inline elements are between them.+static GC::Ptr<DOM::Text> next_text_in_inline_content(DOM::Text& text, DOM::Node& block)+{+ for (auto* node = text.next_in_pre_order(&block); node; node = node->next_in_pre_order(&block)) {+ if (auto* next_text = as_if<DOM::Text>(*node))+ return next_text;+ if (!is<DOM::Element>(*node) || !is_inline_node(*node) || editing_ignores_content(*node))+ return {};+ }+ return {};+}++// Returns the Text node that precedes text in tree order within block, if only inline elements are between them.+static GC::Ptr<DOM::Text> previous_text_in_inline_content(DOM::Text& text, DOM::Node& block)+{+ for (auto* node = text.previous_in_pre_order(); node && node != █ node = node->previous_in_pre_order()) {+ if (auto* previous_text = as_if<DOM::Text>(*node))+ return previous_text;+ // NB: Inclusive ancestors of text precede it in tree order but are not between it and the previous Text node.+ if (node->is_inclusive_ancestor_of(text))+ continue;+ if (!is<DOM::Element>(*node) || !is_inline_node(*node) || editing_ignores_content(*node))+ return {};+ }+ return {};+}++// INTEROP: When the user deletes a character in text, browsers delete the content between the caret and the adjacent+// visible caret position, which includes collapsed white-space. They then rebalance the white-space after+// the deletion only in one Text node, instead of canonicalizing the white-space sequence across nodes. See the+// INTEROP note at rebalance_whitespace_in_text_node(). This handles the deletions in collapsible white-space+// that do not leave an element empty. It returns false if it did not handle the deletion.+static bool delete_character_in_text(DOM::Document& document, Selection& selection, Web::Selection::SelectionDirection direction)+{+ auto range = selection.range();+ if (!range || !range->collapsed())+ return false;++ // NB: See the INTEROP note at remove_collapsed_spaces_in_text_node().+ if (auto* text = as_if<DOM::Text>(*range->start_container())) {+ auto offset = offset_after_removing(remove_collapsed_spaces_in_text_node(*text, range->start_offset()), range->start_offset());+ if (offset != range->start_offset())+ MUST(selection.collapse(*text, offset));+ range = selection.range();+ }++ Web::Selection::CaretNavigator navigator(document);+ Web::Selection::CaretLocation caret { range->start_container(), range->start_offset(), selection.focus_affinity() };+ auto destination = navigator.move(caret, Web::Selection::SelectionAlteration::Move, direction, Web::Selection::SelectionGranularity::Character);+ if (!destination.has_value())+ return false;++ DOM::BoundaryPoint start { range->start_container(), range->start_offset() };+ DOM::BoundaryPoint end { destination->node, static_cast<WebIDL::UnsignedLong>(destination->offset) };+ if (direction == Web::Selection::SelectionDirection::Backward)+ swap(start, end);+ if (DOM::position_of_boundary_point_relative_to_other_boundary_point(start, end) != DOM::RelativeBoundaryPointPosition::Before)+ return false;++ auto* start_text = as_if<DOM::Text>(*start.node);+ auto* end_text = as_if<DOM::Text>(*end.node);+ if (!start_text || !end_text)+ return false;+ auto block = block_node_of_node(*start_text);+ if (!block || block != block_node_of_node(*end_text))+ return false;++ // NB: Start from the upstream equivalent of the start, the end of the preceding Text node.+ if (start.offset == 0) {+ if (auto previous_text = previous_text_in_inline_content(*start_text, *block)) {+ start_text = previous_text.ptr();+ start = { *start_text, static_cast<WebIDL::UnsignedLong>(start_text->length()) };+ }+ }++ // Collect the Text nodes from start to end, which must only have inline elements between them.+ GC::RootVector<GC::Ref<DOM::Text>> texts;+ texts.append(*start_text);+ while (texts.last().ptr() != end_text) {+ auto next_text = next_text_in_inline_content(*texts.last(), *block);+ if (!next_text)+ return false;+ texts.append(*next_text);+ }++ // NB: Leave deletions in links to the steps below, which handle the link boundaries.+ for (auto text : texts) {+ if (!text->is_editable() || !text->parent() || text->first_ancestor_of_type<HTML::HTMLAnchorElement>()+ || text_preserves_spaces(*text))+ return false;+ }++ // Only handle blocks that contain nothing but text and inline elements that are not empty, and that keep some+ // visible text.+ bool block_has_only_inline_content = true;+ bool keeps_visible_text = false;+ block->for_each_in_subtree([&](GC::Ref<DOM::Node> descendant) {+ if (auto* text = as_if<DOM::Text>(*descendant)) {+ if (keeps_visible_text)+ return TraversalDecision::Continue;+ auto data = text->data().utf16_view();+ size_t deleted_start = 0;+ size_t deleted_end = 0;+ if (text == start_text || text == end_text) {+ deleted_start = text == start_text ? start.offset : 0;+ deleted_end = text == end_text ? end.offset : data.length_in_code_units();+ } else if (texts.contains_slow(GC::Ref { *text })) {+ deleted_end = data.length_in_code_units();+ }+ for (size_t offset = 0; offset < data.length_in_code_units() && !keeps_visible_text; ++offset) {+ if (offset >= deleted_start && offset < deleted_end)+ continue;+ auto code_unit = data.code_unit_at(offset);+ if (code_unit != ' ' && code_unit != '\t' && code_unit != '\n' && code_unit != '\r')+ keeps_visible_text = true;+ }+ return TraversalDecision::Continue;+ }+ if (!is<DOM::Element>(*descendant) || !is_inline_node(descendant) || editing_ignores_content(*descendant)+ || !descendant->has_children()) {+ block_has_only_inline_content = false;+ return TraversalDecision::Break;+ }+ return TraversalDecision::Continue;+ });+ if (!block_has_only_inline_content || !keeps_visible_text)+ return false;++ // Do not handle deletions that leave an element without children.+ for (auto text : texts) {+ auto delete_start = text.ptr() == start_text ? start.offset : 0;+ auto delete_end = text.ptr() == end_text ? end.offset : text->length();+ if (delete_start == 0 && delete_end == text->length() && text->parent()->child_count() == 1)+ return false;+ }++ // NB: See the INTEROP note at remove_collapsed_spaces_in_text_node().+ auto removed_offsets = remove_collapsed_spaces_in_text_node(*start_text, start.offset);+ if (end_text == start_text)+ end.offset = offset_after_removing(removed_offsets, end.offset);+ start.offset = offset_after_removing(removed_offsets, start.offset);+ removed_offsets = remove_collapsed_spaces_in_text_node(*end_text, end.offset);+ if (end_text == start_text)+ start.offset = offset_after_removing(removed_offsets, start.offset);+ end.offset = offset_after_removing(removed_offsets, end.offset);+ if (end.offset == end_text->length()) {+ if (auto next_text = next_text_in_inline_content(*end_text, *block))+ (void)remove_collapsed_spaces_in_text_node(*next_text, 0);+ }++ for (auto text : texts) {+ auto delete_start = text.ptr() == start_text ? start.offset : 0;+ auto delete_end = text.ptr() == end_text ? end.offset : text->length();+ if (delete_end > delete_start)+ MUST(delete_data(text, delete_start, delete_end - delete_start));+ if (text.ptr() != start_text && text->length() == 0)+ remove_node(text);+ }++ // Rebalance the white-space at the downstream equivalent of the deletion point.+ GC::Ref<DOM::Text> rebalanced_text = *start_text;+ size_t rebalanced_offset = start.offset;+ if (start.offset == start_text->length()) {+ for (auto next_text = next_text_in_inline_content(*start_text, *block); next_text; next_text = next_text_in_inline_content(*next_text, *block)) {+ if (next_text->length() == 0)+ continue;+ rebalanced_text = *next_text;+ rebalanced_offset = 0;+ break;+ }+ }+ rebalance_whitespace_in_text_node(rebalanced_text, rebalanced_offset);++ if (start_text->length() == 0 && start_text->parent()) {+ auto parent = GC::Ref { *start_text->parent() };+ auto index = start_text->index();+ remove_node(*start_text);+ MUST(selection.collapse(parent, index));+ } else {+ MUST(selection.collapse(*start_text, start.offset));+ }+ return true;+}+// https://w3c.github.io/editing/docs/execCommand/#the-delete-commandbool command_delete_action(DOM::Document& document, Utf16View){@@ -165,6 +350,10 @@ bool command_delete_action(DOM::Document& document, Utf16View)return true;}+ // NB: See the INTEROP note at delete_character_in_text().+ if (delete_character_in_text(document, selection, Web::Selection::SelectionDirection::Backward))+ return true;+// 2. Canonicalize whitespace at the active range's start.canonicalize_whitespace(active_range.start());@@ -946,6 +1135,10 @@ bool command_forward_delete_action(DOM::Document& document, Utf16View)return true;}+ // NB: See the INTEROP note at delete_character_in_text().+ if (delete_character_in_text(document, selection, Web::Selection::SelectionDirection::Forward))+ return true;+// 2. Canonicalize whitespace at the active range's start.canonicalize_whitespace(active_range.start());@@ -1697,6 +1890,11 @@ bool command_insert_paragraph_action(DOM::Document& document, Utf16View)// NOTE: node is set in step 2auto offset = active_range->start_offset();+ // NB: See the INTEROP note at remove_collapsed_spaces_in_text_node(). Browsers remove the spaces that are not+ // rendered before they split the line.+ if (auto* text = as_if<DOM::Text>(*node))+ offset = static_cast<WebIDL::UnsignedLong>(offset_after_removing(remove_collapsed_spaces_in_text_node(*text, offset), offset));+// 4. If node is a Text node, and offset is neither 0 nor the length of node, call splitText(offset) on node.if (is<DOM::Text>(*node) && offset != 0 && offset != node->length())MUST(split_text(static_cast<DOM::Text&>(*node), offset));@@ -2081,6 +2279,33 @@ bool command_insert_paragraph_action(DOM::Document& document, Utf16View)}}+ // INTEROP: Browsers keep the white-space at the edges of the two lines visible. They remove white-space that would+ // collapse in a line which has nothing else that is visible, and rebalance the white-space at the end of+ // container and at the start of new container. See the INTEROP note at+ // rebalance_whitespace_in_text_node().+ for (GC::Ref<DOM::Node> line : { GC::Ref<DOM::Node> { *container }, GC::Ref<DOM::Node> { *new_container } }) {+ if (has_visible_children(line))+ continue;+ GC::RootVector<GC::Ref<DOM::Node>> collapsed_white_space;+ line->for_each_child([&](GC::Ref<DOM::Node> child) {+ if (is_whitespace_node(child) && child->is_editable())+ collapsed_white_space.append(child);+ return IterationDecision::Continue;+ });+ for (auto child : collapsed_white_space)+ remove_node(child);+ }+ GC::Ptr<DOM::Node> last_descendant = container->last_child();+ while (last_descendant && last_descendant->last_child())+ last_descendant = last_descendant->last_child();+ if (auto* text = as_if<DOM::Text>(last_descendant.ptr()))+ rebalance_whitespace_in_text_node(*text, text->length());+ GC::Ptr<DOM::Node> first_descendant = new_container->first_child();+ while (first_descendant && first_descendant->first_child())+ first_descendant = first_descendant->first_child();+ if (auto* text = as_if<DOM::Text>(first_descendant.ptr()))+ rebalance_whitespace_in_text_node(*text, 0);+// 30. While container's lastChild is a prohibited paragraph child, set container to its lastChild.while (container->last_child() && is_prohibited_paragraph_child(*container->last_child()))container = container->last_child();@@ -2195,12 +2420,36 @@ static bool insert_text(DOM::Document& document, Utf16View value, InsertTextCont// 11. Canonicalize whitespace at (node, offset).// INTEROP: Inserting a non-space character does not normalize an untouched whitespace run after the caret.- if (!is<DOM::Text>(*node) || value == " "sv+ // NB: See the INTEROP note at rebalance_whitespace_in_text_node(). When typing, browsers only rebalance the+ // whitespace around the inserted text after inserting it. Keep using the steps below next to links, which+ // handle the link boundaries.+ auto is_next_to_link = [&] {+ if (is<HTML::HTMLAnchorElement>(*node) || node->first_ancestor_of_type<HTML::HTMLAnchorElement>())+ return true;+ DOM::Node* previous = nullptr;+ DOM::Node* next = nullptr;+ if (is<DOM::Text>(*node)) {+ previous = node->previous_sibling();+ next = node->next_sibling();+ } else {+ previous = offset > 0 ? node->child_at_index(offset - 1) : nullptr;+ next = node->child_at_index(offset);+ }+ return is<HTML::HTMLAnchorElement>(previous) || is<HTML::HTMLAnchorElement>(next);+ };+ auto rebalances_whitespace = !replaces_selection && context == InsertTextContext::Typing && !is_next_to_link();+ auto follows_or_inserts_space = !is<DOM::Text>(*node) || value == " "sv|| (offset == 0 ? as<DOM::Text>(*node).data().starts_with(' '): as<DOM::Text>(*node).data().code_unit_at(offset - 1) == u' '- || as<DOM::Text>(*node).data().code_unit_at(offset - 1) == u'\u00a0'))+ || as<DOM::Text>(*node).data().code_unit_at(offset - 1) == u'\u00a0');+ if (!rebalances_whitespace && follows_or_inserts_space)canonicalize_whitespace({ node, offset });+ // NB: See the INTEROP note at remove_collapsed_spaces_in_text_node(). Browsers remove the collapsed spaces when+ // typing a space.+ if (auto* text = as_if<DOM::Text>(*node); rebalances_whitespace && text && (value.code_unit_at(0) == ' ' || value.code_unit_at(0) == u'\u00A0'))+ MUST(selection.collapse(*text, offset_after_removing(remove_collapsed_spaces_in_text_node(*text, offset), offset)));+// 12. Let (node, offset) be the active range's start.range = *active_range(document);node = range->start_container();@@ -2286,8 +2535,20 @@ static bool insert_text(DOM::Document& document, Utf16View value, InsertTextCont// 15. Restore states and values from overrides.restore_states_and_values(document, overrides);+ // NB: See the INTEROP note at rebalance_whitespace_in_text_node().+ if (rebalances_whitespace) {+ auto inserted_range = active_range(document);+ if (auto* text = as_if<DOM::Text>(*inserted_range->start_container()); text && inserted_range->end_container().ptr() == text) {+ auto start_offset = inserted_range->start_offset();+ auto end_offset = inserted_range->end_offset();+ rebalance_whitespace_in_text_node(*text, end_offset);+ if (auto code_unit = value.code_unit_at(0); code_unit != ' ' && code_unit != u'\u00A0')+ rebalance_whitespace_in_text_node(*text, start_offset);+ }+ }+// 16. Canonicalize whitespace at the active range's start, with fix collapsed space false.- if (replaces_selection)+ else if (replaces_selection)canonicalize_whitespace_after_selection_replacement(active_range(document)->start());elsecanonicalize_whitespace(active_range(document)->start(), false);@@ -2295,7 +2556,7 @@ static bool insert_text(DOM::Document& document, Utf16View value, InsertTextCont// 17. Canonicalize whitespace at the active range's end, with fix collapsed space false.if (replaces_selection)canonicalize_whitespace_after_selection_replacement(active_range(document)->end());- else if (value == " "sv)+ else if (!rebalances_whitespace && value == " "sv)canonicalize_whitespace(active_range(document)->end(), false);// 18. If value is a space character, autolink the active range's start.diff --git a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp b/Libraries/LibWeb/Editing/Internal/Algorithms.cppindex 38c5bb5b018..831ca7c179a 100644--- a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp+++ b/Libraries/LibWeb/Editing/Internal/Algorithms.cpp@@ -730,6 +730,149 @@ void canonicalize_whitespace_after_node_insertion(DOM::BoundaryPoint boundary)canonicalize_whitespace_impl(boundary, false, PreserveLeadingSpaceAcrossNodeBoundary::Yes);}+// Whether the spaces in text are preserved, so that they do not collapse.+bool text_preserves_spaces(DOM::Text& text)+{+ if (!text.parent())+ return false;+ auto white_space_collapse = resolved_keyword(*text.parent(), CSS::PropertyID::WhiteSpaceCollapse);+ return white_space_collapse.has_value()+ && first_is_one_of(*white_space_collapse, CSS::Keyword::Preserve, CSS::Keyword::PreserveSpaces, CSS::Keyword::BreakSpaces);+}++// INTEROP: Before inserting or deleting text, browsers remove the collapsible spaces around the caret that are not+// rendered: the spaces that follow another space, and the spaces at the start or the end of a line. This does+// this for the whitespace sequence around offset in text, and returns the offsets of the removed spaces.+Vector<size_t> remove_collapsed_spaces_in_text_node(DOM::Text& text, size_t offset)+{+ if (!text.is_editable() || !text.parent() || text_preserves_spaces(text))+ return {};++ auto is_whitespace = [](char16_t code_unit) { return code_unit == ' ' || code_unit == u'\u00A0'; };+ auto data = text.data();+ auto length = data.length_in_code_units();+ if (offset > length)+ return {};++ auto upstream = offset;+ while (upstream > 0 && is_whitespace(data.code_unit_at(upstream - 1)))+ --upstream;+ auto downstream = offset;+ while (downstream < length && is_whitespace(data.code_unit_at(downstream)))+ ++downstream;+ if (upstream == downstream)+ return {};++ // Whether the sequence follows a collapsible space in a preceding Text node of the same line.+ auto follows_collapsible_space = [&] {+ auto block = block_node_of_node(text);+ for (auto* node = text.previous_in_pre_order(); node && node != block.ptr(); node = node->previous_in_pre_order()) {+ if (node->is_inclusive_ancestor_of(text))+ continue;+ if (auto* previous_text = as_if<DOM::Text>(*node)) {+ if (previous_text->length() == 0)+ continue;+ return previous_text->data().code_unit_at(previous_text->length() - 1) == ' ';+ }+ if (!is<DOM::Element>(*node) || !is_inline_node(*node) || editing_ignores_content(*node))+ return false;+ }+ return false;+ };++ // NB: The trailing spaces of the sequence collapse if it is at the end of a line.+ auto trailing_spaces_start = downstream;+ if (downstream == length && precedes_a_line_break(text)) {+ while (trailing_spaces_start > upstream && data.code_unit_at(trailing_spaces_start - 1) == ' ')+ --trailing_spaces_start;+ }++ Vector<size_t> collapsed_offsets;+ auto previous_collapses = upstream == 0 && (follows_a_line_break(text) || follows_collapsible_space());+ for (auto index = upstream; index < downstream; ++index) {+ auto code_unit = data.code_unit_at(index);+ if (code_unit == ' ' && (previous_collapses || index >= trailing_spaces_start)) {+ collapsed_offsets.append(index);+ continue;+ }+ previous_collapses = code_unit == ' ';+ }++ // NB: Delete each run of adjacent collapsed spaces at once, from the end, so that the offsets stay valid.+ for (size_t run_end = collapsed_offsets.size(); run_end > 0;) {+ auto run_start = run_end - 1;+ while (run_start > 0 && collapsed_offsets[run_start - 1] + 1 == collapsed_offsets[run_start])+ --run_start;+ MUST(delete_data(text, collapsed_offsets[run_start], run_end - run_start));+ run_end = run_start;+ }+ return collapsed_offsets;+}++size_t offset_after_removing(Vector<size_t> const& removed_offsets, size_t offset)+{+ size_t removed_before_offset = 0;+ for (auto removed_offset : removed_offsets) {+ if (removed_offset < offset)+ ++removed_before_offset;+ }+ return offset - removed_before_offset;+}++// INTEROP: After inserting or deleting text, browsers do not canonicalize a whitespace sequence across node boundaries.+// They rebalance the whitespace around offset within its Text node only. The sequence alternates between+// non-breaking spaces and spaces, a sequence of two or more starts with a non-breaking space, and there is a+// non-breaking space at the start of the Text node and at its end, unless a sibling Text node that starts with+// visible text follows it.+void rebalance_whitespace_in_text_node(DOM::Text& text, size_t offset)+{+ if (!text.is_editable() || !text.parent() || text_preserves_spaces(text))+ return;++ auto is_whitespace = [](char16_t code_unit) { return code_unit == ' ' || code_unit == u'\u00A0'; };+ auto data = text.data();+ auto length = data.length_in_code_units();+ if (offset > length)+ return;++ auto upstream = offset;+ while (upstream > 0 && is_whitespace(data.code_unit_at(upstream - 1)))+ --upstream;+ auto downstream = offset;+ while (downstream < length && is_whitespace(data.code_unit_at(downstream)))+ ++downstream;+ if (upstream == downstream)+ return;++ auto* next_text = as_if<DOM::Text>(text.next_sibling());+ auto next_text_starts_with_visible_text = next_text && next_text->length() > 0 && !is_whitespace(next_text->data().code_unit_at(0));+ auto starts_with_non_breaking_space = upstream == 0;+ auto ends_with_non_breaking_space = downstream == length && !next_text_starts_with_visible_text;++ char16_t previous = 0;+ for (auto index = upstream; index < downstream; ++index) {+ char16_t replacement;+ if (index == upstream && starts_with_non_breaking_space)+ replacement = u'\u00A0';+ else if (index + 1 == downstream && ends_with_non_breaking_space)+ replacement = u'\u00A0';+ else if (previous == ' ')+ replacement = u'\u00A0';+ else if (previous == u'\u00A0')+ replacement = ' ';+ else if (index + 1 < downstream)+ replacement = u'\u00A0';+ else+ replacement = ' ';+ previous = replacement;++ if (text.data().code_unit_at(index) == replacement)+ continue;+ MUST(insert_data(text, index, Utf16String::from_code_point(replacement)));+ MUST(delete_data(text, index + 1, 1));+ }+}+// https://w3c.github.io/editing/docs/execCommand/#clear-the-valueGC::RootVector<GC::Ref<DOM::Node>> clear_the_value(Utf16FlyString const& command, GC::Ref<DOM::Element> element){diff --git a/Libraries/LibWeb/Editing/Internal/Algorithms.h b/Libraries/LibWeb/Editing/Internal/Algorithms.hindex da25fc5ff7d..97e525a9ca0 100644--- a/Libraries/LibWeb/Editing/Internal/Algorithms.h+++ b/Libraries/LibWeb/Editing/Internal/Algorithms.h@@ -64,6 +64,10 @@ void canonicalize_collapsed_selection_for_editing(Selection&);void canonicalize_whitespace(DOM::BoundaryPoint, bool fix_collapsed_space = true);void canonicalize_whitespace_after_selection_replacement(DOM::BoundaryPoint);void canonicalize_whitespace_after_node_insertion(DOM::BoundaryPoint);+void rebalance_whitespace_in_text_node(DOM::Text&, size_t offset);+Vector<size_t> remove_collapsed_spaces_in_text_node(DOM::Text&, size_t offset);+bool text_preserves_spaces(DOM::Text&);+size_t offset_after_removing(Vector<size_t> const& removed_offsets, size_t offset);bool white_space_is_from_default_style(GC::Ref<DOM::Node>);GC::RootVector<GC::Ref<DOM::Node>> clear_the_value(Utf16FlyString const&, GC::Ref<DOM::Element>);void delete_the_selection(Selection&, bool block_merging = true, bool strip_wrappers = true, Selection::Direction = Selection::Direction::Forwards);diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=normal.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=normal.txtindex 106c5f9fb0b..b6f66d89adb 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=normal.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=normal.txt@@ -2,8 +2,7 @@ Harness status: OKFound 16 tests-15 Pass-1 Fail+16 PassPass Typing X when <div contenteditable style="white-space:normal">{}<br></div>Pass Typing space when <div contenteditable style="white-space:normal">{}<br></div>Pass Typing X when <div contenteditable style="white-space:normal">abc[]<br></div>@@ -15,7 +14,7 @@ Pass Typing space when <div contenteditable style="white-space:normal">ab[]c<br>Pass Typing X when <div contenteditable style="white-space:normal"><b>{}<br></b></div>Pass Typing space when <div contenteditable style="white-space:normal"><b>{}<br></b></div>Pass Typing X when <div contenteditable style="white-space:normal">abc[]<b><br></b></div>-Fail Typing space when <div contenteditable style="white-space:normal">abc[]<b><br></b></div>+Pass Typing space when <div contenteditable style="white-space:normal">abc[]<b><br></b></div>Pass Typing X when <div contenteditable style="white-space:normal">abc<b>{}<br></b></div>Pass Typing space when <div contenteditable style="white-space:normal">abc<b>{}<br></b></div>Pass Typing X when <div contenteditable style="white-space:normal">abc []<br></div>diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=pre-line.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=pre-line.txtindex cf9621c5619..6cb12da5c5a 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=pre-line.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/inserttext-last-mutation@whiteSpace=pre-line.txt@@ -2,8 +2,7 @@ Harness status: OKFound 16 tests-15 Pass-1 Fail+16 PassPass Typing X when <div contenteditable style="white-space:pre-line">{}<br></div>Pass Typing space when <div contenteditable style="white-space:pre-line">{}<br></div>Pass Typing X when <div contenteditable style="white-space:pre-line">abc[]<br></div>@@ -15,7 +14,7 @@ Pass Typing space when <div contenteditable style="white-space:pre-line">ab[]c<bPass Typing X when <div contenteditable style="white-space:pre-line"><b>{}<br></b></div>Pass Typing space when <div contenteditable style="white-space:pre-line"><b>{}<br></b></div>Pass Typing X when <div contenteditable style="white-space:pre-line">abc[]<b><br></b></div>-Fail Typing space when <div contenteditable style="white-space:pre-line">abc[]<b><br></b></div>+Pass Typing space when <div contenteditable style="white-space:pre-line">abc[]<b><br></b></div>Pass Typing X when <div contenteditable style="white-space:pre-line">abc<b>{}<br></b></div>Pass Typing space when <div contenteditable style="white-space:pre-line">abc<b>{}<br></b></div>Pass Typing X when <div contenteditable style="white-space:pre-line">abc []<br></div>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 152fae3f000..678a4044636 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-989 Pass-11 Fail+992 Pass+8 FailPass [["delete",""]] "foo[]bar": execCommand("delete", false, "") return valuePass [["delete",""]] "foo[]bar" checks for modifications to non-editable contentPass [["delete",""]] "foo[]bar" compare innerHTML@@ -822,7 +822,7 @@ Pass [["delete",""]] "foo <span> </span>[] bar" queryCommandState("delete")Pass [["delete",""]] "foo <span> </span>[] bar" queryCommandValue("delete") afterPass [["delete",""]] "foo <span> </span> []bar": execCommand("delete", false, "") return valuePass [["delete",""]] "foo <span> </span> []bar" checks for modifications to non-editable content-Fail [["delete",""]] "foo <span> </span> []bar" compare innerHTML+Pass [["delete",""]] "foo <span> </span> []bar" compare innerHTMLPass [["delete",""]] "foo <span> </span> []bar" queryCommandIndeterm("delete") beforePass [["delete",""]] "foo <span> </span> []bar" queryCommandState("delete") beforePass [["delete",""]] "foo <span> </span> []bar" queryCommandValue("delete") before@@ -840,7 +840,7 @@ Pass [["delete",""]] "<b>foo </b> []bar" queryCommandState("delete") afterPass [["delete",""]] "<b>foo </b> []bar" queryCommandValue("delete") afterPass [["delete",""]] "<b>foo </b> []bar": execCommand("delete", false, "") return valuePass [["delete",""]] "<b>foo </b> []bar" checks for modifications to non-editable content-Fail [["delete",""]] "<b>foo </b> []bar" compare innerHTML+Pass [["delete",""]] "<b>foo </b> []bar" compare innerHTMLPass [["delete",""]] "<b>foo </b> []bar" queryCommandIndeterm("delete") beforePass [["delete",""]] "<b>foo </b> []bar" queryCommandState("delete") beforePass [["delete",""]] "<b>foo </b> []bar" queryCommandValue("delete") before@@ -849,7 +849,7 @@ Pass [["delete",""]] "<b>foo </b> []bar" queryCommandState("delete") afterPass [["delete",""]] "<b>foo </b> []bar" queryCommandValue("delete") afterPass [["delete",""]] "<b>foo </b> []bar": execCommand("delete", false, "") return valuePass [["delete",""]] "<b>foo </b> []bar" checks for modifications to non-editable content-Fail [["delete",""]] "<b>foo </b> []bar" compare innerHTML+Pass [["delete",""]] "<b>foo </b> []bar" compare innerHTMLPass [["delete",""]] "<b>foo </b> []bar" queryCommandIndeterm("delete") beforePass [["delete",""]] "<b>foo </b> []bar" queryCommandState("delete") beforePass [["delete",""]] "<b>foo </b> []bar" queryCommandValue("delete") 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 49d33d51434..dec8acb6a9e 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-996 Pass-4 Fail+999 Pass+1 FailPass [["forwarddelete",""]] "foo[] bar" queryCommandIndeterm("forwarddelete") afterPass [["forwarddelete",""]] "foo[] bar" queryCommandState("forwarddelete") afterPass [["forwarddelete",""]] "foo[] bar" queryCommandValue("forwarddelete") after@@ -54,7 +54,7 @@ Pass [["forwarddelete",""]] "foo []<span> </span> bar" queryCommandState("fPass [["forwarddelete",""]] "foo []<span> </span> bar" queryCommandValue("forwarddelete") afterPass [["forwarddelete",""]] "foo <span> </span>[] bar": execCommand("forwarddelete", false, "") return valuePass [["forwarddelete",""]] "foo <span> </span>[] bar" checks for modifications to non-editable content-Fail [["forwarddelete",""]] "foo <span> </span>[] bar" compare innerHTML+Pass [["forwarddelete",""]] "foo <span> </span>[] bar" compare innerHTMLPass [["forwarddelete",""]] "foo <span> </span>[] bar" queryCommandIndeterm("forwarddelete") beforePass [["forwarddelete",""]] "foo <span> </span>[] bar" queryCommandState("forwarddelete") beforePass [["forwarddelete",""]] "foo <span> </span>[] bar" queryCommandValue("forwarddelete") before@@ -63,7 +63,7 @@ Pass [["forwarddelete",""]] "foo <span> </span>[] bar" queryCommandState("fPass [["forwarddelete",""]] "foo <span> </span>[] bar" queryCommandValue("forwarddelete") afterPass [["forwarddelete",""]] "<b>foo[] </b> bar": execCommand("forwarddelete", false, "") return valuePass [["forwarddelete",""]] "<b>foo[] </b> bar" checks for modifications to non-editable content-Fail [["forwarddelete",""]] "<b>foo[] </b> bar" compare innerHTML+Pass [["forwarddelete",""]] "<b>foo[] </b> bar" compare innerHTMLPass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandIndeterm("forwarddelete") beforePass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandState("forwarddelete") beforePass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandValue("forwarddelete") before@@ -81,7 +81,7 @@ Pass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandState("forwarddPass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandValue("forwarddelete") afterPass [["forwarddelete",""]] "<b>foo[] </b> bar": execCommand("forwarddelete", false, "") return valuePass [["forwarddelete",""]] "<b>foo[] </b> bar" checks for modifications to non-editable content-Fail [["forwarddelete",""]] "<b>foo[] </b> bar" compare innerHTML+Pass [["forwarddelete",""]] "<b>foo[] </b> bar" compare innerHTMLPass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandIndeterm("forwarddelete") beforePass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandState("forwarddelete") beforePass [["forwarddelete",""]] "<b>foo[] </b> bar" queryCommandValue("forwarddelete") 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 0d7ec8c2f74..668dd0532c8 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-973 Pass-27 Fail+987 Pass+13 FailPass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div class=a id=x><div class=b id=y>[]foo</div></div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div class=a id=x><div class=b id=y>[]foo</div></div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div class=a id=x><div class=b id=y>[]foo</div></div>" queryCommandValue("insertparagraph") before@@ -205,7 +205,7 @@ Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div contentediPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" queryCommandValue("insertparagraph") before@@ -215,7 +215,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] </div>" queryCommandValue("insertparagraph") before@@ -225,7 +225,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc[] <Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>abc [] </div>" queryCommandValue("insertparagraph") before@@ -255,7 +255,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>[] abc<Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc</div>" queryCommandValue("insertparagraph") before@@ -265,7 +265,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> [] abc<Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc</div>" queryCommandValue("insertparagraph") before@@ -355,7 +355,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contentedPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</div>" queryCommandValue("insertparagraph") before@@ -365,7 +365,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a[] b</dPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</div>" queryCommandValue("insertparagraph") before@@ -375,7 +375,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a []b</dPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandValue("insertparagraph") before@@ -385,7 +385,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandValue("insertparagraph") before@@ -405,7 +405,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandValue("insertparagraph") before@@ -415,7 +415,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandValue("insertparagraph") before@@ -435,7 +435,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a &Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandValue("insertparagraph") before@@ -455,7 +455,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandValue("insertparagraph") before@@ -465,7 +465,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a &Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div>a [] b</div>" 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 290b01f77ca..0e02747db15 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-984 Pass-16 Fail+985 Pass+15 FailPass [["inserttext"," "]] "<b>a</b><i>@</i><u>b</u>{}": execCommand("inserttext", false, " ") return valuePass [["inserttext"," "]] "<b>a</b><i>@</i><u>b</u>{}" checks for modifications to non-editable contentFail [["inserttext"," "]] "<b>a</b><i>@</i><u>b</u>{}" compare innerHTML@@ -15,7 +15,7 @@ Pass [["inserttext"," "]] "<b>a</b><i>@</i><u>b</u>{}" queryCommandState("insertPass [["inserttext"," "]] "<b>a</b><i>@</i><u>b</u>{}" queryCommandValue("inserttext") afterPass [["inserttext"," "]] "a@b<b>[]c</b>": execCommand("inserttext", false, " ") return valuePass [["inserttext"," "]] "a@b<b>[]c</b>" checks for modifications to non-editable content-Fail [["inserttext"," "]] "a@b<b>[]c</b>" compare innerHTML+Pass [["inserttext"," "]] "a@b<b>[]c</b>" compare innerHTMLPass [["inserttext"," "]] "a@b<b>[]c</b>" queryCommandIndeterm("inserttext") beforePass [["inserttext"," "]] "a@b<b>[]c</b>" queryCommandState("inserttext") beforePass [["inserttext"," "]] "a@b<b>[]c</b>" queryCommandValue("inserttext") beforediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/delete.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/delete.tentative.txtindex 24f64fe13ff..589730a5e33 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/delete.tentative.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/delete.tentative.txt@@ -2,8 +2,8 @@ Harness status: OKFound 584 tests-504 Pass-80 Fail+580 Pass+4 FailPass execCommand("delete", false, ""): "a []" (length of whiteSpace sequence: 1)Pass execCommand("delete", false, ""): "a [] " (length of whiteSpace sequence: 2)Pass execCommand("delete", false, ""): "a []" (length of whiteSpace sequence: 2)@@ -489,87 +489,87 @@ Pass execCommand("delete", false, ""): "a |[] b"Pass execCommand("delete", false, ""): "a []| b"Pass execCommand("delete", false, ""): "a |[] b"Pass execCommand("delete", false, ""): "a []| b"-Fail execCommand("delete", false, ""): "a |[] b"-Fail execCommand("delete", false, ""): "a []| b"-Fail execCommand("delete", false, ""): "a | [] b"-Fail execCommand("delete", false, ""): "a | [] b"-Fail execCommand("delete", false, ""): "a | [] b"-Fail execCommand("delete", false, ""): "a | [] b"-Fail execCommand("delete", false, ""): "a | [] b"-Fail execCommand("delete", false, ""): "a | [] b"-Fail execCommand("delete", false, ""): "a |[] b"-Fail execCommand("delete", false, ""): "a b[] | c"-Fail execCommand("delete", false, ""): "a b[] | c"-Fail execCommand("delete", false, ""): "a b[]| c"-Fail execCommand("delete", false, ""): "a b|[] c"-Fail execCommand("delete", false, ""): "a b[]| c"-Fail execCommand("delete", false, ""): "a b|[] c"-Fail execCommand("delete", false, ""): "a |b[] c"-Fail execCommand("delete", false, ""): "a []|b c"-Fail execCommand("delete", false, ""): "a | b[] c"-Fail execCommand("delete", false, ""): "a | |[] c"-Fail execCommand("delete", false, ""): "a | |[] c"-Fail execCommand("delete", false, ""): "a | []| c"-Fail execCommand("delete", false, ""): "a []| | c"-Fail execCommand("delete", false, ""): "a [] | | c"-Fail execCommand("delete", false, ""): "a [] | | c"-Fail execCommand("delete", false, ""): "a [] | | c"-Fail execCommand("delete", false, ""): "a || [] c"+Pass execCommand("delete", false, ""): "a |[] b"+Pass execCommand("delete", false, ""): "a []| b"+Pass execCommand("delete", false, ""): "a | [] b"+Pass execCommand("delete", false, ""): "a | [] b"+Pass execCommand("delete", false, ""): "a | [] b"+Pass execCommand("delete", false, ""): "a | [] b"+Pass execCommand("delete", false, ""): "a | [] b"+Pass execCommand("delete", false, ""): "a | [] b"+Pass execCommand("delete", false, ""): "a |[] b"+Pass execCommand("delete", false, ""): "a b[] | c"+Pass execCommand("delete", false, ""): "a b[] | c"+Pass execCommand("delete", false, ""): "a b[]| c"+Pass execCommand("delete", false, ""): "a b|[] c"+Pass execCommand("delete", false, ""): "a b[]| c"+Pass execCommand("delete", false, ""): "a b|[] c"+Pass execCommand("delete", false, ""): "a |b[] c"+Pass execCommand("delete", false, ""): "a []|b c"+Pass execCommand("delete", false, ""): "a | b[] c"+Pass execCommand("delete", false, ""): "a | |[] c"+Pass execCommand("delete", false, ""): "a | |[] c"+Pass execCommand("delete", false, ""): "a | []| c"+Pass execCommand("delete", false, ""): "a []| | c"+Pass execCommand("delete", false, ""): "a [] | | c"+Pass execCommand("delete", false, ""): "a [] | | c"+Pass execCommand("delete", false, ""): "a [] | | c"+Pass execCommand("delete", false, ""): "a || [] c"Fail execCommand("delete", false, ""): "a ||[] c"-Fail execCommand("delete", false, ""): "a |[]| c"+Pass execCommand("delete", false, ""): "a |[]| c"Fail execCommand("delete", false, ""): "a []|| c"-Fail execCommand("delete", false, ""): "a [] || c"+Pass execCommand("delete", false, ""): "a [] || c"Pass execCommand("delete", false, ""): "<span>abc <span> []def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc <span> []def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc <span> []def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"Pass execCommand("delete", false, ""): "<span>abc <span> []def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc <span> []def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"-Fail execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc <span> []def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc <span>[] def</span></span>"+Pass execCommand("delete", false, ""): "<span>abc []<span> def</span></span>"Pass execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"-Fail execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"-Fail execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"+Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"+Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"Pass execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"-Fail execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"-Fail execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"-Fail execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"+Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"+Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> []def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"+Pass execCommand("delete", false, ""): "<span>abc </span><span> [] def</span>"Pass execCommand("delete", false, ""): "<span>abc </span><span>[] def</span>"Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("delete", false, ""): "<span>abc []</span><span> def</span>"Pass execCommand("delete", false, ""): "<span><span>abc </span> []def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span> []def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span> []def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"Pass execCommand("delete", false, ""): "<span><span>abc </span> []def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span> []def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span></span><span> []def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc </span></span><span>[] def</span>"-Fail execCommand("delete", false, ""): "<span><span>abc []</span></span><span> def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span> []def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span>[] def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span></span><span> []def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc </span></span><span>[] def</span>"+Pass execCommand("delete", false, ""): "<span><span>abc []</span></span><span> def</span>"Pass execCommand("delete", false, ""): "a<span style=white-space:pre;>b[] </span>c"Pass execCommand("delete", false, ""): "a<span style=white-space:pre;>b [] </span>c"Pass execCommand("delete", false, ""): "a<span style=white-space:pre;>b [] </span>c"@@ -577,13 +577,13 @@ Pass execCommand("delete", false, ""): "a<span style=white-space:pre;>b []</spPass execCommand("delete", false, ""): "a<span style=white-space:pre;>b [] </span>"Pass execCommand("delete", false, ""): "a<span style=white-space:pre;> </span>[]b"Fail execCommand("delete", false, ""): "a <span style=white-space:pre;>[] </span>"-Fail execCommand("delete", false, ""): "a []<span style=white-space:pre;> </span>"-Fail execCommand("delete", false, ""): "a [] <span style=white-space:pre;> </span>"-Fail execCommand("delete", false, ""): "a [] <span style=white-space:pre;>b </span>"+Pass execCommand("delete", false, ""): "a []<span style=white-space:pre;> </span>"+Pass execCommand("delete", false, ""): "a [] <span style=white-space:pre;> </span>"+Pass execCommand("delete", false, ""): "a [] <span style=white-space:pre;>b </span>"Fail execCommand("delete", false, ""): "a <span style=white-space:pre;>[] </span>"-Fail execCommand("delete", false, ""): "a []<span style=white-space:pre;> </span>"+Pass execCommand("delete", false, ""): "a []<span style=white-space:pre;> </span>"Pass execCommand("delete", false, ""): "a [] <span style=white-space:pre;> </span>"-Fail execCommand("delete", false, ""): "a [] <span style=white-space:pre;>b </span>"+Pass execCommand("delete", false, ""): "a [] <span style=white-space:pre;>b </span>"Pass execCommand("delete", false, ""): "<span style=white-space:pre;> [] </span> a"Pass execCommand("delete", false, ""): "<span style=white-space:pre;> []</span> a"Pass execCommand("delete", false, ""): "<span style=white-space:pre;> </span>[] a"diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/forwarddelete.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/forwarddelete.tentative.txtindex eca7ecf6d3d..79506ab04eb 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/forwarddelete.tentative.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/forwarddelete.tentative.txt@@ -2,8 +2,8 @@ Harness status: OKFound 602 tests-517 Pass-85 Fail+599 Pass+3 FailPass execCommand("forwarddelete", false, ""): "a[] " (length of whitespace sequence: 1)Pass execCommand("forwarddelete", false, ""): "a[] " (length of whitespace sequence: 2)Pass execCommand("forwarddelete", false, ""): "a [] " (length of whitespace sequence: 2)@@ -487,107 +487,107 @@ Pass execCommand("forwarddelete", false, ""): " Pass execCommand("forwarddelete", false, ""): " [] " (length of whitespace sequence: 11)Pass execCommand("forwarddelete", false, ""): "a [] | b"Pass execCommand("forwarddelete", false, ""): "a [] | b"-Fail execCommand("forwarddelete", false, ""): "a []| b"-Fail execCommand("forwarddelete", false, ""): "a []| b"-Fail execCommand("forwarddelete", false, ""): "a |[] b"-Fail execCommand("forwarddelete", false, ""): "a |[] b"-Fail execCommand("forwarddelete", false, ""): "a | [] b"-Fail execCommand("forwarddelete", false, ""): "a |[] b"-Fail execCommand("forwarddelete", false, ""): "a []| b"-Fail execCommand("forwarddelete", false, ""): "a [] | b"-Fail execCommand("forwarddelete", false, ""): "a [] | b"-Fail execCommand("forwarddelete", false, ""): "a [] | b"-Fail execCommand("forwarddelete", false, ""): "a []| b"-Fail execCommand("forwarddelete", false, ""): "a []b | c"-Fail execCommand("forwarddelete", false, ""): "a []b | c"-Fail execCommand("forwarddelete", false, ""): "a []b| c"-Fail execCommand("forwarddelete", false, ""): "a []|b c"-Fail execCommand("forwarddelete", false, ""): "a |[]b c"-Fail execCommand("forwarddelete", false, ""): "a [] |b c"-Fail execCommand("forwarddelete", false, ""): "a | []b c"-Fail execCommand("forwarddelete", false, ""): "a | |[] c"-Fail execCommand("forwarddelete", false, ""): "a | |[] c"-Fail execCommand("forwarddelete", false, ""): "a | []| c"-Fail execCommand("forwarddelete", false, ""): "a |[] | c"-Fail execCommand("forwarddelete", false, ""): "a []| | c"-Fail execCommand("forwarddelete", false, ""): "a [] | | c"-Fail execCommand("forwarddelete", false, ""): "a [] | | c"-Fail execCommand("forwarddelete", false, ""): "a [] | | c"-Fail execCommand("forwarddelete", false, ""): "a || [] c"-Fail execCommand("forwarddelete", false, ""): "a ||[] c"-Fail execCommand("forwarddelete", false, ""): "a |[]| c"+Pass execCommand("forwarddelete", false, ""): "a []| b"+Pass execCommand("forwarddelete", false, ""): "a []| b"+Pass execCommand("forwarddelete", false, ""): "a |[] b"+Pass execCommand("forwarddelete", false, ""): "a |[] b"+Pass execCommand("forwarddelete", false, ""): "a | [] b"+Pass execCommand("forwarddelete", false, ""): "a |[] b"+Pass execCommand("forwarddelete", false, ""): "a []| b"+Pass execCommand("forwarddelete", false, ""): "a [] | b"+Pass execCommand("forwarddelete", false, ""): "a [] | b"+Pass execCommand("forwarddelete", false, ""): "a [] | b"+Pass execCommand("forwarddelete", false, ""): "a []| b"+Pass execCommand("forwarddelete", false, ""): "a []b | c"+Pass execCommand("forwarddelete", false, ""): "a []b | c"+Pass execCommand("forwarddelete", false, ""): "a []b| c"+Pass execCommand("forwarddelete", false, ""): "a []|b c"+Pass execCommand("forwarddelete", false, ""): "a |[]b c"+Pass execCommand("forwarddelete", false, ""): "a [] |b c"+Pass execCommand("forwarddelete", false, ""): "a | []b c"+Pass execCommand("forwarddelete", false, ""): "a | |[] c"+Pass execCommand("forwarddelete", false, ""): "a | |[] c"+Pass execCommand("forwarddelete", false, ""): "a | []| c"+Pass execCommand("forwarddelete", false, ""): "a |[] | c"+Pass execCommand("forwarddelete", false, ""): "a []| | c"+Pass execCommand("forwarddelete", false, ""): "a [] | | c"+Pass execCommand("forwarddelete", false, ""): "a [] | | c"+Pass execCommand("forwarddelete", false, ""): "a [] | | c"+Pass execCommand("forwarddelete", false, ""): "a || [] c"+Pass execCommand("forwarddelete", false, ""): "a ||[] c"+Pass execCommand("forwarddelete", false, ""): "a |[]| c"Fail execCommand("forwarddelete", false, ""): "a []|| c"Fail execCommand("forwarddelete", false, ""): "a [] || c"-Fail execCommand("forwarddelete", false, ""): "a [] || c"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "a [] || c"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"Pass execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] <span> def</span></span>"Pass execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"Pass execCommand("forwarddelete", false, ""): "<span>abc <span>[] def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc <span>[] def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc <span>[] def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc <span>[] def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []<span> def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc <span>[] def</span></span>"Pass execCommand("forwarddelete", false, ""): "<span>abc <span> [] def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc <span> [] def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc <span> [] def</span></span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc <span> [] def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc <span> [] def</span></span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc[] </span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span><span>abc </span>[] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc </span>[] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc </span>[] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc </span>[] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc []</span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc </span>[] def</span>"Pass execCommand("forwarddelete", false, ""): "<span><span>abc </span> [] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc </span> [] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span><span>abc </span> [] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc </span> [] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span><span>abc </span> [] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc[] </span><span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"Pass execCommand("forwarddelete", false, ""): "<span>abc </span><span>[] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc </span><span>[] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc </span><span>[] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc </span><span>[] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc []</span><span> def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc </span><span>[] def</span>"Pass execCommand("forwarddelete", false, ""): "<span>abc </span><span> [] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc </span><span> [] def</span>"-Fail execCommand("forwarddelete", false, ""): "<span>abc </span><span> [] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc </span><span> [] def</span>"+Pass execCommand("forwarddelete", false, ""): "<span>abc </span><span> [] def</span>"Pass execCommand("forwarddelete", false, ""): "a[]<span style=white-space:pre;>b </span>c"Pass execCommand("forwarddelete", false, ""): "a<span style=white-space:pre;>b[] </span>c"Pass execCommand("forwarddelete", false, ""): "a<span style=white-space:pre;>b [] </span>c"@@ -596,10 +596,10 @@ Pass execCommand("forwarddelete", false, ""): "a<span style=white-space:pre;>bPass execCommand("forwarddelete", false, ""): "a<span style=white-space:pre;>b [] </span>"Pass execCommand("forwarddelete", false, ""): "a[]<span style=white-space:pre;> </span>b"Fail execCommand("forwarddelete", false, ""): "a []<span style=white-space:pre;> </span>"-Fail execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;> </span>"-Fail execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;> </span>"-Fail execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;>b </span>"-Fail execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;> </span>"+Pass execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;> </span>"+Pass execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;> </span>"+Pass execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;>b </span>"+Pass execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;> </span>"Pass execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;> </span>"Pass execCommand("forwarddelete", false, ""): "a [] <span style=white-space:pre;>b </span>"Pass execCommand("forwarddelete", false, ""): "<span style=white-space:pre;> [] </span> a"diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/inserttext.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/inserttext.tentative.txtindex dfa8cdb308f..2bd15f274c5 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/inserttext.tentative.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/whitespaces/chrome-compat/inserttext.tentative.txt@@ -2,8 +2,7 @@ Harness status: OKFound 223 tests-160 Pass-63 Fail+223 PassPass execCommand("inserttext", false, " ") at "a[]b"Pass execCommand("inserttext", false, " ") at "a []b"Pass execCommand("inserttext", false, " ") at "a []b"@@ -81,71 +80,71 @@ Pass execCommand("inserttext", false, "\u00A0") at "a Pass execCommand("inserttext", false, "\u00A0") at "a []b"Pass execCommand("inserttext", false, "\u00A0") at "a []b"Pass execCommand("inserttext", false, "\u00A0") at "a []b"-Fail execCommand("inserttext", false, " ") at "a<span> []</span>b"+Pass execCommand("inserttext", false, " ") at "a<span> []</span>b"Pass execCommand("inserttext", false, " ") at "a<span> []</span>b"-Fail execCommand("inserttext", false, " ") at "a<span> []</span>b"+Pass execCommand("inserttext", false, " ") at "a<span> []</span>b"Pass execCommand("inserttext", false, " ") at "a<span> []</span>b"-Fail execCommand("inserttext", false, " ") at "a<span> []</span>b"-Fail execCommand("inserttext", false, " ") at "a<span>b[]</span>c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span>c"+Pass execCommand("inserttext", false, " ") at "a<span> []</span>b"+Pass execCommand("inserttext", false, " ") at "a<span>b[]</span>c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span>c"Pass execCommand("inserttext", false, " ") at "a<span>b []</span>c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span>c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span>c"Pass execCommand("inserttext", false, " ") at "a<span>b []</span>c"Pass execCommand("inserttext", false, " ") at "a<span>b[]</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span> c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span> c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b[]</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span> c"-Fail execCommand("inserttext", false, " ") at "a<span>b[]</span><span>c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span>c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b[]</span> c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span> c"+Pass execCommand("inserttext", false, " ") at "a<span>b[]</span><span>c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span>c</span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span>c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span>c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span>c</span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span>c</span>"Pass execCommand("inserttext", false, " ") at "a<span>b[]</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b[]</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span>b[]</span><span><span>c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span>c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b[]</span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b[]</span><span><span>c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span>c</span></span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span>c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span>c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span>c</span></span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span>c</span></span>"Pass execCommand("inserttext", false, " ") at "a<span>b[]</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b[]</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b[]</span></span><span>c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span>c</span>"+Pass execCommand("inserttext", false, " ") at "a<span>b[]</span><span><span> c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span>b []</span><span><span> c</span></span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b[]</span></span><span>c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span>c</span>"Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span>c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span>c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span>c</span>"Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span>c</span>"Pass execCommand("inserttext", false, " ") at "a<span><span>b[]</span></span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b[]</span></span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"-Fail execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b[]</span></span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"+Pass execCommand("inserttext", false, " ") at "a<span><span>b []</span></span><span> c</span>"Pass execCommand("inserttext", false, " ") at "a[]b"Pass execCommand("inserttext", false, " ") at "a[]b"Pass execCommand("inserttext", false, " ") at "a[]b"@@ -170,39 +169,39 @@ Pass execCommand("inserttext", false, "\u00A0\u00A0\u00A0\u00A0") at "a[]"Pass execCommand("inserttext", false, "\u00A0\u00A0\u00A0\u00A0\u00A0") at "a[]"Pass execCommand("inserttext", false, "\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0") at "a[]"Pass execCommand("inserttext", false, "\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0") at "a[]"-Fail execCommand("inserttext", false, " ") at "a[]<span style=white-space:pre>b</span>"-Fail execCommand("inserttext", false, " ") at "a []<span style=white-space:pre>b</span>"+Pass execCommand("inserttext", false, " ") at "a[]<span style=white-space:pre>b</span>"+Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre>b</span>"Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre>b</span>"-Fail execCommand("inserttext", false, " ") at "a []<span style=white-space:pre>b</span>"+Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre>b</span>"Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre>b</span>"-Fail execCommand("inserttext", false, " ") at "a[]<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, " ") at "a[]<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, " ") at "a[]<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, " ") at "a[]<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, " ") at "a []<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, "\u00A0") at "a[]<span style=white-space:pre>b</span>"-Fail execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre>b</span>"+Pass execCommand("inserttext", false, "\u00A0") at "a[]<span style=white-space:pre>b</span>"+Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre>b</span>"Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre>b</span>"-Fail execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre>b</span>"+Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre>b</span>"Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre>b</span>"-Fail execCommand("inserttext", false, "\u00A0") at "a[]<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, "\u00A0") at "a[]<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, "\u00A0") at "a[]<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, "\u00A0") at "a[]<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"-Fail execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"+Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, "\u00A0") at "a []<span style=white-space:pre> </span>"Pass execCommand("inserttext", false, "b") at "a [] c"-Fail execCommand("inserttext", false, "b") at "a[] c"-Fail execCommand("inserttext", false, "b") at "a [] c"+Pass execCommand("inserttext", false, "b") at "a[] c"+Pass execCommand("inserttext", false, "b") at "a [] c"Pass execCommand("inserttext", false, "b") at "a [] c"Pass execCommand("inserttext", false, "b") at "a [] c"Pass execCommand("inserttext", false, "b") at "a []c"