Closed
Bug 294932
Opened 20 years ago
Closed 13 years ago
Link around <object> embedding SVG doesn't work
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
INVALID
People
(Reporter: volkmar, Unassigned)
References
Details
Attachments
(1 file)
624 bytes,
text/html
|
Details |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050519 Firefox/1.0+
<a href="foo">
<object type="image/svg+xml" data="bar" />
</a>
Object with type "image/svg+xml" prevents anchor from being rendered as link.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
This is not reduced in Linux + Cairo Firefox Build.
Resolved ?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050614 Firefox/1.0+
ID:2005061412
Comment 3•20 years ago
|
||
This bug is not reproduced with WindowsXP + GDI+ Firefox(Trunk).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050701
Firefox/1.0+
RESOLVED/WORKSFORME?
Comment 4•20 years ago
|
||
When you view the attachment, you can click on the flower things and it'll take
you to pogatzki.net? For me it shows the link in the status bar, but it does
nothing if I click on it.
Comment 5•20 years ago
|
||
(In reply to comment #4)
> When you view the attachment, you can click on the flower things and it'll take
> you to pogatzki.net? For me it shows the link in the status bar, but it does
> nothing if I click on it.
I'm sorry, I had misunderstood.
So, this bug is still reproduced.
Reporter | ||
Comment 6•20 years ago
|
||
(In reply to comment #4)
> When you view the attachment, you can click on the flower things and it'll take
> you to pogatzki.net? For me it shows the link in the status bar, but it does
> nothing if I click on it.
You can also use the tab button on your keyboard. This way, after two or three
hits the drawing gets focused and when you press ENTER it will be opened.
Also, when you right-klick on the drawing you are offered "This Frame ...".
Are other objects also handeled as frames?
Comment 7•20 years ago
|
||
>Are other objects also handeled as frames?
everything that's neither an image nor a plugin
Comment 8•19 years ago
|
||
Perhaps events should "bubble out of iframes"?
Comment 9•19 years ago
|
||
*** Bug 311097 has been marked as a duplicate of this bug. ***
Comment 10•19 years ago
|
||
Reproduced here in Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5, under Debian linux.
Updated•19 years ago
|
Flags: blocking1.8.1?
Comment 11•19 years ago
|
||
Not going to block 1.8.1 for this bug, but we'll happily consider a low-risk, baked-on-trunk patch.
Flags: blocking1.8.1? → blocking1.8.1-
Updated•19 years ago
|
Flags: blocking1.9a2?
I think events should not bubble out of SVG documents.
I do think that SVG *images* should be treated as atomic to events; events should target the image element, not the SVG elements inside the image.
Comment 13•19 years ago
|
||
That seems reasonable.... I guess we'd need to hack the ESM to handle that?
Actually, I think the cleanest way would be to modify nsSubDocumentFrame::BuildDisplayList to not descend into SVG image documents.
... For event handling, that is. It will still need to descend for painting :-)
Updated•18 years ago
|
Flags: blocking1.9a2? → blocking1.9-
I think this is actually INVALID, and it would be a bug if it did work.
Comment 18•18 years ago
|
||
os x
webkit nightly works as link with status bar text
moz status bar, no link
opera no status bar, no link
OS: Linux → All
Hardware: PC → All
Updated•18 years ago
|
Summary: Link around SVG graphics objects doesn't work. → SVG embedded in html anchor: inactive
Comment 19•18 years ago
|
||
apologies for changing title, but I would have found this bug if html was present.
thanks
Comment 20•17 years ago
|
||
http://www.w3.org/TR/2007/CR-WICD-20070718/#link-activation (WICD Core 1.0 18 July 2007 section 5.1 Link Activation) seems relevant to this bug.
I've worked round the problem by adding
style="position:relative;z-index:1;background-color:transparent!important"
to the <a> tag and
style="position:relative;z-index:-1"
to the <object> tag. This seems to work for Firefox, Seamonkey, Safari and Epiphany; but not for Opera where the link is still inactive.
(In reply to comment #20)
> http://www.w3.org/TR/2007/CR-WICD-20070718/#link-activation (WICD Core 1.0 18
> July 2007 section 5.1 Link Activation) seems relevant to this bug.
Not if we're not implementing WICD it doesn't. And I don't think we should be; its primary use case is mobile phone walled gardens, not the Web. (I was on the CDF working group for a little more than the first year of its existence.)
Comment 22•17 years ago
|
||
Even if Mozilla isn't interested in implementing the entire WICD specification, this one tiny bit really should be implemented. In Firefox's current implementation, there is no good way to make embedded SVG images link to a certain web page, which is one reason why practically no one is actually using SVG images on the web. If this bit of the specification was implemented, then it would remove a major obstacle to widespread SVG adoption.
Updated•17 years ago
|
Summary: SVG embedded in html anchor: inactive → Link around <object> embedding SVG doesn't work
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 23•15 years ago
|
||
Using map/usemap on object tag doesn't not work either when the object data
is a SVG image. Is it a related bug? Is there a way to make a SVG image clickable
**without** editing/transforming the SVG file?
Comment 24•13 years ago
|
||
Use <html:img> or <svg:image>.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Comment 26•8 years ago
|
||
I made a link around the object and add styles for firefox only
@-moz-document url-prefix(){
.your_object{
pointer-events: none;
}
}
For chrome I want to have link inside of svg to have a hover effect from svg working.
You need to log in
before you can comment on or make changes to this bug.
Description
•