Jonas Sicking wrote:
Ian Hickson wrote:
On Thu, 26 Jun 2008, Jonas Sicking wrote:
What I did notice in our code though is how we deal with the case
when there are multiple <map>s with the same name. In this case we
generally use the first <map>. But if the first <map> is empty, we
use the first non-empty <map>. This was done for compatibility with
some sites. See https://bugzilla.mozilla.org/show_bug.cgi?id=264624
I have no idea if this matters today or not.
I couldn't reproduce this behavior.
Try the following markup in firefox:
<map name="foo"></map>
<map name="foo">
<area shape=circle coords="10,10,10" href="http://www.mozilla.com">
</map>
<img src="http://www.mozilla.org/images/feature-logos1.png"
usemap="#foo" width="20" height="20">
This only seems to occur in quirks mode, not in standards mode. But
neither Opera, Safari or IE8 have the same behaviour. Additionally, the
site reported in the bug you mentioned no longer suffers from the bug.
Therefore, it doesn't appear to be necessary that we should require that
behaviour.
--
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/