W3C home > Mailing lists > Public > www-validator@w3.org > May 2005

Re: image mapping

From: David Dorward <david@dorward.me.uk>
Date: Thu, 5 May 2005 07:15:55 +0100
To: Albert Chang <albert.chang@comcast.net>
Cc: www-validator@w3.org
Message-ID: <20050505061555.GC27227@us-lot.org>

On Wed, May 04, 2005 at 09:27:55PM -0400, Albert Chang wrote:

> to make use of the map, the "usemap" attribute is summoned in the
> <img> tag.  Everybody should know that to access an id, the id
> selector (#) is put before the title.

No, this isn't a style sheet, there are no id selectors. The usemap
attribute, in HTML 4.x (and XHTML 1.0) takes a URI. That URL can take
the form of a fragment identifier, which starts with the hash
character. It looks a lot like an ID selector, but is something
different.

> The problem is, according to the xhtml 1.1 regulations, we're not
> allowed to put a id selector in it at all.

This looks like another undocumented change from XHTML 1.0 Strict
(XHTML has, unfortunately quite a few of those).

http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_imapmodule

The usemap attribute is now defined as containing data in the form of
an IDREF. http://www.w3.org/TR/2004/REC-xml-20040204/#idref

-- 
David Dorward                                      http://dorward.me.uk
Received on Thursday, 5 May 2005 06:16:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:51 UTC