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

Re: externalResourcesRequired and SVGLoad

From: Gavin Kistner <gavin@refinery.com>
Date: Thu, 23 Oct 2003 11:10:10 -0600
Cc: <www-svg@w3.org>
To: "Denis Bohm" <denis@fireflydesign.com>
Message-Id: <C222E7C8-057B-11D8-8A8A-0003937E984E@refinery.com>

On Thursday, October 23, 2003, at 10:48  AM, Denis Bohm wrote:
> Is there any way to detect an error (external resource not found)?

Continuing the quote on externalResourcesRequired="true":
"...If a timeout event occurs on a required resource, then the document 
goes into an error state (see Error processing [2] ). The document 
remains in an error state until all required resources become 

You want to trap the error using the SVGError event [3] which is part 
of the Document Events Attribute module, DocumentEvents.attrib, and 
hence (I believe) applies only to the SVGDocument. I suspect the error 
will bubble on up if the external resource fails to load, but I'm just 

[1] http://www.w3.org/TR/SVG11/struct.html#ExternalResourcesRequired
[2] http://www.w3.org/TR/SVG11/implnote.html#ErrorProcessing
[3] http://www.w3.org/TR/SVG11/script.html#OnErrorEventAttribute
Gavin Kistner @ Refinery, Inc.
work: +1.303.444.1777
Received on Thursday, 23 October 2003 13:11:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:59 UTC