This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
According to the specification at: http://www.w3.org/TR/SVGMobile12/svgudom.html#svg__SVGGlobal_getURL void getURL(in DOMString iri, in AsyncStatusCallback callback) GetUrl must pass in an object for the AsynStatusCallback. This object must implement the interface of operationComplete. The ECMA script bindings have the same requirements. http://www.w3.org/TR/SVGMobile12/ecmascript-binding.html In the test file the following code is used: function callback(i) { this.fn = function(status) { updateStatus("actual" + i, status); }; } var callbacks = new Array(rows.length); { for(var i = 0; i < rows.length; i++) { constructRow(i); callbacks[i] = new callback(i); getURL(rows[i].url, callbacks[i].fn); } } This is invalid according to the specification. this.fn should be changed to this.operationComplete and getURL(rows[i].url, callbacks[i].fn); should be changed to: getURL(rows[i].url, callbacks[i]); Another option is to change the specification to allow functions to be passed in, as well as an object.
A follow up: The interface to implement for the AsynStatusCallback object is: interface AsyncStatusCallback { void operationComplete(in AsyncURLStatus status); } Not operationComplete as above. Whoops.
(In reply to comment #0) > Another option is to change the specification to allow functions to be passed > in, as well as an object. This was the intention, but it seems text in the ECMAScript language binding appendix wasn't updated to allow AsyncStatusCallback to be implemented as a Function, only an EventListener. I've added a draft erratum for this to be discussed by the WG: http://dev.w3.org/SVG/profiles/1.2T/errata/errata.xml#asyncstatuscallback-function
Erratum now published: http://www.w3.org/2008/12/REC-SVGTiny12-20081222-errata#E2