From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Cc: "Cédric Hannotier" <cedric.hannotier@ulb.be>,
"Konstantin Ryabitsev" <konstantin@linuxfoundation.org>
Subject: [PATCH] www_listing: add space after `input=text' in search field
Date: Wed, 26 Jun 2024 17:48:28 +0000 [thread overview]
Message-ID: <20240626174828.M325671@dcvr> (raw)
In-Reply-To: <20240626-invaluable-apricot-skunk-6dace5@meerkat>
Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> On Wed, Jun 26, 2024 at 11:17:28AM GMT, Cédric Hannotier wrote:
> > In [1], the input form has a typo in the type of the field 'q',
> > i.e. it is written `<input name="q" type="text/">` instead of
> > `<input name="q" type="text">` (there is a trailing '/' in the type).
Thanks, fix below.
> > By the way, after reading [2],
> > I have the feeling that `type="search"` would be a better type.
> > But I have 0 expertise in web design, so I may miss something.
> >
> > [1] https://lore.kernel.org/
> > [2] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
We must support old text-only browsers since users may be
searching archives when they have unsupported graphics drivers
or too little RAM and unable to run modern HTML5 browsers.
-----8<-----
Subject: [PATCH] www_listing: add space after `input=text' in search field
Having an attribute value glued to an HTML closing tag may
cause problems with some parsers.
Reported-by: Cédric Hannotier <cedric.hannotier@ulb.be>
---
lib/PublicInbox/WwwListing.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm
index 2d6c74da..5681377f 100644
--- a/lib/PublicInbox/WwwListing.pm
+++ b/lib/PublicInbox/WwwListing.pm
@@ -179,7 +179,7 @@ sub mset_nav_top {
$qh = qq[\nvalue="].ascii_html($qh).'"';
}
chop(my $rv = <<EOM);
-<form action="./"><pre><input name=q type=text$qh/><input
+<form action="./"><pre><input name=q type=text$qh /><input
type=submit value="locate inbox"/><input type=submit name=a
value="search all inboxes"/></pre></form><pre>
EOM
prev parent reply other threads:[~2024-06-26 17:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f6hfe5enrisa7uyc756vbq5mkyziddfewtjn3mojdiwo755mch@emcste4m4rmr>
2024-06-26 14:27 ` Wrong input type in lore.kernel.org webpage Konstantin Ryabitsev
2024-06-26 17:48 ` Eric Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240626174828.M325671@dcvr \
--to=e@80x24.org \
--cc=cedric.hannotier@ulb.be \
--cc=konstantin@linuxfoundation.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).