From 99404a3bc0ab01b4f10ea698d88642b2ebc932e1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 22 Aug 2020 00:41:25 +0000 Subject: searchview: fix mbox.gz downloads for lynx users Unlike w3m and links, the lynx browser seems to require a `name' attribute for `' 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. --- lib/PublicInbox/SearchView.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/SearchView.pm') 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{summary|nested}; } my $A = $q->qs_html(x => 'A', r => undef); - $rv .= qq{|Atom feed]}; - $rv .= qq{\n\t\t\t\t\t\tdownload: }; - $rv .= qq{
};
+	$rv .= qq{|Atom feed]} .
+		qq{\n\t\t\t\t\t\tdownload: } .
+		# lynx seems to require a name=, here, so just use 'z'
+		qq{} .
+		q{
};
 }
 
 sub search_nav_bot {
-- 
cgit v1.2.3-24-ge0c7