Closed
Bug 204522
Opened 22 years ago
Closed 16 years ago
SVG when used as data in an HTML object disables usemap attribute.
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mozilla, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030422
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030422 {build ID: 2003042511}
When using an otherwise properly displayed SVG XML file as data in an HTML
object element, the usemap attributes of that object ceases to function. When
substituting the SVG data by an arbitrary image file (GIF) the usemap functions
as expected. Therefore the object phrase seems okay.
Reproducible: Always
Steps to Reproduce:
1. Build XML and SVG files as appended
2. Load
==> usemapvb.html <==
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 3.2 Strict//EN"
<html>
<head>
<title>usemaps</title>
<link rel="StyleSheet" type="text/css" href="/Styles/plain.css">
</head>
<body>
<map name="mapname">
<area href="link1.html"
title="link exampl"
target="_top" shape="rect" coords="010,010,040,040">
</map>
<object border="0" usemap="#mapname"
height="100" width="100"
data="usemapvb-svg.xml"/>
==> usemapvb-svg.xml <==
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg"
width="100" height="100" x="0" y="0">
<g>
<circle cx="20" cy="20" r="20" fill="yellow" stroke="yellow"
fill-opacity=".7" stroke-width="1" />
</g>
</svg>
Actual Results:
Link specified in map is not available.
Expected Results:
Provide link in rendere SVG image.
Comment 1•22 years ago
|
||
This is the same bug as the bug on not being able to do SVG images via <img>.
Image maps are handled in nsImageFrame, and the current SVG impl only supports
full-page svg, using an iframe inside the object.
Whiteboard: DUPEME
Comment 2•22 years ago
|
||
This works for me using the GDI build 2004020916 on Win2K.
Comment 3•22 years ago
|
||
Comment 4•22 years ago
|
||
Comment 5•22 years ago
|
||
I guess you can't get attachments to link together then.
Comment 6•22 years ago
|
||
Really, this works for you?
It doesn't work for me. Displays the yellow circle but no link...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 7•22 years ago
|
||
Sorry, I read that all wrong. For some reason I thought that the bug was for the
circle not displaying. :-/
Comment 8•21 years ago
|
||
Mass reassign of SVG bugs that aren't currently being worked on by Alex to
general@svg.bugs. If you think someone should be assigned to your bug you can
join the #svg channel on mozilla.org's IRC server ( irc://irc.mozilla.org/svg )
where you can try to convince one of the SVG hackers to work on it. We aren't
always there, so if you don't get a response straight away please try again later.
Assignee: alex → general
Comment 9•20 years ago
|
||
So is this a duplicate of bug 276431 then per comment 1?
Comment 10•16 years ago
|
||
SVG in HTML <object> is treated as a document. Even after SVG as an image is supported, that will continue to be the case. To use usemaps with SVG embedded by reference you will need to do the embedding using <img> not <object>, and once we support SVG as an image using <img>, usemaps should "just work".
Since this is for <object> and we don't support usemaps for content rendered as a document, this is invalid.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•