LibWeb: Return document URL if formAction attribute is missing or empty

This change also ensures that relative URLs are resolved relative to
the document's base URL.
This commit is contained in:
Tim Ledbetter 2024-09-07 23:17:56 +01:00 committed by Andreas Kling
parent f83d082980
commit c25dda767e
Notes: github-actions[bot] 2024-09-08 07:48:53 +00:00
5 changed files with 47 additions and 1 deletions

View file

@ -15,7 +15,7 @@ interface HTMLButtonElement : HTMLElement {
[CEReactions, Reflect] attribute boolean disabled;
readonly attribute HTMLFormElement? form;
[CEReactions, Reflect=formaction] attribute USVString formAction;
[CEReactions] attribute USVString formAction;
[CEReactions, Reflect=formenctype] attribute DOMString formEnctype;
[CEReactions, Reflect=formmethod] attribute DOMString formMethod;
[CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;