Re: quick question on xhr2 upload events

Err, yes, now that you point it out, I see that too. I'm not sure why
I didn't see it initially.

Ok, thanks!

- a

On Tue, May 20, 2008 at 7:20 PM, Sam Weinig <weinig@apple.com> wrote:
> By my reading, XMLHttpRequestUpload inherits from XMLHttpRequestEventTarget
> (which is what inherits from EventTarget)
>  [http://www.w3.org/TR/XMLHttpRequest2/#xmlhttprequest].
>  XMLHttpRequestEventTarget is what adds the old style event handler
> attributes, so XMLHttpRequestUpload should support them as well.
>
> -Sam
> On May 20, 2008, at 6:50 PM, Aaron Boodman wrote:
>
> My reading of http://www.w3.org/TR/XMLHttpRequest2/#tracking leads me
> to believe that you can do this:
>
> xhr.upload.addEventListener("progress", function(){}, false);
>
> but not this:
>
> xhr.upload.onprogress = function(){};
>
> That is, XMLHttpRequestUpload implements EventTarget, but not any
> old-style event handler function properties. Is that correct?
>
> - a
>
>
>

Received on Wednesday, 21 May 2008 02:25:38 UTC