On Mon, Aug 10, 2009 at 22:25, Gisle Aas<gi...@aas.no> wrote:
> On Thu, Aug 6, 2009 at 00:43, <lib...@perlmeister.com> wrote:
>> P.S.:
>>
>> So I turned to the libwww test suite and looked at t/html/form.t:
>>
>>    $f = HTML::Form->parse(<<'EOT', "http://localhost/";);
>>    <form>
>>       <input type=submit value="Upload it!" name=n disabled>
>>       <input type=image alt="Foo">
>>       <input type=text name=t value="1">
>>    </form>
>>    EOT
>>
>>    #$f->dump;
>>    ok($f->click->as_string, <<'EOT');
>>    GET http://localhost/?x=1&y=1&t=1
>>
>>    EOT
>>
>> Is "x=1&y=1" a standard if there's an input image? My browser (FF3) doesn't
>> seem to think so.
>
> The standard (HTML 4.01) does not say what to do when the image has no
> name.  I think this was picked up from inspecting the behaviour of
> some browser but not sure which one.

Both current Safari and Firefox seem to send x=<x>&y=<y> when clicking
on the image.  If the form is submitted by return in the text field
then both send "x=0&y=0"?  Is that the difference you have an issue
with?

--Gisle

Reply via email to