W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 1999

Re: Implementation Query: <MAP> with mixed <AREA> <A> !?

From: Dave Raggett <dsr@w3.org>
Date: Tue, 26 Oct 1999 14:17:23 +0100 (GMT Daylight Time)
To: Ian Hickson <py8ieh=www-html@bath.ac.uk>
cc: www-html-editor@w3.org, lehors@w3.org, ij@w3.org, www-html@w3.org
Message-ID: <Pine.WNT.4.10.9910261410120.268-100000@OEMCOMPUTER>
On Sat, 23 Oct 1999, Ian Hickson wrote:

> When trying to implement client side image maps in Mozilla, we
> have hit a problem.
> The following is valid XHTML:
>    <p><img src="x" alt="text" usemap="#map" /></p>
>    <map id="map">
>       <p><a href="#a" shape="rect" coords="10,10,20,20">A</a></p>
>       <area href="#b" shape="rect" coords="30,30,40,40">B</area>
>    </map>
> But, assuming images are disabled or the UA does not support images,
> how should the above be rendered?
> I need to know what the expected behaviour as we are currently trying
> to implement this in Mozilla.
> With the content model of MAP in HTML4 this was not an issue,
> since in that case AREAs and other content could not be mixed in
> MAP elements. Previously, if the MAP contained only AREA
> elements then the AREA elements would be turned into a menu and
> would replace the IMG altogether, and if the MAP contained mix
> content then the IMG would be replaced by its alt text, made
> inert, and the MAP would be renderered inline where it appeared
> in the document.

The first element in the map element renders as a paragraph with
a hypertext link. The second should be rendered as a hypertext
link, as if the content of the map element were:

  <p><a href="#a">A</a></p>
  <a href="#b">B</a>

If the area element appear as an empty element, e.g.

  <area href="#b" alt="B" shape="rect" coords="30,30,40,40" />

Then this would still be rendered as before, using the alt text
in place of the area element's content.

The HTML working group is looking into the use of the SVG path
mechanism as a more general way to specify outlines for a future
version of XHTML.


-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Tuesday, 26 October 1999 09:21:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:21 UTC