about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchView.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-08-22 00:41:25 +0000
committerEric Wong <e@yhbt.net>2020-08-22 05:33:18 +0000
commit99404a3bc0ab01b4f10ea698d88642b2ebc932e1 (patch)
treec8341cd4e49606fe8b151f03c28d4180b07e9cdb /lib/PublicInbox/SearchView.pm
parent5301a9d1b07ad5af1b62df870b7181461603f460 (diff)
downloadpublic-inbox-99404a3bc0ab01b4f10ea698d88642b2ebc932e1.tar.gz
Unlike w3m and links, the lynx browser seems to require a `name'
attribute for `<input type=submit>' elements.  Maybe some other
browsers do, too.  The `name' attribute for submit elements
doesn't seem to cause any harm for w3m or links, users, either;
despite not (AFAIK) being part of historical or current HTML
specs.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r--lib/PublicInbox/SearchView.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index aa8fa037..75e2d39d 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -185,9 +185,11 @@ sub search_nav_top {
                 $rv .= qq{<a\nhref="?$s">summary</a>|<b>nested</b>};
         }
         my $A = $q->qs_html(x => 'A', r => undef);
-        $rv .= qq{|<a\nhref="?$A">Atom feed</a>]};
-        $rv .= qq{\n\t\t\t\t\t\tdownload: };
-        $rv .= qq{<input\ntype=submit\nvalue="mbox.gz"/></pre></form><pre>};
+        $rv .= qq{|<a\nhref="?$A">Atom feed</a>]} .
+                qq{\n\t\t\t\t\t\tdownload: } .
+                # lynx seems to require a name=, here, so just use 'z'
+                qq{<input\ntype=submit\nname=z\nvalue="mbox.gz"/>} .
+                q{</pre></form><pre>};
 }
 
 sub search_nav_bot {