unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug: EWW: Fails to handle radio-buttons correctly?
@ 2021-03-03 16:26 T.V Raman
  2021-03-04 11:11 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: T.V Raman @ 2021-03-03 16:26 UTC (permalink / raw)
  To: emacs-devel

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  🦮



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

* Re: Bug: EWW: Fails to handle radio-buttons correctly?
  2021-03-03 16:26 Bug: EWW: Fails to handle radio-buttons correctly? T.V Raman
@ 2021-03-04 11:11 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-03-04 11:11 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

"T.V Raman" <raman@google.com> writes:

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

This should now be fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



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

end of thread, other threads:[~2021-03-04 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 16:26 Bug: EWW: Fails to handle radio-buttons correctly? T.V Raman
2021-03-04 11:11 ` Lars Ingebrigtsen

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