unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* Re: Wrong input type in lore.kernel.org webpage
       [not found] <f6hfe5enrisa7uyc756vbq5mkyziddfewtjn3mojdiwo755mch@emcste4m4rmr>
@ 2024-06-26 14:27 ` Konstantin Ryabitsev
  2024-06-26 17:48   ` [PATCH] www_listing: add space after `input=text' in search field Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Ryabitsev @ 2024-06-26 14:27 UTC (permalink / raw)
  To: Cédric Hannotier; +Cc: meta

On Wed, Jun 26, 2024 at 11:17:28AM GMT, Cédric Hannotier wrote:
> Dear Mr. Ryabitsev,
> 
> I apologize if this is not the correct email address
> or the way to report a bug in the web interface of the kernel ML.
> I tried to find out,
> but eventually, someone on #kernel pointed fingers at you...

I'm not quite the right person to handle your request, but I'm cc'ing the
public-inbox meta list, who may be able to properly reply.

> 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).
> 
> 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

-K

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] www_listing: add space after `input=text' in search field
  2024-06-26 14:27 ` Wrong input type in lore.kernel.org webpage Konstantin Ryabitsev
@ 2024-06-26 17:48   ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2024-06-26 17:48 UTC (permalink / raw)
  To: meta; +Cc: Cédric Hannotier, Konstantin Ryabitsev

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-26 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <f6hfe5enrisa7uyc756vbq5mkyziddfewtjn3mojdiwo755mch@emcste4m4rmr>
2024-06-26 14:27 ` Wrong input type in lore.kernel.org webpage Konstantin Ryabitsev
2024-06-26 17:48   ` [PATCH] www_listing: add space after `input=text' in search field Eric Wong

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).