Link around <object> embedding SVG doesn't work

RESOLVED INVALID

Status

()

Core
SVG
RESOLVED INVALID
13 years ago
2 years ago

People

(Reporter: Volkmar W. Pogatzki, Unassigned)

Tracking

Trunk
Points:
---
Bug Flags:
blocking1.9 -
blocking1.8.1 -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
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

13 years ago
Created attachment 184110 [details]
Link around svg object doesn't work.

Comment 2

13 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

13 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?
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

13 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

13 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?
>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. ***

Comment 10

13 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

13 years ago
Flags: blocking1.8.1?

Comment 11

12 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-
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 :-)

Updated

12 years ago
Flags: blocking1.9a2? → blocking1.9-
I think this is actually INVALID, and it would be a bug if it did work.

Updated

11 years ago
Duplicate of this bug: 349836

Comment 18

11 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

11 years ago
Summary: Link around SVG graphics objects doesn't work. → SVG embedded in html anchor: inactive

Comment 19

11 years ago
apologies for changing title, but I would have found this bug if html was present.

thanks

Comment 20

11 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

11 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

10 years ago
Summary: SVG embedded in html anchor: inactive → Link around <object> embedding SVG doesn't work
Assignee: general → nobody
QA Contact: ian → general

Comment 23

9 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?
Use <html:img> or <svg:image>.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
Duplicate of this bug: 398588

Comment 26

2 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.