<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6183</bug_id>
          
          <creation_ts>2008-10-24 07:29:18 +0000</creation_ts>
          <short_desc>udom-glob-204-t.svg is an invalid test</short_desc>
          <delta_ts>2009-01-16 15:04:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SVG</product>
          <component>Micro DOM (uDOM)</component>
          <version>SVG 1.2 Tiny</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Test Suite</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Garrett">generalangrymike</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>cam</cc>
          
          <qa_contact name="SVG Public List">www-svg</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22241</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Garrett">generalangrymike</who>
    <bug_when>2008-10-24 07:29:18 +0000</bug_when>
    <thetext>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(&quot;actual&quot; + i, status); };
}

var callbacks = new Array(rows.length);

{
    for(var i = 0; i &lt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22242</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Garrett">generalangrymike</who>
    <bug_when>2008-10-24 07:31:33 +0000</bug_when>
    <thetext>A follow up:

The interface to implement for the AsynStatusCallback object is:

interface AsyncStatusCallback
{
	void operationComplete(in AsyncURLStatus status);
}

Not operationComplete as above.  Whoops.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22988</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2009-01-08 05:28:57 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Another option is to change the specification to allow functions to be passed
&gt; in, as well as an object.

This was the intention, but it seems text in the ECMAScript language binding appendix wasn&apos;t updated to allow AsyncStatusCallback to be implemented as a Function, only an EventListener.  I&apos;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
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23139</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2009-01-16 05:32:30 +0000</bug_when>
    <thetext>Erratum now published:

  http://www.w3.org/2008/12/REC-SVGTiny12-20081222-errata#E2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>