W3C home > Mailing lists > Public > www-svg@w3.org > August 2003

USE element, script and external references.

From: Jim Ley <jim@jibbering.com>
Date: Sat, 16 Aug 2003 02:09:32 -0000
To: www-svg@w3.org
Message-ID: <bhk3ou$d61$1@sea.gmane.org>

Hi,

If I reference an element in an external document with:

<use xlink:href="otherDoc.svg#Moomin"/>

Are scripts in the otherDoc.svg executed?   SVG 1.1 appears silent on this,
I can't think which behaviour is appropriate - I'd assume not, however this
would lead to strange inconsistencies if the doc happened to be referenced
in an image element as here the scripts would've been executed (although
there's already the inconsistency discussed recently over 2 instances of the
image element with differing DOMs so a 3rd inconsistency may not be
unresolvable.)

ASV6pr does execute global script, and also incorrectly fires the onload
event not on the SVGInstanceElement (but others appear to be fired correctly
on a brief look), but in a seperate document, and javascript context.
Neither CSV or Batik 1.5 appear to fire the onload event at all, despite:

"if event attributes are assigned to referenced elements, then the actual
target for the event will be the SVGElementInstance object within the
"instance tree" corresponding to the given referenced element."
from SVG 1.1

None of the 3 viewers behaviour is desirable, and none appear to be in
accordance with the spec as far as I can read, so I'd also like
clarification that my understanding of the spec is correct here, before
bugging the implementors with bug reports.

Cheers,

Jim.
Received on Friday, 15 August 2003 22:09:41 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:25 GMT