Re: HTML::Form not submitting submit button name/value

Gisle Aas <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On Tue, Aug 11, 2009 at 08:14, <[email protected]> wrote:
> On Mon, 10 Aug 2009, Gisle Aas wrote:
>
>> Both current Safari and Firefox seem to send x=<x>&y=<y> when
>> clicking on the image.
>
> I see, I was using the test form
>
>    <form>
>       <input type=submit value="Upload it!" name=n>
>       <input type=image alt="Foo">
>       <input type=text name=t value="1">
>    </form>
>
> from the t/html/form.t test suite. When clicking on the submit button, no x
> or y parameters are set. If you add a src= attribute
> to the img tag and a valid image path, and click on the image, the browser
> will set x and y.

Do you think HTML::Form should treat a <input type=image> differently
based on the presence of the src= attribute?  Does modern browsers
just ignore <input type=image> without a src= (that is treat them as
if they were disabled)?

--Gisle


> (On hitting Enter while editing the text field, I don't get any x or y
> parameters with Firefox 3.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.