Closed
Bug 201636
Opened 22 years ago
Closed 22 years ago
XHTML image map does't work if the map has no _name_ attribute set
Categories
(Core :: XML, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 109445
People
(Reporter: al14, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030312
Hi all,
according to the XHTML 1.0 Strict DTD the id attribute is required for a map.
However the following code doesn't work in Mozilla (does so e.g. in Konqueror):
<img src="image.jpg" usemap="#mymap" alt="An image"/>
<map id="mymap">
<area href="forfirstarea" alt="1st area" shape="rect" coords="1,1,5,5"/>
</map>
Mozilla will display the image, but seeking with the mouse cursor will show no
reaction over the area - no mouse cursor change, no reaction on mouse clicks. If
I add the "name" attribute to the map (<map id="mymap" name="mymap">) Mozilla
will show what I expect with the image map. OK I could just pretend I want
backwards compatible code. But Mozilla should not need backwards compatible
XHTML code, should it? :-)
BTW, Mozilla is great otherwise
Andreas Leuner
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•22 years ago
|
||
dup of Bug 109445.
Comment 2•22 years ago
|
||
Without a testcase I can't be sure, but I'm guessing the page is being sent as
text/html. Do that and you get HTML processing, despite the XHTML doctype. And
the name attribute is required in HTML.
*** This bug has been marked as a duplicate of 109445 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Component: Layout → XML
QA Contact: ian → petersen
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•