W3C home > Mailing lists > Public > public-html@w3.org > August 2007

Re: Dropping <input usemap="">

From: Philip Taylor <philip@zaynar.demon.co.uk>
Date: Thu, 16 Aug 2007 16:09:52 +0100
Message-ID: <46C468C0.8060804@zaynar.demon.co.uk>
To: Robert Burns <rob@robburns.com>
CC: public-html <public-html@w3.org>

Robert Burns wrote:
> The difference between <input usemap> and <img usemap> is the same as 
> the difference between <input type='image'> and <img>. [...]
> What would YOU say are the differences between THESE: 
> <input type="image"> and <img>?

When you click on an <img>, nothing happens - it's just a 
non-interactive image. When you click on an <input type=image>, the 
input's form is submitted with the mouse coordinates added as 'x' and 
'y' - it's an image and a server-side image map and a form-submission 

<input type=image> is closer to <a href><img ismap></a> - in that case, 
both are server-side image maps, and the difference is that <img ismap> 
does a GET request with just the x and y arguments, while <input 
type=image> does a form submission with all the form's other input 
values in addition to the new x and y.

So the differences with <img ismap> are "one can only do GET" and "one 
submits all the form's other input values too", and I can't see any way 
for those differences to apply to client-side image maps (i.e. usemap) 
since client-side image maps are never associated with forms.

Philip Taylor
Received on Thursday, 16 August 2007 15:10:13 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:25 UTC