Closed Bug 322384 Opened 19 years ago Closed 19 years ago

Image maps - application/xhtml+xml - usemap value now incorrectly requires #

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 290422

People

(Reporter: shadow2531, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060104 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060104 Firefox/1.6a1

Image maps in xml documents no longer work. The usemap attribute now requires the presence of # in the usemap value as if it was text/html. This is a regression.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
The image maps do not work. The link in each image is not present. The hand cursor in the first 2 images is present over the whole image instead of just the part where the link is supposed to be. This behavior usually happens in Firefox when Firefox can't find what the usemap value references.
Attached file Test case
Attached file Workaround
This behavior changed with bug 290422.
As you can see in that bug, the presence of # is/should be required.

*** This bug has been marked as a duplicate of 290422 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Thanks.

This is crazy.  First XHTML 1.1 is correct. Then XHTML 1.1 is incorrect. Then I contact W3C and they say that the usemap attribute being type IDREF is definitely not a mistake; although it will be changed back to URI in XHTML 2. 

Then, I notice that Firefox instead goes by mime type instead of doctype and I was told that was because XML handling overrules the doctype and XML mime type requires IDREF for the usemap and that it should match an id attribute. Then, I was told text/html rules require that usemap must be of type URI and match a name attribute. Those were the reasons why Firefox went by mime type and bug reports here can back those reasons.

Now, I see that XHTML 1.1 is incorrect (which is fine) and Firefox's previous mime type behavior is not being used anymore even though there was valid reasons for doing it.

Crazy, but O.K., I see the rule is now (for now at least) that usemap is of type URI in *all* situations and must contain #. If it's text/html, the UA should look for the name attribute. If it's an xml doc, the UA should look for the id attribute.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: