RE: [XHR] Constructor behavior seems to be underdefined

2012-03-31 Thread Travis Leithead
> alerts true in Gecko, Chrome, Safari, and Opera. No IE on hand right now... > That > would be consistent with associating the image with the document that the > constructor object is associated with. alert's true in IE too, FYI.

Re: [XHR] Constructor behavior seems to be underdefined

2012-03-31 Thread Boris Zbarsky
On 3/31/12 2:15 AM, Cameron McCormack wrote: Boris Zbarsky: What's the document associated with xhr? Is it w1.document, w2.document, or window.document? The concept "the Window object for which the XMLHttpRequest interface object was created" doesn't seem to be defined anywhere I don't hav

Re: [XHR] Constructor behavior seems to be underdefined

2012-03-31 Thread Anne van Kesteren
On Sat, 31 Mar 2012 01:29:05 +0200, Boris Zbarsky wrote: Now consider a web page with two subframes and a script that has references to the two subframe windows in variables w1 and w2. Then the script does this: w1.XMLHttpRequest = w2.XMLHttpRequest; var xhr = new w1.XMLHttpRequest()