W3C home > Mailing lists > Public > www-html@w3.org > February 2002

usemap in XHTML 1.1 no longer a URI?!

From: Peter Sheerin <pete@petesguide.com>
Date: Mon, 25 Feb 2002 15:31:54 -0800
Message-ID: <007e01c1be54$9e928fa0$8810960a@cadpkslaptop>
To: "html-w3c" <www-html@w3.org>
I've been trying to figure out why one of my sites no longer validates when I switch from the XHTML 1.0 strict dtd to the 1.1 dtd. Someone pointed me to a posting that pointed out the datatype for usemap had changed from URI to IDREF.

Poking around in the 1.1 DTD, I found this to be true, and also found this, which explains the change:

<!-- 'usemap' points to the 'id' attribute of a <map> element,
     which must be in the same document; support for external
     document maps was not widely supported in HTML and is
     eliminated in XHTML.

     It is considered an error for the element pointed to by
     a usemap IDREF to occur in anything but a <map> element.

Can anyone tell me why this was done? It makes it impossible to write a valid XHTML 1.1 document that uses an image map (at least if you want it to work in today's browsers).

I thought the whole point of XHTML was to be backward compatible, and I have found nearly every other single aspect of XHTML to allow that. Why is this different?

How do I get around this problem?
Received on Monday, 25 February 2002 18:33:35 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 15 July 2018 06:07:48 UTC