LibWeb: Return current document URL if form action missing or empty

This commit is contained in:
Adam Plumb 2022-02-18 19:46:10 -05:00 committed by Andreas Kling
commit 34825ad3d1
Notes: sideshowbarker 2024-07-17 18:33:29 +09:00
2 changed files with 14 additions and 1 deletions

View file

@ -18,7 +18,7 @@ public:
HTMLFormElement(DOM::Document&, QualifiedName);
virtual ~HTMLFormElement() override;
String action() const { return attribute(HTML::AttributeNames::action); }
String action() const;
String method() const { return attribute(HTML::AttributeNames::method); }
void submit_form(RefPtr<HTMLElement> submitter, bool from_submit_binding = false);