diff --git a/Tests/LibWeb/Text/expected/HTML/HTMLInputElement-cloning-steps.txt b/Tests/LibWeb/Text/expected/HTML/HTMLInputElement-cloning-steps.txt new file mode 100644 index 0000000000000000000000000000000000000000..76ccc81241ac68d8129e6d7e2cba298af128a1f1 --- /dev/null +++ b/Tests/LibWeb/Text/expected/HTML/HTMLInputElement-cloning-steps.txt @@ -0,0 +1,2 @@ + Cloned checkbox checked: true +Cloned text input value: PASS diff --git a/Tests/LibWeb/Text/input/HTML/HTMLInputElement-cloning-steps.html b/Tests/LibWeb/Text/input/HTML/HTMLInputElement-cloning-steps.html new file mode 100644 index 0000000000000000000000000000000000000000..5c2da9fbe77129fc563afbca157a6f4a3397b3e0 --- /dev/null +++ b/Tests/LibWeb/Text/input/HTML/HTMLInputElement-cloning-steps.html @@ -0,0 +1,23 @@ + + +
+ diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp index 62762cce04c12fa3415e8b6fcaed3f321ee527ad..543cf533b0b51f62e5e4377d4863d520cb958894 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -1446,6 +1446,18 @@ void HTMLInputElement::form_associated_element_was_removed(DOM::Node*) set_shadow_root(nullptr); } +// https://html.spec.whatwg.org/multipage/input.html#the-input-element%3Aconcept-node-clone-ext +WebIDL::ExceptionOr