Closed Bug 294932 Opened 20 years ago Closed 13 years ago

Link around <object> embedding SVG doesn't work

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: volkmar, Unassigned)

References

Details

Attachments

(1 file)

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.
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
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?
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.
(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.
(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?
>Are other objects also handeled as frames? everything that's neither an image nor a plugin
Perhaps events should "bubble out of iframes"?
*** Bug 311097 has been marked as a duplicate of this bug. ***
Reproduced here in Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5, under Debian linux.
Flags: blocking1.8.1?
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-
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.
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 :-)
Flags: blocking1.9a2? → blocking1.9-
I think this is actually INVALID, and it would be a bug if it did work.
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
Summary: Link around SVG graphics objects doesn't work. → SVG embedded in html anchor: inactive
apologies for changing title, but I would have found this bug if html was present. thanks
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.)
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.
Summary: SVG embedded in html anchor: inactive → Link around <object> embedding SVG doesn't work
Assignee: general → nobody
QA Contact: ian → general
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?
Use <html:img> or <svg:image>.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
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.

Attachment

General

Created:
Updated:
Size: