Closed Bug 448506 Opened 16 years ago Closed 16 years ago

xlink:show="new" does not work in SVG

Categories

(Core :: SVG, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: A.Mueller, Assigned: longsonr)

References

()

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

we have the following code segment in a SVG which is included into a html with <embed>
<text x="0" y="46" class="normal2">expltext <a xlink:href="http://www.nowhere.de" xlink:show="new" focusHighlight="none">text</a></text>
but xlink:show="new" is ignored by FF 

Reproducible: Always

Steps to Reproduce:
start URL
click on uismedia

Actual Results:  
the URL will be shown inside the embed

Expected Results:  
the URL should be shown as a new window. This works fine with Opera, Safari and IE
Attached patch patch (obsolete) — Splinter Review
You should really be using target rather than xlink:show. xlink:show is or will be deprecated (http://www.w3.org/TR/SVGMobile12/linking.html#xlinkRefAttrs) and is only relevant when there is no target attribute.
Assignee: nobody → longsonr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #331726 - Flags: review?(jwatt)
Assignee: longsonr → nobody
Status: ASSIGNED → NEW
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
Assignee: nobody → longsonr
Attached patch updated patch (obsolete) — Splinter Review
On second thoughts it makes sense that xlink:show="replace" skip GetBaseTarget.
Attachment #331726 - Attachment is obsolete: true
Attachment #331728 - Flags: review?(jwatt)
Attachment #331726 - Flags: review?(jwatt)
(In reply to comment #1)
> You should really be using target rather than xlink:show. xlink:show is or will
> be deprecated (http://www.w3.org/TR/SVGMobile12/linking.html#xlinkRefAttrs) and
> is only relevant when there is no target attribute.
> 
Unfortunately Adobe SVGViewer 3.x which is based on SVG 1.1 does not understand target="_blank"
You could try using both attributes I suppose.
(In reply to comment #4)
> You could try using both attributes I suppose.
> 
I tried this but it doesnt work. It seems the target attribute has a higher priority in ASV too. Unfortunately only target="_top" works with ASV and this attribute replace the window in FF but do not open a new one. 
Attachment #331728 - Flags: review?(jwatt) → review+
Attachment #331728 - Flags: superreview?(roc)
Comment on attachment 331728 [details] [diff] [review]
updated patch

+      aTarget.AssignLiteral("_blank");
+    case 1:

Add a comment to make it clear you fall through to the return. Actually, better to just add a 'return'.
Attachment #331728 - Flags: superreview?(roc) → superreview+
Attached patch for check-inSplinter Review
Attachment #331728 - Attachment is obsolete: true
checked in 3ec0cb079898
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: