Inline SVG links do not open new tabs/screens even if target is a unknown frame (e.g. _blank)




12 years ago
12 years ago


(Reporter: reineckefuchs, Unassigned)


1.8 Branch
Windows 2000

Firefox Tracking Flags

(Not tracked)




12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8) Gecko/20051025 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8) Gecko/20051025 Firefox/1.5

Here is the inline SVG code, in case it's my fault. SVG displays fine but clicking the inline xlink does not open a new tab or window but replaces the active site. 

<html xmlns="">
<title>SVG embedded inline in XHTML</title>
<svg xmlns="" version="1.1" xmlns:xlink="">
<a xlink:href="" target="_blank">
<text x="10" y="50" fill="blue" text-anchor="left" text-decoration="underline">

Reproducible: Always

Steps to Reproduce:
1. Create document using above code, be sure to name ".xhtml"
2. Open the file with Firefox 1.5 RC1 and click the link text.

Actual Results:  
Notice that the link is opened in the same tab/window.

Expected Results:  
The link should open a new tab/window.

I do not know a workaround right now, I appreciate a notice if there is one. Should be fixed in a final "Inline-SVG-ready" version, though.

Comment 1

12 years ago
Adding a xlink:target="_blank" and/or xlink:show="new" does not change that behaviour.

This bug makes links in SVGs useles, especially for SVGs embedded via an <object> tag: the new link replaces the contents of the object-frame, instead the current tab/window. 

And opening a website in a 100x50 pixel iframe is just plain useless..

Btw, this happens on ALL platforms and OS, I couldn't change the fields on this bug, tho.

Comment 2

12 years ago
Using xlink:show="new" WFM in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 if I set the tab options not to force all links to open in the same window / new tab?

target="_blank" seems invalid, xlink:target certainly is, as I coudn't find a mention of it in XLink specification.

Comment 3

12 years ago

Search for "xlink:show", it also lists "target". It refers to the HTML/XHTML spec, and browsing that I read targe="_blank".

I have "open web browser links in: new tab" set and the SVG link
still opens inside the <object> tag space, not in the window or tab. See:

And scroll down to the very bottom and click on any node in the SVG
example. Can send a screenshot if you want :)

I wouldn't complain if it replaced the window/tab, but opening inside the SVG space doesn't make sense. (unless the newly loaded content is exactly the same size)

Comment 4

12 years ago
ok, forgot to look in the SVG spec.
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch

Comment 5

12 years ago
Probably related, I cannot right-click and select "Open in new tab/window", and middle-click does nothing.

Comment 6

12 years ago

*** This bug has been marked as a duplicate of 300868 ***
Last Resolved: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.