W3C home > Mailing lists > Public > www-html@w3.org > October 2001

Request for interpretation / clarification of USEMAP semantics

From: Marc Attinasi <attinasi@netscape.com>
Date: Tue, 09 Oct 2001 16:29:49 -0700
Message-ID: <3BC3886D.9050806@netscape.com>
To: www-html@w3.org

The spec on the usemap attribute is confusing to me (1). The value of 
the attribute is a URI, however the prose says:

'The value of usemap must match the value of the name <http://www.w3.org/TR/html4/struct/objects.html#adef-name-MAP> attribute of the associated MAP <http://www.w3.org/TR/html4/struct/objects.html#edef-MAP> element.'

I cannot take this literally, because in general practice the value of 
the usemap attribute actually has a '#' and then the name of a MAP 
element, which is a URI specification. So, my question is this: can the 
value of the usemap attribute refer to a MAP element on another page? 
For example, are the following legal:

<img SRC="map1.gif" USEMAP="map2.html#imagemap">

<img SRC="map1.gif" USEMAP="http://www.attinasi.org/map2.html#imagemap">

If not, then can the value also refer to a map on the same page, but 
referenced using a full URL? For example, consider this:

(in the file map2.html)

<img SRC="map1.gif" USEMAP="map2.html#imagemap">

- marc

[1] http://www.w3.org/TR/html4/struct/objects.html#adef-usemap
Received on Tuesday, 9 October 2001 19:34:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:58 UTC