W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2009

[Bug 7076] Client-side image maps attributes missing on the a element

From: <bugzilla@wiggum.w3.org>
Date: Mon, 06 Jul 2009 09:08:57 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1MNkC1-0004UH-Nw@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7076





--- Comment #7 from Giovanni Campagna <scampa.giovanni@gmail.com>  2009-07-06 09:08:57 ---
(In reply to comment #6)
> > We have two interoperable implementations
> 
> Well, as your test shows they're not exactly interoperable (for imagemaps in
> general, though).

Standards are written for that: to ensure consistent behavior across multiple
browsers.

> Gecko does not support referencing imagemaps by ID in HTML4, only in XHTML. 
> s/id/name/ in your testcase makes it work.

Tried with name, and it works. Sorry then, my fault!

> That said, I would still be very very happy to rip this code out of Gecko.  As
> I said, I have never seen it used.
> 

There are a lot of features that have never been used, but they're still
present.
This one should not be dropped because it allows to write image maps that are
more descriptive, putting the alternative text directly inside the long image
description and allowing to mark some areas as important (strong).
I think that this example:

<map name="city-map" id="city-map">
<p>This image is a satellite view of ExampleCity.
You can click on the <a href="north" shape="rect" coords="0,0,100,100"><i>North
Quarter</i></a> or <a href="center" shape="circle" coords="200,200,50">the town
center</a>.
<strong>Don't forget to visit <a href="examplemuseum" shape="circle"
coords="375,375,20">the Example Museum of Everything</a> at <a
href="examplemuseum-mapview" shape="rect" coords="350,350,50,50"><i>123 Example
Road</i></a></strong>
</p></map>
<img src="examplecity-satview" usemap="#city-map" width="400" height="400"
aria-describedby="#city-map"/>

is much more accessible and easier to write and maintain than the equivalent

<map name="city-map" id="city-map">
<area href="north" shape="rect" coords="0,0,100,100" alt="North Quarter">
<area href="center" shape="circle" coords="200,200,50" alt="Town Center">
<area href="examplemuseum" shape="circle" coords="375,375,20" alt="Example
Museum of Everything">
<area href="examplemuseum-mapview" shape="rect" coords="350,350,50,50" alt="123
Example Road">
</map>
<p id="city-map-desc">This image is a satellite view of ExampleCity.
You can click on the <a href="north"><i>North Quarter</i></a> or <a
href="center" shape="circle">the town center</a>.
<strong>Don't forget to visit <a href="examplemuseum">the Example Museum of
Everything</a> at <a href="examplemuseum-mapview"><i>123 Example
Road</i></a></strong></p>
<img src="examplecity-satview" usemap="#city-map" width="400" height="400"
aria-describedby="#city-map-desc"/>


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 6 July 2009 09:09:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:00:56 UTC