mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-10 01:02:01 +03:00

https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type says if the type attribute is anything but "reset" or "button" it is of "submit" type. The previous logic was incorrect and only used the button if its type was explicitly submit and noting else.