LibWeb: When creating form action URL, only include value for the submit

that was used to submit the form
This commit is contained in:
Shadowfacts 2020-05-04 22:58:27 -04:00 committed by Andreas Kling
parent 5c46741be8
commit 7f538ea7eb
Notes: sideshowbarker 2024-07-19 06:57:42 +09:00
3 changed files with 5 additions and 4 deletions

View file

@ -63,7 +63,7 @@ RefPtr<LayoutNode> HTMLInputElement::create_layout_node(const StyleProperties*)
button.on_click = [this] {
if (auto* form = first_ancestor_of_type<HTMLFormElement>()) {
// FIXME: Remove this const_cast once we have a non-const first_ancestor_of_type.
const_cast<HTMLFormElement*>(form)->submit();
const_cast<HTMLFormElement*>(form)->submit(this);
}
};
widget = button;