Skip to content

Truly independent web browser

LibWeb: Apply plain text editing commands to focused text controls

Andreas Kling583b0ae5250b
diff --git a/Libraries/LibWeb/DOM/EditingHostManager.cpp b/Libraries/LibWeb/DOM/EditingHostManager.cpp
index 92e99eb443f..18a586cc8e0 100644
--- a/Libraries/LibWeb/DOM/EditingHostManager.cpp
+++ b/Libraries/LibWeb/DOM/EditingHostManager.cpp
@@ -315,7 +315,9 @@ EventResult EditingHostManager::handle_return_key(Utf16FlyString const& ui_input
auto command = ui_input_type == UIEvents::InputTypes::insertParagraph
? Editing::CommandNames::insertParagraph
: Editing::CommandNames::insertLineBreak;
- auto editing_result = m_document->exec_command(command, false, {});
+ // NB: Use the internal entry point like the other user edits, so that a script that focuses a text control
+ // during the key press does not redirect this edit to that text control.
+ auto editing_result = m_document->exec_command_internal(command, false, {}, Document::DispatchInputEvent::Yes);
if (editing_result.is_exception()) {
dbgln("handle_return_key(): editing resulted in exception: {}", editing_result.exception());
return EventResult::Dropped;
diff --git a/Libraries/LibWeb/Editing/ExecCommand.cpp b/Libraries/LibWeb/Editing/ExecCommand.cpp
index 8486ccf168f..f801be22a0d 100644
--- a/Libraries/LibWeb/Editing/ExecCommand.cpp
+++ b/Libraries/LibWeb/Editing/ExecCommand.cpp
@@ -8,6 +8,7 @@
#include <AK/ScopeGuard.h>
#include <AK/TemporaryChange.h>
#include <LibWeb/DOM/Document.h>
+#include <LibWeb/DOM/ElementFactory.h>
#include <LibWeb/DOM/Event.h>
#include <LibWeb/DOM/Range.h>
#include <LibWeb/DOM/StaticRange.h>
@@ -19,7 +20,10 @@
#include <LibWeb/Editing/SpellCheckController.h>
#include <LibWeb/Editing/VisiblePosition.h>
#include <LibWeb/HTML/HTMLAnchorElement.h>
+#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/HTML/HTMLLIElement.h>
+#include <LibWeb/HTML/HTMLTextAreaElement.h>
+#include <LibWeb/HTML/Parser/HTMLParser.h>
#include <LibWeb/HTML/Scripting/Environments.h>
#include <LibWeb/HighResolutionTime/TimeOrigin.h>
#include <LibWeb/Selection/Selection.h>
@@ -35,9 +39,98 @@ GC::Ref<Editing::EditingHistory> Document::editing_history()
return *m_editing_history;
}
+static bool command_is_enabled(Document&, Utf16FlyString const& command);
+
+// INTEROP: The editing commands act on the selection, but when a text control has focus, browsers apply the commands
+// that make sense for plain text to that text control instead, and disable the other commands.
+static HTML::FormAssociatedTextControlElement* focused_text_control(Document& document)
+{
+ auto focused_area = document.focused_area();
+ if (!focused_area)
+ return nullptr;
+ if (auto* input = as_if<HTML::HTMLInputElement>(*focused_area); input && input->has_selectable_text())
+ return input;
+ return as_if<HTML::HTMLTextAreaElement>(*focused_area);
+}
+
+static bool command_applies_to_text_control(Utf16FlyString const& command, HTML::FormAssociatedTextControlElement& control)
+{
+ if (command.is_one_of(Editing::CommandNames::insertLineBreak, Editing::CommandNames::insertParagraph))
+ return is<HTML::HTMLTextAreaElement>(control.text_control_to_html_element());
+ return command.is_one_of(Editing::CommandNames::delete_, Editing::CommandNames::forwardDelete,
+ Editing::CommandNames::insertHTML, Editing::CommandNames::insertText, Editing::CommandNames::redo,
+ Editing::CommandNames::selectAll, Editing::CommandNames::undo);
+}
+
+static Optional<bool> query_command_enabled_in_text_control(Document& document, Utf16FlyString const& command)
+{
+ auto* control = focused_text_control(document);
+ if (!control)
+ return {};
+ auto& element = control->text_control_to_html_element();
+
+ // NB: These commands only change editing state, which only makes sense if the text control is in editable
+ // content.
+ if (command.is_one_of(Editing::CommandNames::defaultParagraphSeparator, Editing::CommandNames::styleWithCSS,
+ Editing::CommandNames::useCSS))
+ return element.is_editable_or_editing_host();
+
+ if (!command_applies_to_text_control(command, *control))
+ return false;
+
+ // NB: Undo and redo use the editing history, which also records the edits in text controls.
+ if (command.is_one_of(Editing::CommandNames::undo, Editing::CommandNames::redo))
+ return {};
+
+ if (command == Editing::CommandNames::selectAll)
+ return true;
+ return as<HTML::FormAssociatedElement>(element).is_mutable();
+}
+
+static bool exec_command_in_text_control(HTML::FormAssociatedTextControlElement& control, Utf16FlyString const& command, Utf16View value)
+{
+ if (command == Editing::CommandNames::delete_) {
+ control.handle_delete(UIEvents::InputTypes::deleteContentBackward);
+ } else if (command == Editing::CommandNames::forwardDelete) {
+ control.handle_delete(UIEvents::InputTypes::deleteContentForward);
+ } else if (command == Editing::CommandNames::insertText) {
+ control.handle_insert(UIEvents::InputTypes::insertText, value);
+ } else if (command == Editing::CommandNames::insertHTML) {
+ // NB: A text control can only contain text, so insert the text of the HTML. Parse it with a div as the
+ // context element, since a textarea as the context element would parse it as text.
+ auto context = MUST(DOM::create_element(control.text_control_to_html_element().document(), HTML::TagNames::div, Namespace::HTML));
+ auto fragment = HTML::HTMLParser::parse_html_fragment(context, value);
+ auto text = fragment.is_error() ? Utf16String {} : fragment.value()->text_content().value_or({});
+ control.handle_insert(UIEvents::InputTypes::insertText, text);
+ } else if (command == Editing::CommandNames::insertLineBreak) {
+ control.handle_insert(UIEvents::InputTypes::insertLineBreak, u"\n"sv);
+ } else if (command == Editing::CommandNames::insertParagraph) {
+ control.handle_insert(UIEvents::InputTypes::insertParagraph, u"\n"sv);
+ } else if (command == Editing::CommandNames::selectAll) {
+ control.select_all();
+ } else {
+ VERIFY_NOT_REACHED();
+ }
+ return true;
+}
+
// https://w3c.github.io/editing/docs/execCommand/#execcommand()
WebIDL::ExceptionOr<bool> Document::exec_command(Utf16FlyString const& command, [[maybe_unused]] bool show_ui, Utf16View value)
{
+ // NB: See the INTEROP note at focused_text_control(). exec_command_internal() checks whether the command is
+ // enabled for the active range only, so check whether it is enabled for the text control here.
+ if (auto* control = focused_text_control(*this); control && is_html_document() && !m_inside_exec_command) {
+ if (!MUST(query_command_enabled(command)))
+ return false;
+ auto command_definition = Editing::find_command_definition(command);
+ if (command_definition.has_value() && command_definition->command != Editing::CommandNames::undo
+ && command_definition->command != Editing::CommandNames::redo
+ && command_applies_to_text_control(command_definition->command, *control)) {
+ TemporaryChange guard_recursion { m_inside_exec_command, true };
+ return exec_command_in_text_control(*control, command_definition->command, value);
+ }
+ }
+
return exec_command_internal(command, show_ui, value, DispatchInputEvent::Yes);
}
@@ -57,8 +150,9 @@ WebIDL::ExceptionOr<bool> Document::exec_command_internal(Utf16FlyString const&
// NOTE: these steps are dealt by the default values for both show_ui and value
// 3. If command is not supported or not enabled, return false.
- // NOTE: query_command_enabled() also checks if command is supported
- if (!MUST(query_command_enabled(command)))
+ // NB: This does not use query_command_enabled(), which reports whether a command is enabled in a focused text
+ // control. The commands below act on the active range, and rely on it being checked here.
+ if (!MUST(query_command_supported(command)) || !command_is_enabled(*this, command))
return false;
// 4. If command is not in the Miscellaneous commands section:
@@ -83,7 +177,7 @@ WebIDL::ExceptionOr<bool> Document::exec_command_internal(Utf16FlyString const&
//
// NOTE: Because either the start or end node of the range could be inside an editing host that is part of the
// other node's editing host, we can probe both and see if either one is the other's ancestor.
- // NOTE: We can reuse ->editing_host() here since query_command_enabled() above already checked that both the
+ // NOTE: We can reuse ->editing_host() here since command_is_enabled() above already checked that both the
// start and end nodes are either editable or an editing host.
auto range = Editing::active_range(*this);
auto& start_node_editing_host = *range->start_container()->editing_host();
@@ -312,7 +406,18 @@ WebIDL::ExceptionOr<bool> Document::query_command_enabled(Utf16FlyString const&
if (!MUST(query_command_supported(command)))
return false;
- // https://w3c.github.io/editing/docs/execCommand/#enabled
+ // NB: See the INTEROP note at focused_text_control().
+ if (auto command_definition = Editing::find_command_definition(command); command_definition.has_value()) {
+ if (auto enabled = query_command_enabled_in_text_control(*this, command_definition->command); enabled.has_value())
+ return *enabled;
+ }
+
+ return command_is_enabled(*this, command);
+}
+
+// https://w3c.github.io/editing/docs/execCommand/#enabled
+static bool command_is_enabled(Document& document, Utf16FlyString const& command)
+{
// Among commands defined in this specification, those listed in Miscellaneous commands are always enabled, except
// for the cut command and the paste command.
// NOTE: cut and paste are actually in the Clipboard commands section
@@ -326,20 +431,20 @@ WebIDL::ExceptionOr<bool> Document::query_command_enabled(Utf16FlyString const&
// queryCommandEnabled("undo") is true only when there is a step to undo, and execCommand("undo") on an
// empty history returns false. Redo behaves symmetrically.
if (command.equals_ignoring_ascii_case(Editing::CommandNames::undo)) {
- auto history = editing_history_if_exists();
+ auto history = document.editing_history_if_exists();
return history && history->can_undo();
}
if (command.equals_ignoring_ascii_case(Editing::CommandNames::redo)) {
- auto history = editing_history_if_exists();
+ auto history = document.editing_history_if_exists();
return history && history->can_redo();
}
// AD-HOC: selectAll requires a selection object to exist.
if (command.equals_ignoring_ascii_case(Editing::CommandNames::selectAll))
- return get_selection() != nullptr;
+ return document.get_selection() != nullptr;
// The other commands defined here are enabled if the active range is not null,
- auto active_range = Editing::active_range(*this);
+ auto active_range = Editing::active_range(document);
if (!active_range)
return false;
diff --git a/Tests/LibWeb/Text/expected/Editing/execCommand-in-focused-non-text-input.txt b/Tests/LibWeb/Text/expected/Editing/execCommand-in-focused-non-text-input.txt
new file mode 100644
index 00000000000..7164e922ba6
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/Editing/execCommand-in-focused-non-text-input.txt
@@ -0,0 +1,12 @@
+range: insertText enabled: false
+range: delete enabled: false
+range: execCommand insertText: false
+range: value: 50
+checkbox: insertText enabled: false
+checkbox: delete enabled: false
+checkbox: execCommand insertText: false
+checkbox: value: on
+text: insertText enabled: true
+text: delete enabled: true
+text: execCommand insertText: true
+text: value: xfoo
diff --git a/Tests/LibWeb/Text/expected/Editing/user-edit-after-focusing-text-control.txt b/Tests/LibWeb/Text/expected/Editing/user-edit-after-focusing-text-control.txt
new file mode 100644
index 00000000000..603650d5ac0
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/Editing/user-edit-after-focusing-text-control.txt
@@ -0,0 +1,4 @@
+Editing host: foo
+Text control: ""
+Editing host: foo
+Text control: ""
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=password.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=password.txt
index 82e9a3fd1a0..134d685f17c 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=password.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=password.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 648 tests
-530 Pass
-118 Fail
+628 Pass
+20 Fail
Pass In <input type="password">, execCommand("getHTML", false, null), a[b]c): The command should not be supported
Pass In <input type="password">, execCommand("getHTML", false, null), a[b]c): The command should not be enabled
Pass In <input type="password">, execCommand("bold", false, bold), a[b]c): The command should be supported
@@ -52,37 +52,37 @@ Fail In <input type="password">, execCommand("copy", false, null), a[bc]d): The
Fail In <input type="password">, execCommand("paste", false, null), a[]c): The command should be supported
Fail In <input type="password">, execCommand("paste", false, null), a[]c): The command should be enabled
Pass In <input type="password">, execCommand("delete", false, null), ab[]c): The command should be supported
-Fail In <input type="password">, execCommand("delete", false, null), ab[]c): The command should be enabled
-Fail In <input type="password">, execCommand("delete", false, null), ab[]c): execCommand() should return true
-Fail In <input type="password">, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
+Pass In <input type="password">, execCommand("delete", false, null), ab[]c): The command should be enabled
+Pass In <input type="password">, execCommand("delete", false, null), ab[]c): execCommand() should return true
+Pass In <input type="password">, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
Pass In <input type="password">, execCommand("delete", false, null), ab[]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
-Fail In <input type="password">, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
+Pass In <input type="password">, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("delete", false, null), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("delete", false, null), a[b]c): The command should be enabled
-Fail In <input type="password">, execCommand("delete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password">, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password">, execCommand("delete", false, null), a[b]c): The command should be enabled
+Pass In <input type="password">, execCommand("delete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password">, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password">, execCommand("delete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
-Fail In <input type="password">, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
+Pass In <input type="password">, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): The command should be supported
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
Pass In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): should not fire beforeinput event
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
-Fail In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
+Pass In <input type="password">, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("selectall", false, null), a[b]c): The command should be supported
Pass In <input type="password">, execCommand("selectall", false, null), a[b]c): The command should be enabled
Pass In <input type="password">, execCommand("selectall", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password">, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
+Pass In <input type="password">, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
Pass In <input type="password">, execCommand("selectall", false, null), a[b]c): should not fire beforeinput event
Pass In <input type="password">, execCommand("selectall", false, null), a[b]c): input.inputType should be undefined
Pass In <input type="password">, execCommand("selectall", false, null), a[b]c): input.target should be undefined
@@ -95,11 +95,11 @@ Pass In <input type="password">, execCommand("undo", false, null), [a]bc): input
Pass In <input type="password">, execCommand("undo", false, null), [a]bc): input.target should be undefined
Pass In <input type="password">, execCommand("undo", false, null), a[b]c): The command should be supported
Fail In <input type="password">, execCommand("undo", false, null), a[b]c): The command should be enabled
-Fail In <input type="password">, execCommand("undo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password">, execCommand("undo", false, null), a[b]c): execCommand() should return true
Pass In <input type="password">, execCommand("undo", false, null), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="password">, execCommand("undo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
-Fail In <input type="password">, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
+Pass In <input type="password">, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("redo", false, null), [a]bc): The command should be supported
Pass In <input type="password">, execCommand("redo", false, null), [a]bc): The command should not be enabled
Pass In <input type="password">, execCommand("redo", false, null), [a]bc): execCommand() should return false
@@ -109,11 +109,11 @@ Pass In <input type="password">, execCommand("redo", false, null), [a]bc): input
Pass In <input type="password">, execCommand("redo", false, null), [a]bc): input.target should be undefined
Pass In <input type="password">, execCommand("redo", false, null), a[b]c): The command should be supported
Fail In <input type="password">, execCommand("redo", false, null), a[b]c): The command should be enabled
-Fail In <input type="password">, execCommand("redo", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password">, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password">, execCommand("redo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password">, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password">, execCommand("redo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
-Fail In <input type="password">, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
+Pass In <input type="password">, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("indent", false, null), a[b]c): The command should be supported
Pass In <input type="password">, execCommand("indent", false, null), a[b]c): The command should not be enabled
Pass In <input type="password">, execCommand("indent", false, null), a[b]c): execCommand() should return false
@@ -189,26 +189,26 @@ Pass In <input type="password">, execCommand("insertimage", false, no-image.png)
Pass In <input type="password">, execCommand("insertimage", false, no-image.png), a[b]c): input.inputType should be undefined
Pass In <input type="password">, execCommand("insertimage", false, no-image.png), a[b]c): input.target should be undefined
Pass In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
-Fail In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
-Fail In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
+Pass In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
+Pass In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
+Pass In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
Pass In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
-Fail In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
+Pass In <input type="password">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
-Fail In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
-Fail In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
+Pass In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
+Pass In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
+Pass In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
Pass In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
-Fail In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
+Pass In <input type="password">, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("inserttext", false, ), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("inserttext", false, ), a[b]c): The command should be enabled
-Fail In <input type="password">, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
-Fail In <input type="password">, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password">, execCommand("inserttext", false, ), a[b]c): The command should be enabled
+Pass In <input type="password">, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
+Pass In <input type="password">, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password">, execCommand("inserttext", false, ), a[b]c): should not fire beforeinput event
-Fail In <input type="password">, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
-Fail In <input type="password">, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password">, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
+Pass In <input type="password">, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password">, execCommand("justifyleft", false, null), a[b]c): The command should be supported
Pass In <input type="password">, execCommand("justifyleft", false, null), a[b]c): The command should not be enabled
Pass In <input type="password">, execCommand("justifyleft", false, null), a[b]c): execCommand() should return false
@@ -289,17 +289,17 @@ Pass In <input type="password">, execCommand("formatblock", false, div), a[b]c):
Pass In <input type="password">, execCommand("heading", false, h1), a[b]c): The command should not be supported
Pass In <input type="password">, execCommand("heading", false, h1), a[b]c): The command should not be enabled
Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): The command should not be enabled
-Fail In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): execCommand() should return false
+Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): The command should not be enabled
+Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): execCommand() should return false
Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): should not fire beforeinput event
Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): input.inputType should be undefined
Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): input.target should be undefined
-Fail In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> has focus
-Fail In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> does not have focus
+Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> has focus
+Pass In <input type="password">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> does not have focus
Pass In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): The command should not be enabled
-Fail In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): execCommand() should return false
+Pass In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): The command should not be enabled
+Pass In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): execCommand() should return false
Pass In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): should not fire beforeinput event
Pass In <input type="password">, execCommand("styleWithCSS", false, false), a[b]c): input.inputType should be undefined
@@ -311,17 +311,17 @@ Pass In <input type="password">, execCommand("contentReadOnly", false, true), a[
Pass In <input type="password">, execCommand("contentReadOnly", false, false), a[b]c): The command should not be supported
Pass In <input type="password">, execCommand("contentReadOnly", false, false), a[b]c): The command should not be enabled
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should not be enabled
-Fail In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): execCommand() should return false
+Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should not be enabled
+Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): execCommand() should return false
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): should not fire beforeinput event
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): input.inputType should be undefined
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): input.target should be undefined
-Fail In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> has focus
-Fail In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> does not have focus
+Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> has focus
+Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> does not have focus
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should be supported
-Fail In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should not be enabled
-Fail In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): execCommand() should return false
+Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should not be enabled
+Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): execCommand() should return false
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): should not fire beforeinput event
Pass In <input type="password">, execCommand("defaultParagraphSeparator", false, div), a[b]c): input.inputType should be undefined
@@ -376,37 +376,37 @@ Fail In <input type="password"> in contenteditable, execCommand("copy", false, n
Fail In <input type="password"> in contenteditable, execCommand("paste", false, null), a[]c): The command should be supported
Fail In <input type="password"> in contenteditable, execCommand("paste", false, null), a[]c): The command should be enabled
Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be supported
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be enabled
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be supported
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be enabled
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
-Fail In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
+Pass In <input type="password"> in contenteditable, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be supported
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be supported
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
-Fail In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
+Pass In <input type="password"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): The command should be supported
Pass In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): The command should be enabled
Pass In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
+Pass In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
Pass In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): should not fire beforeinput event
Pass In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): input.inputType should be undefined
Pass In <input type="password"> in contenteditable, execCommand("selectall", false, null), a[b]c): input.target should be undefined
@@ -419,11 +419,11 @@ Pass In <input type="password"> in contenteditable, execCommand("undo", false, n
Pass In <input type="password"> in contenteditable, execCommand("undo", false, null), [a]bc): input.target should be undefined
Pass In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): The command should be supported
Fail In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): execCommand() should return true
Pass In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
-Fail In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
+Pass In <input type="password"> in contenteditable, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), [a]bc): The command should be supported
Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), [a]bc): The command should not be enabled
Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), [a]bc): execCommand() should return false
@@ -433,11 +433,11 @@ Pass In <input type="password"> in contenteditable, execCommand("redo", false, n
Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), [a]bc): input.target should be undefined
Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): The command should be supported
Fail In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
-Fail In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
+Pass In <input type="password"> in contenteditable, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("indent", false, null), a[b]c): The command should be supported
Pass In <input type="password"> in contenteditable, execCommand("indent", false, null), a[b]c): The command should not be enabled
Pass In <input type="password"> in contenteditable, execCommand("indent", false, null), a[b]c): execCommand() should return false
@@ -513,26 +513,26 @@ Pass In <input type="password"> in contenteditable, execCommand("insertimage", f
Pass In <input type="password"> in contenteditable, execCommand("insertimage", false, no-image.png), a[b]c): input.inputType should be undefined
Pass In <input type="password"> in contenteditable, execCommand("insertimage", false, no-image.png), a[b]c): input.target should be undefined
Pass In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be supported
-Fail In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
+Pass In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
+Pass In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
Pass In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
-Fail In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
+Pass In <input type="password"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be supported
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be supported
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be enabled
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be enabled
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): should not fire beforeinput event
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
-Fail In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
+Pass In <input type="password"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="password"> in contenteditable, execCommand("justifyleft", false, null), a[b]c): The command should be supported
Pass In <input type="password"> in contenteditable, execCommand("justifyleft", false, null), a[b]c): The command should not be enabled
Pass In <input type="password"> in contenteditable, execCommand("justifyleft", false, null), a[b]c): execCommand() should return false
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=text.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=text.txt
index 52dc97c5a75..b3247cffc9d 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=text.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=text.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 648 tests
-530 Pass
-118 Fail
+628 Pass
+20 Fail
Pass In <input type="text">, execCommand("getHTML", false, null), a[b]c): The command should not be supported
Pass In <input type="text">, execCommand("getHTML", false, null), a[b]c): The command should not be enabled
Pass In <input type="text">, execCommand("bold", false, bold), a[b]c): The command should be supported
@@ -52,37 +52,37 @@ Fail In <input type="text">, execCommand("copy", false, null), a[bc]d): The comm
Fail In <input type="text">, execCommand("paste", false, null), a[]c): The command should be supported
Fail In <input type="text">, execCommand("paste", false, null), a[]c): The command should be enabled
Pass In <input type="text">, execCommand("delete", false, null), ab[]c): The command should be supported
-Fail In <input type="text">, execCommand("delete", false, null), ab[]c): The command should be enabled
-Fail In <input type="text">, execCommand("delete", false, null), ab[]c): execCommand() should return true
-Fail In <input type="text">, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
+Pass In <input type="text">, execCommand("delete", false, null), ab[]c): The command should be enabled
+Pass In <input type="text">, execCommand("delete", false, null), ab[]c): execCommand() should return true
+Pass In <input type="text">, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
Pass In <input type="text">, execCommand("delete", false, null), ab[]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
-Fail In <input type="text">, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
+Pass In <input type="text">, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("delete", false, null), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("delete", false, null), a[b]c): The command should be enabled
-Fail In <input type="text">, execCommand("delete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text">, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text">, execCommand("delete", false, null), a[b]c): The command should be enabled
+Pass In <input type="text">, execCommand("delete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text">, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text">, execCommand("delete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
-Fail In <input type="text">, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
+Pass In <input type="text">, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): The command should be supported
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
Pass In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): should not fire beforeinput event
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
-Fail In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
+Pass In <input type="text">, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("selectall", false, null), a[b]c): The command should be supported
Pass In <input type="text">, execCommand("selectall", false, null), a[b]c): The command should be enabled
Pass In <input type="text">, execCommand("selectall", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text">, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
+Pass In <input type="text">, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
Pass In <input type="text">, execCommand("selectall", false, null), a[b]c): should not fire beforeinput event
Pass In <input type="text">, execCommand("selectall", false, null), a[b]c): input.inputType should be undefined
Pass In <input type="text">, execCommand("selectall", false, null), a[b]c): input.target should be undefined
@@ -95,11 +95,11 @@ Pass In <input type="text">, execCommand("undo", false, null), [a]bc): input.inp
Pass In <input type="text">, execCommand("undo", false, null), [a]bc): input.target should be undefined
Pass In <input type="text">, execCommand("undo", false, null), a[b]c): The command should be supported
Fail In <input type="text">, execCommand("undo", false, null), a[b]c): The command should be enabled
-Fail In <input type="text">, execCommand("undo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text">, execCommand("undo", false, null), a[b]c): execCommand() should return true
Pass In <input type="text">, execCommand("undo", false, null), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="text">, execCommand("undo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
-Fail In <input type="text">, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
+Pass In <input type="text">, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("redo", false, null), [a]bc): The command should be supported
Pass In <input type="text">, execCommand("redo", false, null), [a]bc): The command should not be enabled
Pass In <input type="text">, execCommand("redo", false, null), [a]bc): execCommand() should return false
@@ -109,11 +109,11 @@ Pass In <input type="text">, execCommand("redo", false, null), [a]bc): input.inp
Pass In <input type="text">, execCommand("redo", false, null), [a]bc): input.target should be undefined
Pass In <input type="text">, execCommand("redo", false, null), a[b]c): The command should be supported
Fail In <input type="text">, execCommand("redo", false, null), a[b]c): The command should be enabled
-Fail In <input type="text">, execCommand("redo", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text">, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text">, execCommand("redo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text">, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text">, execCommand("redo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
-Fail In <input type="text">, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
+Pass In <input type="text">, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("indent", false, null), a[b]c): The command should be supported
Pass In <input type="text">, execCommand("indent", false, null), a[b]c): The command should not be enabled
Pass In <input type="text">, execCommand("indent", false, null), a[b]c): execCommand() should return false
@@ -189,26 +189,26 @@ Pass In <input type="text">, execCommand("insertimage", false, no-image.png), a[
Pass In <input type="text">, execCommand("insertimage", false, no-image.png), a[b]c): input.inputType should be undefined
Pass In <input type="text">, execCommand("insertimage", false, no-image.png), a[b]c): input.target should be undefined
Pass In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
-Fail In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
-Fail In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
+Pass In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
+Pass In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
+Pass In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
Pass In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
-Fail In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
+Pass In <input type="text">, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
-Fail In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
-Fail In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
+Pass In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
+Pass In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
+Pass In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
Pass In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
-Fail In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
+Pass In <input type="text">, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("inserttext", false, ), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("inserttext", false, ), a[b]c): The command should be enabled
-Fail In <input type="text">, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
-Fail In <input type="text">, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text">, execCommand("inserttext", false, ), a[b]c): The command should be enabled
+Pass In <input type="text">, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
+Pass In <input type="text">, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text">, execCommand("inserttext", false, ), a[b]c): should not fire beforeinput event
-Fail In <input type="text">, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
-Fail In <input type="text">, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text">, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
+Pass In <input type="text">, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text">, execCommand("justifyleft", false, null), a[b]c): The command should be supported
Pass In <input type="text">, execCommand("justifyleft", false, null), a[b]c): The command should not be enabled
Pass In <input type="text">, execCommand("justifyleft", false, null), a[b]c): execCommand() should return false
@@ -289,17 +289,17 @@ Pass In <input type="text">, execCommand("formatblock", false, div), a[b]c): inp
Pass In <input type="text">, execCommand("heading", false, h1), a[b]c): The command should not be supported
Pass In <input type="text">, execCommand("heading", false, h1), a[b]c): The command should not be enabled
Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): The command should not be enabled
-Fail In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): execCommand() should return false
+Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): The command should not be enabled
+Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): execCommand() should return false
Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): should not fire beforeinput event
Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): input.inputType should be undefined
Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): input.target should be undefined
-Fail In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> has focus
-Fail In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> does not have focus
+Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> has focus
+Pass In <input type="text">, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <input> does not have focus
Pass In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): The command should not be enabled
-Fail In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): execCommand() should return false
+Pass In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): The command should not be enabled
+Pass In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): execCommand() should return false
Pass In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): should not fire beforeinput event
Pass In <input type="text">, execCommand("styleWithCSS", false, false), a[b]c): input.inputType should be undefined
@@ -311,17 +311,17 @@ Pass In <input type="text">, execCommand("contentReadOnly", false, true), a[b]c)
Pass In <input type="text">, execCommand("contentReadOnly", false, false), a[b]c): The command should not be supported
Pass In <input type="text">, execCommand("contentReadOnly", false, false), a[b]c): The command should not be enabled
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should not be enabled
-Fail In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): execCommand() should return false
+Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should not be enabled
+Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): execCommand() should return false
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): should not fire beforeinput event
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): input.inputType should be undefined
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): input.target should be undefined
-Fail In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> has focus
-Fail In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> does not have focus
+Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> has focus
+Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <input> does not have focus
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should be supported
-Fail In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should not be enabled
-Fail In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): execCommand() should return false
+Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should not be enabled
+Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): execCommand() should return false
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): should not fire beforeinput event
Pass In <input type="text">, execCommand("defaultParagraphSeparator", false, div), a[b]c): input.inputType should be undefined
@@ -376,37 +376,37 @@ Fail In <input type="text"> in contenteditable, execCommand("copy", false, null)
Fail In <input type="text"> in contenteditable, execCommand("paste", false, null), a[]c): The command should be supported
Fail In <input type="text"> in contenteditable, execCommand("paste", false, null), a[]c): The command should be enabled
Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be supported
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be enabled
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): <input>.value should be "a[]c"
Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be supported
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be enabled
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
-Fail In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
+Pass In <input type="text"> in contenteditable, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be supported
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be supported
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): <input>.value should be "a[]c"
Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
-Fail In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
+Pass In <input type="text"> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): The command should be supported
Pass In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): The command should be enabled
Pass In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
+Pass In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): <input>.value should be "[abc]"
Pass In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): should not fire beforeinput event
Pass In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): input.inputType should be undefined
Pass In <input type="text"> in contenteditable, execCommand("selectall", false, null), a[b]c): input.target should be undefined
@@ -419,11 +419,11 @@ Pass In <input type="text"> in contenteditable, execCommand("undo", false, null)
Pass In <input type="text"> in contenteditable, execCommand("undo", false, null), [a]bc): input.target should be undefined
Pass In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): The command should be supported
Fail In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): execCommand() should return true
Pass In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): <input>.value should be "a[b]c"
Pass In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
-Fail In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
+Pass In <input type="text"> in contenteditable, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), [a]bc): The command should be supported
Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), [a]bc): The command should not be enabled
Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), [a]bc): execCommand() should return false
@@ -433,11 +433,11 @@ Pass In <input type="text"> in contenteditable, execCommand("redo", false, null)
Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), [a]bc): input.target should be undefined
Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): The command should be supported
Fail In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
-Fail In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
+Pass In <input type="text"> in contenteditable, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("indent", false, null), a[b]c): The command should be supported
Pass In <input type="text"> in contenteditable, execCommand("indent", false, null), a[b]c): The command should not be enabled
Pass In <input type="text"> in contenteditable, execCommand("indent", false, null), a[b]c): execCommand() should return false
@@ -513,26 +513,26 @@ Pass In <input type="text"> in contenteditable, execCommand("insertimage", false
Pass In <input type="text"> in contenteditable, execCommand("insertimage", false, no-image.png), a[b]c): input.inputType should be undefined
Pass In <input type="text"> in contenteditable, execCommand("insertimage", false, no-image.png), a[b]c): input.target should be undefined
Pass In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be supported
-Fail In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
+Pass In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
+Pass In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <input>.value should be "ainserted[]c"
Pass In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
-Fail In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
+Pass In <input type="text"> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be supported
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): <input>.value should be "a**inserted**[]c"
Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be supported
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be enabled
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be enabled
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): <input>.value should be "a[]c"
Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): should not fire beforeinput event
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
-Fail In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
+Pass In <input type="text"> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLInputElement]
Pass In <input type="text"> in contenteditable, execCommand("justifyleft", false, null), a[b]c): The command should be supported
Pass In <input type="text"> in contenteditable, execCommand("justifyleft", false, null), a[b]c): The command should not be enabled
Pass In <input type="text"> in contenteditable, execCommand("justifyleft", false, null), a[b]c): execCommand() should return false
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=textarea.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=textarea.txt
index 137b387da62..f8f061a166a 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=textarea.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/exec-command-with-text-editor.tentative@type=textarea.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 648 tests
-510 Pass
-138 Fail
+628 Pass
+20 Fail
Pass In <textarea>, execCommand("getHTML", false, null), a[b]c): The command should not be supported
Pass In <textarea>, execCommand("getHTML", false, null), a[b]c): The command should not be enabled
Pass In <textarea>, execCommand("bold", false, bold), a[b]c): The command should be supported
@@ -52,37 +52,37 @@ Fail In <textarea>, execCommand("copy", false, null), a[bc]d): The command shoul
Fail In <textarea>, execCommand("paste", false, null), a[]c): The command should be supported
Fail In <textarea>, execCommand("paste", false, null), a[]c): The command should be enabled
Pass In <textarea>, execCommand("delete", false, null), ab[]c): The command should be supported
-Fail In <textarea>, execCommand("delete", false, null), ab[]c): The command should be enabled
-Fail In <textarea>, execCommand("delete", false, null), ab[]c): execCommand() should return true
-Fail In <textarea>, execCommand("delete", false, null), ab[]c): <textarea>.value should be "a[]c"
+Pass In <textarea>, execCommand("delete", false, null), ab[]c): The command should be enabled
+Pass In <textarea>, execCommand("delete", false, null), ab[]c): execCommand() should return true
+Pass In <textarea>, execCommand("delete", false, null), ab[]c): <textarea>.value should be "a[]c"
Pass In <textarea>, execCommand("delete", false, null), ab[]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
-Fail In <textarea>, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
+Pass In <textarea>, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("delete", false, null), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("delete", false, null), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("delete", false, null), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("delete", false, null), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea>, execCommand("delete", false, null), a[b]c): The command should be enabled
+Pass In <textarea>, execCommand("delete", false, null), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("delete", false, null), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea>, execCommand("delete", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
-Fail In <textarea>, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
+Pass In <textarea>, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("forwarddelete", false, null), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea>, execCommand("forwarddelete", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("forwarddelete", false, null), a[]bc): The command should be supported
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[]bc): <textarea>.value should be "a[]c"
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[]bc): <textarea>.value should be "a[]c"
Pass In <textarea>, execCommand("forwarddelete", false, null), a[]bc): should not fire beforeinput event
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
-Fail In <textarea>, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
+Pass In <textarea>, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("selectall", false, null), a[b]c): The command should be supported
Pass In <textarea>, execCommand("selectall", false, null), a[b]c): The command should be enabled
Pass In <textarea>, execCommand("selectall", false, null), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("selectall", false, null), a[b]c): <textarea>.value should be "[abc]"
+Pass In <textarea>, execCommand("selectall", false, null), a[b]c): <textarea>.value should be "[abc]"
Pass In <textarea>, execCommand("selectall", false, null), a[b]c): should not fire beforeinput event
Pass In <textarea>, execCommand("selectall", false, null), a[b]c): input.inputType should be undefined
Pass In <textarea>, execCommand("selectall", false, null), a[b]c): input.target should be undefined
@@ -95,11 +95,11 @@ Pass In <textarea>, execCommand("undo", false, null), [a]bc): input.inputType sh
Pass In <textarea>, execCommand("undo", false, null), [a]bc): input.target should be undefined
Pass In <textarea>, execCommand("undo", false, null), a[b]c): The command should be supported
Fail In <textarea>, execCommand("undo", false, null), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("undo", false, null), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("undo", false, null), a[b]c): execCommand() should return true
Pass In <textarea>, execCommand("undo", false, null), a[b]c): <textarea>.value should be "a[b]c"
Pass In <textarea>, execCommand("undo", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
-Fail In <textarea>, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
+Pass In <textarea>, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("redo", false, null), [a]bc): The command should be supported
Pass In <textarea>, execCommand("redo", false, null), [a]bc): The command should not be enabled
Pass In <textarea>, execCommand("redo", false, null), [a]bc): execCommand() should return false
@@ -109,11 +109,11 @@ Pass In <textarea>, execCommand("redo", false, null), [a]bc): input.inputType sh
Pass In <textarea>, execCommand("redo", false, null), [a]bc): input.target should be undefined
Pass In <textarea>, execCommand("redo", false, null), a[b]c): The command should be supported
Fail In <textarea>, execCommand("redo", false, null), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("redo", false, null), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("redo", false, null), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea>, execCommand("redo", false, null), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("redo", false, null), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea>, execCommand("redo", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
-Fail In <textarea>, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
+Pass In <textarea>, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("indent", false, null), a[b]c): The command should be supported
Pass In <textarea>, execCommand("indent", false, null), a[b]c): The command should not be enabled
Pass In <textarea>, execCommand("indent", false, null), a[b]c): execCommand() should return false
@@ -189,26 +189,26 @@ Pass In <textarea>, execCommand("insertimage", false, no-image.png), a[b]c): sho
Pass In <textarea>, execCommand("insertimage", false, no-image.png), a[b]c): input.inputType should be undefined
Pass In <textarea>, execCommand("insertimage", false, no-image.png), a[b]c): input.target should be undefined
Pass In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <textarea>.value should be "ainserted[]c"
+Pass In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
+Pass In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <textarea>.value should be "ainserted[]c"
Pass In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
-Fail In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
+Pass In <textarea>, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): <textarea>.value should be "a**inserted**[]c"
+Pass In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
+Pass In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): <textarea>.value should be "a**inserted**[]c"
Pass In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
-Fail In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
+Pass In <textarea>, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("inserttext", false, ), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("inserttext", false, ), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("inserttext", false, ), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea>, execCommand("inserttext", false, ), a[b]c): The command should be enabled
+Pass In <textarea>, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("inserttext", false, ), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea>, execCommand("inserttext", false, ), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
-Fail In <textarea>, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
+Pass In <textarea>, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("justifyleft", false, null), a[b]c): The command should be supported
Pass In <textarea>, execCommand("justifyleft", false, null), a[b]c): The command should not be enabled
Pass In <textarea>, execCommand("justifyleft", false, null), a[b]c): execCommand() should return false
@@ -266,21 +266,21 @@ Pass In <textarea>, execCommand("insertunorderedlist", false, null), a[b]c): sho
Pass In <textarea>, execCommand("insertunorderedlist", false, null), a[b]c): input.inputType should be undefined
Pass In <textarea>, execCommand("insertunorderedlist", false, null), a[b]c): input.target should be undefined
Pass In <textarea>, execCommand("insertparagraph", false, null), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("insertparagraph", false, null), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("insertparagraph", false, null), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("insertparagraph", false, null), a[b]c): <textarea>.value should be "a
+Pass In <textarea>, execCommand("insertparagraph", false, null), a[b]c): The command should be enabled
+Pass In <textarea>, execCommand("insertparagraph", false, null), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("insertparagraph", false, null), a[b]c): <textarea>.value should be "a
[]c"
Pass In <textarea>, execCommand("insertparagraph", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("insertparagraph", false, null), a[b]c): input.inputType should be insertParagraph
-Fail In <textarea>, execCommand("insertparagraph", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("insertparagraph", false, null), a[b]c): input.inputType should be insertParagraph
+Pass In <textarea>, execCommand("insertparagraph", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): The command should be enabled
-Fail In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): execCommand() should return true
-Fail In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): <textarea>.value should be "a
+Pass In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): The command should be enabled
+Pass In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): execCommand() should return true
+Pass In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): <textarea>.value should be "a
[]c"
Pass In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): input.inputType should be insertLineBreak
-Fail In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): input.inputType should be insertLineBreak
+Pass In <textarea>, execCommand("insertlinebreak", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea>, execCommand("formatblock", false, div), a[b]c): The command should be supported
Pass In <textarea>, execCommand("formatblock", false, div), a[b]c): The command should not be enabled
Pass In <textarea>, execCommand("formatblock", false, div), a[b]c): execCommand() should return false
@@ -291,17 +291,17 @@ Pass In <textarea>, execCommand("formatblock", false, div), a[b]c): input.target
Pass In <textarea>, execCommand("heading", false, h1), a[b]c): The command should not be supported
Pass In <textarea>, execCommand("heading", false, h1), a[b]c): The command should not be enabled
Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): The command should not be enabled
-Fail In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): execCommand() should return false
+Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): The command should not be enabled
+Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): execCommand() should return false
Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): <textarea>.value should be "a[b]c"
Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): should not fire beforeinput event
Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): input.inputType should be undefined
Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): input.target should be undefined
-Fail In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <textarea> has focus
-Fail In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <textarea> does not have focus
+Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <textarea> has focus
+Pass In <textarea>, execCommand("styleWithCSS", false, true), a[b]c): styleWithCSS state should be false when <textarea> does not have focus
Pass In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): The command should not be enabled
-Fail In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): execCommand() should return false
+Pass In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): The command should not be enabled
+Pass In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): execCommand() should return false
Pass In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): <textarea>.value should be "a[b]c"
Pass In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): should not fire beforeinput event
Pass In <textarea>, execCommand("styleWithCSS", false, false), a[b]c): input.inputType should be undefined
@@ -313,17 +313,17 @@ Pass In <textarea>, execCommand("contentReadOnly", false, true), a[b]c): The com
Pass In <textarea>, execCommand("contentReadOnly", false, false), a[b]c): The command should not be supported
Pass In <textarea>, execCommand("contentReadOnly", false, false), a[b]c): The command should not be enabled
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should not be enabled
-Fail In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): execCommand() should return false
+Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): The command should not be enabled
+Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): execCommand() should return false
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): <textarea>.value should be "a[b]c"
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): should not fire beforeinput event
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): input.inputType should be undefined
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): input.target should be undefined
-Fail In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <textarea> has focus
-Fail In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <textarea> does not have focus
+Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <textarea> has focus
+Pass In <textarea>, execCommand("defaultParagraphSeparator", false, p), a[b]c): defaultParagraphSeparator value should be "p" when <textarea> does not have focus
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should be supported
-Fail In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should not be enabled
-Fail In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): execCommand() should return false
+Pass In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): The command should not be enabled
+Pass In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): execCommand() should return false
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): <textarea>.value should be "a[b]c"
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): should not fire beforeinput event
Pass In <textarea>, execCommand("defaultParagraphSeparator", false, div), a[b]c): input.inputType should be undefined
@@ -378,37 +378,37 @@ Fail In <textarea> in contenteditable, execCommand("copy", false, null), a[bc]d)
Fail In <textarea> in contenteditable, execCommand("paste", false, null), a[]c): The command should be supported
Fail In <textarea> in contenteditable, execCommand("paste", false, null), a[]c): The command should be enabled
Pass In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): <textarea>.value should be "a[]c"
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): <textarea>.value should be "a[]c"
Pass In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): input.inputType should be deleteContentBackward
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), ab[]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
-Fail In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): input.inputType should be deleteContentBackward
+Pass In <textarea> in contenteditable, execCommand("delete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.inputType should be deleteContentForward
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): <textarea>.value should be "a[]c"
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): <textarea>.value should be "a[]c"
Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
-Fail In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.inputType should be deleteContentForward
+Pass In <textarea> in contenteditable, execCommand("forwarddelete", false, null), a[]bc): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): The command should be supported
Pass In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): The command should be enabled
Pass In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): <textarea>.value should be "[abc]"
+Pass In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): <textarea>.value should be "[abc]"
Pass In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): should not fire beforeinput event
Pass In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): input.inputType should be undefined
Pass In <textarea> in contenteditable, execCommand("selectall", false, null), a[b]c): input.target should be undefined
@@ -421,11 +421,11 @@ Pass In <textarea> in contenteditable, execCommand("undo", false, null), [a]bc):
Pass In <textarea> in contenteditable, execCommand("undo", false, null), [a]bc): input.target should be undefined
Pass In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): The command should be supported
Fail In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): execCommand() should return true
Pass In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): <textarea>.value should be "a[b]c"
Pass In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
-Fail In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): input.inputType should be historyUndo
+Pass In <textarea> in contenteditable, execCommand("undo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("redo", false, null), [a]bc): The command should be supported
Pass In <textarea> in contenteditable, execCommand("redo", false, null), [a]bc): The command should not be enabled
Pass In <textarea> in contenteditable, execCommand("redo", false, null), [a]bc): execCommand() should return false
@@ -435,11 +435,11 @@ Pass In <textarea> in contenteditable, execCommand("redo", false, null), [a]bc):
Pass In <textarea> in contenteditable, execCommand("redo", false, null), [a]bc): input.target should be undefined
Pass In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): The command should be supported
Fail In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
-Fail In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): input.inputType should be historyRedo
+Pass In <textarea> in contenteditable, execCommand("redo", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("indent", false, null), a[b]c): The command should be supported
Pass In <textarea> in contenteditable, execCommand("indent", false, null), a[b]c): The command should not be enabled
Pass In <textarea> in contenteditable, execCommand("indent", false, null), a[b]c): execCommand() should return false
@@ -515,26 +515,26 @@ Pass In <textarea> in contenteditable, execCommand("insertimage", false, no-imag
Pass In <textarea> in contenteditable, execCommand("insertimage", false, no-image.png), a[b]c): input.inputType should be undefined
Pass In <textarea> in contenteditable, execCommand("insertimage", false, no-image.png), a[b]c): input.target should be undefined
Pass In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <textarea>.value should be "ainserted[]c"
+Pass In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): <textarea>.value should be "ainserted[]c"
Pass In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
-Fail In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.inputType should be insertText
+Pass In <textarea> in contenteditable, execCommand("inserthtml", false, <b>inserted</b>), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): <textarea>.value should be "a**inserted**[]c"
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): <textarea>.value should be "a**inserted**[]c"
Pass In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.inputType should be insertText
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, **inserted**), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): <textarea>.value should be "a[]c"
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): <textarea>.value should be "a[]c"
Pass In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
-Fail In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.inputType should be insertText
+Pass In <textarea> in contenteditable, execCommand("inserttext", false, ), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("justifyleft", false, null), a[b]c): The command should be supported
Pass In <textarea> in contenteditable, execCommand("justifyleft", false, null), a[b]c): The command should not be enabled
Pass In <textarea> in contenteditable, execCommand("justifyleft", false, null), a[b]c): execCommand() should return false
@@ -592,21 +592,21 @@ Pass In <textarea> in contenteditable, execCommand("insertunorderedlist", false,
Pass In <textarea> in contenteditable, execCommand("insertunorderedlist", false, null), a[b]c): input.inputType should be undefined
Pass In <textarea> in contenteditable, execCommand("insertunorderedlist", false, null), a[b]c): input.target should be undefined
Pass In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): <textarea>.value should be "a
+Pass In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): <textarea>.value should be "a
[]c"
Pass In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): input.inputType should be insertParagraph
-Fail In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): input.inputType should be insertParagraph
+Pass In <textarea> in contenteditable, execCommand("insertparagraph", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): The command should be supported
-Fail In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): The command should be enabled
-Fail In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): execCommand() should return true
-Fail In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): <textarea>.value should be "a
+Pass In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): The command should be enabled
+Pass In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): execCommand() should return true
+Pass In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): <textarea>.value should be "a
[]c"
Pass In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): should not fire beforeinput event
-Fail In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): input.inputType should be insertLineBreak
-Fail In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
+Pass In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): input.inputType should be insertLineBreak
+Pass In <textarea> in contenteditable, execCommand("insertlinebreak", false, null), a[b]c): input.target should be [object HTMLTextAreaElement]
Pass In <textarea> in contenteditable, execCommand("formatblock", false, div), a[b]c): The command should be supported
Pass In <textarea> in contenteditable, execCommand("formatblock", false, div), a[b]c): The command should not be enabled
Pass In <textarea> in contenteditable, execCommand("formatblock", false, div), a[b]c): execCommand() should return false
diff --git a/Tests/LibWeb/Text/input/Editing/execCommand-in-focused-non-text-input.html b/Tests/LibWeb/Text/input/Editing/execCommand-in-focused-non-text-input.html
new file mode 100644
index 00000000000..9d02daee047
--- /dev/null
+++ b/Tests/LibWeb/Text/input/Editing/execCommand-in-focused-non-text-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../include.js"></script>
+<input id="range" type="range" />
+<input id="checkbox" type="checkbox" />
+<input id="text" value="foo" />
+<script>
+ test(() => {
+ for (const id of ["range", "checkbox", "text"]) {
+ const input = document.getElementById(id);
+ input.focus();
+ println(`${id}: insertText enabled: ${document.queryCommandEnabled("insertText")}`);
+ println(`${id}: delete enabled: ${document.queryCommandEnabled("delete")}`);
+ println(`${id}: execCommand insertText: ${document.execCommand("insertText", false, "x")}`);
+ println(`${id}: value: ${input.value}`);
+ }
+ });
+</script>
diff --git a/Tests/LibWeb/Text/input/Editing/user-edit-after-focusing-text-control.html b/Tests/LibWeb/Text/input/Editing/user-edit-after-focusing-text-control.html
new file mode 100644
index 00000000000..1a7767c6dc0
--- /dev/null
+++ b/Tests/LibWeb/Text/input/Editing/user-edit-after-focusing-text-control.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../include.js"></script>
+<div id="host" contenteditable>foo</div>
+<textarea id="textarea"></textarea>
+<script>
+ test(() => {
+ const host = document.getElementById("host");
+ const textarea = document.getElementById("textarea");
+ host.focus();
+ getSelection().collapse(host.firstChild, 3);
+ host.addEventListener("beforeinput", () => textarea.focus(), { once: true });
+ internals.sendKey(host, "Return");
+ println(`Editing host: ${host.innerHTML}`);
+ println(`Text control: ${JSON.stringify(textarea.value)}`);
+
+ host.focus();
+ getSelection().collapse(host.firstChild, 3);
+ host.addEventListener("beforeinput", () => textarea.focus(), { once: true });
+ internals.sendText(host, "x");
+ println(`Editing host: ${host.innerHTML}`);
+ println(`Text control: ${JSON.stringify(textarea.value)}`);
+ });
+</script>