Re: Cougar DTD img USEMAP & ISMAP

Marcus E. Hennecke (marcush@crc.ricoh.com)
Fri, 12 Jul 1996 09:43:03 -0700 (PDT)


Date: Fri, 12 Jul 1996 09:43:03 -0700 (PDT)
From: "Marcus E. Hennecke" <marcush@crc.ricoh.com>
Message-Id: <199607121643.JAA02411@cougar.crc.ricoh.com>
To: www-html@w3.org, Aymeric.PoulainMaubant@enst-bretagne.fr
Subject: Re: Cougar DTD img USEMAP & ISMAP

On Fri, 12 Jul 1996 17:52:24 +0200, Aymeric Poulain Maubant <Aymeric.PoulainMaubant@enst-bretagne.fr> wrote:
> I'm not sure of this, but does the following extract of the cougarDTD
> mean that an IMG can be USEMAP and ISMAP *at the same time* ?

Yes, and that is a good thing. In fact, every image map should always
have both.

> Thus, if i provide such code :
> 
>      <img src="foo.png" alt="bar" usemap="client-side-use-map" ismap>
> 
> how is the User Agent supposed to behave ?

Easy: Those that support client-side image maps ignore the ismap
attribute. And those that don't yet support client-side image maps
ignore the usemap attribute anyway, since they don't know it. In
other words, the ismap attribute (combined with the appropriate
anchor around the image) is there as a fallback. If the ismap
attribute is not present, the image map is essentially useless for
browsers that do not support client-side image maps.

Marcus E. Hennecke
marcush@crc.ricoh.com        http://www.crc.ricoh.com/~marcush/