W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [XHR] Need to define the behavior when the Window the XHR is created from does not have an associated document

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 14 Dec 2012 18:54:03 +0100
Message-ID: <CADnb78h3sMjTRybL0_P-DCruofuRe5-mP-c6YrmmX_iR8hKxeA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Jungkee Song <jungkee.song@samsung.com>, public-webapps@w3.org
On Fri, Dec 14, 2012 at 6:40 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> Which other case?  The document.open() one?  In that case, there is no
> problem with the document per se; the only question is whether the XHR has
> an associated document object at all in that case...  and per spec not
> having one does NOT cause open() to throw.

So you're saying that while there is an old Window object that the
XMLHttpRequest interface object is on, it no longer has an associated
Document object? I thought there was a 1:1 mapping. That would mean
http://xhr.spec.whatwg.org/#dom-xmlhttprequest is bogus. If a Window
object potentially has a Document object given this edge case I
suppose what I would propose is that when it does not have one, XHR's
document is set to null, and we throw for xhr.open().

Received on Friday, 14 December 2012 17:54:50 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:50 UTC