Closed Bug 297558 Opened 19 years ago Closed 19 years ago

no support for nested xlink:href and @target


(Core :: SVG, defect)

Windows XP
Not set





(Reporter: nexum, Unassigned)


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050610 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050610 Firefox/1.0+

as I'm currently developing a SVG-application - I had to experience that it's
neither possible to use nested xlinks (give a hole group one behaviour and
change for some elements within this group this behaviour) nor to use a target.

Feel free to concider following code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
<svg xmlns="" width="100%" height="100%"
	<style type="text/css">
	<g id="church">
		<a xlink:href="" target="_blank">
			<g id="surface">
				<a xlink:href="">
					<polyline id="surface01_1_" class="stx" points="670.2,336.6 637.1,343.9
641,369.3 674.5,361.5 " />
				<polyline id="surface02_1_" class="st2" points="654.9,415.2 654.2,447.7
695.3,447.5 695.1,418.4 688.9,415.2 " />

Reproducible: Always

Steps to Reproduce:
save the code above as .svg and load in FF 1.0+
Actual Results:  
1. only the parent-link works (
2. @target on anchor does not work

Expected Results:  
1. there should be 2 links ( &
2. should open as a new document
3. tried to change the structure of the document - no result
Where in the SVG spec does it say that you can do this? Note that SVG doesn't
re-use XLink, it just co-opts XLink's attributes for its own purposes.
(In reply to comment #1)
ok, so please let me ask.

on it says:
A simple link is defined for each separate rendered element contained within the
'a' element; thus, if the 'a' element contains three 'circle' elements, a link
is created for each circle. For each rendered element within an 'a' element, the
given rendered element is the local resource (the source anchor for the link).

wouldn't it then be logical that a nested xlink can change the behaviour of a
selected element?

Also I'd like to refer to and concerning the target attribute.

I think the discussion from Norman Walsh
describes better then I'd be able to formulate the topic.

If I'm completely wrong, please let me know about my misunderstanding.
Depends on: 127903
The nesting part of this bug is a dup of bug 110817.
And the target bit was fixed in bug 300868. Marking this as a dup of bug 110817 for the remaining nested links bit.

*** This bug has been marked as a duplicate of 110817 ***
Closed: 19 years ago
No longer depends on: 127903
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.