MantisBT - NetSurf
View Issue Details
0002595NetSurf[All Projects] Generalpublic2018-04-30 07:562022-04-14 14:27
Reporterfkooman 
Assigned ToVincent Sanders 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformlinuxOSfedoraOS Version27
Product Version2.0 
Target VersionFixed in Version3.9 
Fixed in CI build #4560
Reported in CI build #
URL of problem pagehttps://helium.tuxed.net/fkooman/netsurf-form-button-submit/
Summary0002595: form submit with <button> does not send its name/value in form POST
DescriptionThis works:

<form method="post">
    <input type="submit" name="button" value="Button">
</form>

This does not:

<form method="post">
    <button name="button" value="Button">Button</button>
</form>

According to HTML 4 (as far as I understand it) requires also <button> to send its name/value on form submit: https://www.w3.org/TR/html401/interact/forms.html#h-17.5

See "URL of problem page" for a link to an example.
Steps To Reproduce- create a HTML form with button
- submit it
- name/value not available as "POST parameters" on server
Additional InformationNetSurf 3.8 (Dev) compiled on 2018-04-29
TagsNo tags attached.
Attached Files

Notes
(0001855)
jelina den   
2018-11-02 19:36   
http://bestblackfridaysales2018.com/
http://bestblackfridaysales2018.com/walmart-black-friday-sales-2018/
(0001870)
Jonathon Coleman   
2018-12-20 12:21   
https://www.concretecontractorsfayettevillear.com
(0001893)
Vincent Sanders   
2019-02-22 21:17   
our processing of the button type attribute was incorrect according to
https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type

fixed, thanks for the report
(0002018)
Vincent Sanders   
2019-07-19 08:32   
we believe this issue has been resolved in NetSurf 3.9

Issue History
2018-04-30 07:56fkoomanNew Issue
2018-07-20 15:11Michael DrakeStatusnew => acknowledged
2018-11-02 19:36jelina denNote Added: 0001855
2018-12-20 12:21Jonathon ColemanNote Added: 0001870
2019-02-22 21:17Vincent SandersAssigned To => Vincent Sanders
2019-02-22 21:17Vincent SandersSeverityminor => major
2019-02-22 21:17Vincent SandersStatusacknowledged => resolved
2019-02-22 21:17Vincent SandersResolutionopen => fixed
2019-02-22 21:17Vincent SandersProduct Version => 2.0
2019-02-22 21:17Vincent SandersFixed in Version => 3.9
2019-02-22 21:17Vincent SandersFixed in CI build # => 4560
2019-02-22 21:17Vincent SandersNote Added: 0001893
2019-07-19 08:32Vincent SandersStatusresolved => closed
2019-07-19 08:32Vincent SandersNote Added: 0002018
2020-02-21 15:52Horea KaiiTag Attached: https://scott-keever-seo.business.site/
2020-02-21 15:52Horea KaiiTag Detached: https://scott-keever-seo.business.site/
2021-08-10 09:09JennyTag Attached: HTMLUnknownElement
2021-08-10 09:09JennyTag Attached: https://www.gulfcoastwebsitedesign.com/blog/responsive-vs-adaptive-website-design
2021-08-10 09:09JennyTag Detached: HTMLUnknownElement
2021-08-10 09:09JennyTag Detached: https://www.gulfcoastwebsitedesign.com/blog/responsive-vs-adaptive-website-design