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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>14638</bug_id>
          
          <creation_ts>2007-07-17 06:13:28 -0700</creation_ts>
          <short_desc>Image maps unusable when using XHTML 1.1</short_desc>
          <delta_ts>2007-09-30 01:16:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Adam Read">aread</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mrowe</cc>
    
    <cc>seth</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4546</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Read">aread</who>
    <bug_when>2007-07-17 06:13:28 -0700</bug_when>
    <thetext>Image maps are not usable when writing valid XHTML 1.1.  In the img usemap attribute, the id of the map needs to be prefixed with a &apos;#&apos; if the image-map is to be useable.  For valid XHTML, the &apos;#&apos; shouldn&apos;t be there.

e.g.
Valid XHTML:
&amp;lt;map id=&quot;foo&quot; ...&amp;gt;
...
&amp;lt;img usemap=&quot;foo&quot; ...&amp;gt;

Invalid, but working XHTML:
&amp;lt;map id=&quot;foo&quot; ...&amp;gt;
...
&amp;lt;img usemap=&quot;#foo&quot; ...&amp;gt;

I&apos;ve posted examples at:
http://phcrack.ca/webkit_bug/valid.xhtml
http://phcrack.ca/webkit_bug/invalid.xhtml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4544</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Read">aread</who>
    <bug_when>2007-07-17 06:15:45 -0700</bug_when>
    <thetext>(In reply to comment #0)
Didn&apos;t know the comments weren&apos;t html.

The XHTML is obviously:

Valid XHTML:
&lt;map id=&quot;foo&quot; ...&gt;
...
&lt;img usemap=&quot;foo&quot; ...&gt;

Invalid, but working XHTML:
&lt;map id=&quot;foo&quot; ...&gt;
...
&lt;img usemap=&quot;#foo&quot; ...&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2451</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-08-12 01:13:54 -0700</bug_when>
    <thetext>We do not aim to fully implement XHTML 1.1 where it disagrees with XHTML 1.0 and HTML. In this particular case, XHTML 5 draft says that &quot;the usemap attribute, if specified, must be a valid hashed ID reference to a map element&quot; - so we treat this as an bug in the XHTML 1.1 spec.

Please note that Firefox 3 betas also no longer support non-hashed idrefs in usemap, so the map in &lt;http://phcrack.ca/webkit_bug/valid.xhtml&gt; doesn&apos;t work anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2007-08-12 11:56:14 -0700</bug_when>
    <thetext>Actually this bug isn&apos;t just WONTFIX, it&apos;s INVALID. The XHTML working group has agreed several times to change usemap from IDREF to be compatible with HTML4, but they just haven&apos;t done it yet. For a history describing this issue, see this blog entry:
   http://ln.hixie.ch/?start=1172653243&amp;count=1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2465</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-08-12 12:07:06 -0700</bug_when>
    <thetext>Reopening to change status per Comment #3.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57421</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-09-30 01:15:48 -0700</bug_when>
    <thetext>*** Bug 15323 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>