Fwd: [Moderator Action] Questions about referencing behavior in SVG 1.1 2nd edition

-------- Original Message --------
Subject: [Moderator Action] Questions about referencing behavior in SVG 
1.1 2nd edition
Date: Tue, 06 Apr 2010 20:14:47 +0000
From: Cyril Concolato <cyril.concolato@telecom-paristech.fr>
Organization: Telecom ParisTech
To: SVG Working Group WG <public-svg-wg@w3.org>

Dear SVG WG member,

Reading the 2nd edition [1], I have some questions/remarks regarding the 
referencing behavior. I'd like to have your enlightenments on them.

1) What is the expected behavior in the following case:
A.svg
<svg>
<use xlink:href="B.svg#myElt"/>
</svg>

B.svg
<svg>
<g id='myElt'>
<script>alert('myElt script loaded');</script>
</g>
<script>alert('global script loaded');</script>
</svg>

Firefox 3.6.3 and Opera 10.51 do not run the script in referenced 
documents. I never see the alerts. But I cannot find the spec text that 
defines this behavior. Can someone point me to it? In particular, what 
is the processing associated to the content of the referenced element? 
Should all processes happen except rendering ?

2) The spec says:
“Unlike ‘image’, the ‘use’ element cannot reference entire files.”
Since the 'use' element is allowed in SVG 1.1 to point to an 'svg' 
element, I'm wondering if this restriction still makes sense.

3) in 1.1 SE, I cannot find similar text to the one in 1.2 Tiny about 
primary vs. resource documents [2] and about associated processing. How 
is an SVG 1.1 viewer suppose to handle multiple references to the same 
resource? Should it load the document multiple times or not? For 
example, Opera10.51 seems to load the content multiple times when using 
'image' elements. If we apply the 1.2 behavior on the image element, 
this would not be consistent.

Best regards,

Cyril


[1] http://dev.w3.org/SVG/profiles/1.1F2/publish/single-page.html
[2] 
http://www.w3.org/TR/SVGTiny12/single-page.html#linking-externalReferences
-- 
Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Mutimedia/Multimedia Group
Telecom ParisTech
46 rue Barrault
75 013 Paris, France
http://concolato.blog.telecom-paristech.fr/

Received on Tuesday, 6 April 2010 20:31:55 UTC