[whatwg] <map id="">

On 8/10/07, Benjamin Hawkes-Lewis <bhawkeslewis at googlemail.com> wrote:
> Simon Pieters wrote:
>
> > I don't see any need for it to be case-sensitive for XHTML5. :-)
>
> Correct me if this is incorrect but as far as I can see, according to
> the specs authors have been using, id and name are case-sensitive in
> XHTML 1.x just as in HTML 4.01.

What I've found is this:

The matching is case-insensitive in text/html in all browsers.
The matching in application/xhtml+xml is case-sensitve in FF and
Safari and case-insensitive in Opera.

Making the matching case-insensitive in application/xhtml+xml would
only cause a page like this to break:

<map id="map1">
<map id="Map1">
<img usemap="Map1">

because the first map would start matching and the second one would no
longer be used.

However, the page would already be broken in Opera because its
matching is already case-insensitive in application/xhtml+xml.

It'd only start breaking in Safari and FF versions with the change.
But, are there really a lot of application/xhtml+xml pages that count
on the usemap matching being case-sensitive where changing the
matching to case-insensitive would cause things to break?

It seems that there's a low probability that it will cause problems.
But, if it does, the page(s) can be quickly fixed to not count on the
matching to be case-sensitive ans satisfy all siutations.

image map handling should really be exactly the same in text/html and
application/xhtml+xml. If we can specify that in a way that doesn't
break things significantly, I think we should.

usemap handling has been messed with too much. It's time to get it right.

So we have to ask:

Are Mozilla and Apple O.K. with making usemap also match to id in
text/html like the spec currently says (and like Opera and IE do)?

If not, are they O.K. with making usemap also match to name in
application/xhtml+xml (like Opera does)?

Are they O.K. with making usemap matching case-insensitive in
application/xhtml+xml (like Opera does)?

Knowing the anwser to those will help decide what to do.

-- 
Michael

Received on Friday, 10 August 2007 20:49:30 UTC