Closed Bug 251902 Opened 20 years ago Closed 20 years ago

wrong handling of image maps in xhtml

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 109445

People

(Reporter: mehlboggs, Assigned: jdunn)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7) Gecko/20040616

XHTML spec knows the attribute "id" for the tag "map". The attribute "name" is
in XHTML 1.1 no longer allowed. If you use only the "id" attribute, it won't
work in Mozilla (1.7). On MouseOver is o the entire image a "click cursor", but
nothing happens on click.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Oops, there is a differnece in the behaviour if the files are extended .html or
.xhtml. It didn't occured to me before, because I use the extension .php.

If you use the id attribute within a html document it won't work. By using the
name attribute the document will be invalid but working. On .xhtml extension
the "id" file is valid and works and the "name" file neither is valid nor
works.
What you're describing is what is supposed to happen.

If you serve an XHTML file as text/html (or have a local file saved as .html),
HTML rules apply because it's parsed as HTML.

Files saved locally as .xhtml are treated as application/xhtml+xml files and are
parsed as XML.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
I tried it within the document:

<meta http-equiv="content-type" content="application/xhtml+xml;
charset=ISO-8859-1" />

and in a .htaccess file on the same level as the php-file:

AddType	application/xhtml+xml;charset=iso-8859-1	php

Nothing has changed, what am I doing wrong?
PHP adds a content-type header itself.  You need to output the right header in
your PHP code.

Verified invalid.
Status: RESOLVED → VERIFIED
use the php function header:
header("Content-Type: application/xhtml+xml;charset=iso-8859-1");
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 109445 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: