summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-11 18:25:15 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-11 18:42:43 +0200
commit71092226bd0f705e499146aa3ffde166762c2e87 (patch)
tree385501cc5b5c3b948a8e7fdf92f2c9227edb7b30
parentf2431adf471af027b04b635f6991b708bf0627c1 (diff)
downloadserenity-71092226bd0f705e499146aa3ffde166762c2e87.zip
LibWeb: Dispatch a "change" event when <input> checked state changes
-rw-r--r--Libraries/LibWeb/HTML/HTMLInputElement.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp
index 170a10cc40..1e89724343 100644
--- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp
@@ -109,6 +109,8 @@ void HTMLInputElement::set_checked(bool checked)
m_checked = checked;
if (layout_node())
layout_node()->set_needs_display();
+
+ dispatch_event(DOM::Event::create("change"));
}
bool HTMLInputElement::enabled() const