From: "T.V Raman" <raman@google.com>
To: emacs-devel@gnu.org
Subject: Bug: EWW: Fails to handle radio-buttons correctly?
Date: Wed, 3 Mar 2021 08:26:14 -0800 (PST) [thread overview]
Message-ID: <20210303162614.A83DEC211CF@raman-glaptop.localdomain> (raw)
I have the HTML fragment shown below on http://emacspeak.sf.net
--- it produces a simple search form that asks for a query, and allows
the user to pick a specific site to search, or search the entire Web.
Eww appears to incorrectly handle the URL param corresponding to the
radio buttons. No fancy JS involved, so I was able to verify the HTML
form, as well as the results using lynx on linux
Here is the HTML:
Successful correct URL to submit assuming you checked
emacspeak.blogspot.com in the radio buttons should give:
https://www.google.com/custom?domains=emacspeak.sf.net&q=ladspa&sitesearch=emacspeak.blogspot.com
which Google then remaps appropriately as
https://www.google.com/search?q=ladspa+site:emacspeak.blogspot.com&domains=emacspeak.sf.net&gbv=1&sei=d7g_YMmeIJjp-gTCo7agCw
With EWW, the radio buttons appear to have no effect
<form method="get" action="https://www.google.com/custom">
<p><strong>Search Using Google</strong><br />
<label for="q">Look for:</label>
<input accesskey="/" id="q" type="text" size="15" name="q" />
<input type= "submit" value="Go" /><br />
<label for="mailsearch">Search Mail Archives</label>
<input accesskey="m" id="mailsearch" type="radio" name= "sitesearch" value= "mail.emacspeak.org" /><br/>
<label for="emsearch">Search emacspeak.blogspot.com</label>
<input accesskey="b" id="emsearch" type="radio" name= "sitesearch" value= "emacspeak.blogspot.com" /><br/>
<label for="web">Search WWW</label>
<input accesskey="w" type="radio" name="sitesearch" id="web" value="" />
<input type="hidden" name="domains" value= "emacspeak.sf.net" /></p>
</form><br />
--
Thanks,
--Raman
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman
♉ Id: kg:/m/0285kf1 🦮
next reply other threads:[~2021-03-03 16:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 16:26 T.V Raman [this message]
2021-03-04 11:11 ` Bug: EWW: Fails to handle radio-buttons correctly? Lars Ingebrigtsen
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://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210303162614.A83DEC211CF@raman-glaptop.localdomain \
--to=raman@google.com \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).