W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2005

[whatwg] Image maps: should we drop <a coords="">?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 01 Sep 2005 20:01:02 -0400
Message-ID: <4317963E.8020504@inkedblade.net>
Ian Hickson wrote:
> On Mon, 11 Apr 2005, Anne van Kesteren wrote:
>
> Yup, it is indeed nice; if image maps had been designed that way from the 
> start it would make sense. But it's not _that_ much nicer than <area>, 
> which we could define as allowing:
> 
>   <object data="foo" usemap="#foo">
>    <map id="foo">
>     <ul>
>      <li><area coords="..." href="..."><a href="...">...</a>
>      ...
> 
> ...which isn't much worse, and has the very important benefit of actually 
> working in IE6.

And the perhaps less important disadvantage that it's impossible for a
machine to warn against the lack of alt text. With both <area> and <a>
in HTML 4, the spec was able to require 'alt' attributes on <area>,
because, given <a coords="..."> to fill the mixed coords and fallback
role, <area> was not intended to be used in conjunction with other
fallback content. In what you're proposing, <area> also takes the role
of <a coords="..."> and therefore takes no 'alt' attribute. The end
result is, there's no way to know if the author actually provided alt
text or is just throwing <area> into a mix of random block content.

*shrug* Just something to think about.

Another thing to think about: afaict, the HTML 4 spec doesn't say
whether or how the image map coordinate system scales when an image
is stretched or shrunk via CSS.

~fantasai
Received on Thursday, 1 September 2005 17:01:02 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC