MantisBT - NetSurf
View Issue Details
0002050NetSurf[All Projects] Generalpublic2014-01-01 01:212015-03-10 10:38
ReporterEwen Pring 
Assigned ToVincent Sanders 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSRISC OSOS Version5.19
Product Version3.0 
Target VersionFixed in Version3.1 
Fixed in CI build #1595
Reported in CI build #1556
URL of problem page
Summary0002050: Form fields not submitted if hidden from display
DescriptionIf HTML form input fields are hidden using the CSS display:none property, those fields are not sent with the form when submitted (whether using a method of POST or GET). Other browsers seem to send them.
Steps To ReproduceSee test HTML enclosed. As provided, just press the submit button then examine the URL bar and you can see 'surname' and 'email' have been passed on, but not the 2 other hidden fields. Now alter the inline CSS in the HTML code from display:none to display:all and try again; the extra form fields 'booktype' and 'nopages' will now be seen, and on submitting their values will appear in the URL bar.
Additional InformationThis prevents a 'reverse captcha' on a web contact form of mine working with NetSurf. The writers of the script powering the form suggest using such hidden fields with predetermined values which, if not present (eg because spam bots are doing their worst), will cause the script to stop the attempted contact. It is likely there are quite a few similar contact forms out there on the web.
TagsNo tags attached.
Attached Fileshtm form-piped-output.htm (994) 2014-01-01 01:21
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=58&type=bug

Notes
(0000664)
Vincent Sanders   
2015-03-10 10:38   
Confirmed fixed in 3.1 release

Issue History
2014-01-01 01:21Ewen PringNew Issue
2014-01-01 01:21Ewen PringFile Added: form-piped-output.htm
2014-01-01 11:10Vincent SandersSeveritymajor => minor
2014-01-01 11:10Vincent SandersStatusnew => acknowledged
2014-01-05 17:12John-Mark BellFixed in CI build # => 1595
2014-01-05 17:12John-Mark BellStatusacknowledged => resolved
2014-01-05 17:12John-Mark BellResolutionopen => fixed
2014-01-05 17:12John-Mark BellFixed in Version => 3.1
2015-03-10 10:38Vincent SandersNote Added: 0000664
2015-03-10 10:38Vincent SandersStatusresolved => closed
2015-03-10 10:38Vincent SandersAssigned To => Vincent Sanders