MantisBT - NetSurf
View Issue Details
0002595NetSurf[All Projects] Generalpublic2018-04-30 08:562019-02-22 21:17
Reporterfkooman 
Assigned ToVincent Sanders 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
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

Issue History
2018-04-30 08:56fkoomanNew Issue
2018-07-20 16: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