<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>817</bug_id>
          
          <creation_ts>2004-07-03 21:57:18 +0000</creation_ts>
          <short_desc>Image map usemap attribute does not validate</short_desc>
          <delta_ts>2004-07-12 17:28:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.6.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.veiled-chameleon.com/xhtml-test/image-map-does-not-work.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff">bugzilla</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2063</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff">bugzilla</who>
    <bug_when>2004-07-03 21:57:19 +0000</bug_when>
    <thetext>Please visit the attached URL for a concise description and an example of this 
problem.

In a nutshell: The content of the &quot;usemap&quot; attribute in an image tag MUST 
begin with a &quot;#&quot; character in order for its associated image map to be 
functional. However, the code will NOT validate if the &quot;#&quot; character is 
present.

Googling this problem has resulted in repeated claims that the validator is 
wrong, and that the code with the &quot;#&quot; is valid XHTML 1.1. Can you verify this 
for me, or, barring that, explain how to make the code both validate and 
function properly?

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2004-07-04 05:46:46 +0000</bug_when>
    <thetext>Don&apos;t trust Google, the validator is correct :)

In XHTML 1.1, usemap is defined as IDREF, and IDREFs cannot start with &quot;#&quot;. 
http://www.w3.org/TR/REC-xml/#idref

If you want your image maps to work with mainstream browsers and your documents
to validate, use XHTML 1.0 (see also below).  It defines usemap as CDATA
(through &amp;URI;), and you can happily use usemap=&quot;#foo&quot; which, unlike the XHTML
1.1 version usemap=&quot;foo&quot;, works with most browsers.

XHTML 1.0 is the current de facto recommendation for HTML, by the way; there are
very few if any browsers out there that really support XHTML 1.1. 
http://www.w3.org/TR/html/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2080</commentid>
    <comment_count>2</comment_count>
    <who name="">gohankid7_7</who>
    <bug_when>2004-07-12 13:28:27 +0000</bug_when>
    <thetext>The &quot;#&quot; is not supposed to be used. Mozilla 1.7 correctly uses the image map.
Here is a sample piece of code:

&lt;img style=&quot;border-width:0px&quot; src=&quot;packages.jpg&quot; alt=&quot;packages&quot; usemap=&quot;doodles&quot; /&gt;

and later:

&lt;map id=&quot;doodles&quot;&gt;
&lt;area shape=&quot;rect&quot; alt=&quot;Package 58&quot; coords=&quot;290,75,310,95&quot; href=&quot;doodle.html&quot; /&gt;
&lt;area shape=&quot;rect&quot; alt=&quot;Hyman Stadium&quot; coords=&quot;69,10,215,42&quot; href=&quot;doodle2.html&quot; /&gt;
&lt;/map&gt;

This works in Mozilla, but not IE. I had the same problem.

Signed,
gohankid77</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>