[whatwg] usemap="" and related issues

On Fri, Nov 28, 2008 at 3:00 AM, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
> 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.

Ah, it does indeed only happen in quirks mode (ugh, i hate it when
quirks mode things spread into code that I work on ;) ). If no other
browser is doing it in standards mode either I'm more than happy to
not have it in the spec.

/ Jonas

Received on Monday, 1 December 2008 00:10:26 UTC