Closed
Bug 251902
Opened 21 years ago
Closed 21 years ago
wrong handling of image maps in xhtml
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 109445
People
(Reporter: mehlboggs, Assigned: jdunn)
Details
Attachments
(1 file)
|
2.39 KB,
application/zip
|
Details |
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.
Comment 1•21 years ago
|
||
could you attach an XHTML file showing this bug using
http://bugzilla.mozilla.org/attachment.cgi?bugid=251902&action=enter ?
| Reporter | ||
Comment 2•21 years ago
|
||
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.
Comment 3•21 years ago
|
||
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: 21 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•21 years ago
|
||
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?
Comment 5•21 years ago
|
||
PHP adds a content-type header itself. You need to output the right header in
your PHP code.
Verified invalid.
Status: RESOLVED → VERIFIED
Comment 6•21 years ago
|
||
use the php function header:
header("Content-Type: application/xhtml+xml;charset=iso-8859-1");
Updated•21 years ago
|
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 7•21 years ago
|
||
*** This bug has been marked as a duplicate of 109445 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•