Re: [PageVisibility] What should the visibility API return on documents without an associated Window?

On 9/28/11 4:28 PM, Arvind Jain wrote:
> I'm not sure I understand. If the page has no window, how does any
> other window.* property work?

It doesn't, but the visibility API is on Document, not Window.

As a concrete example:

   var xhr = new XMLHttpRequest();
   // do a fetch with it
   var doc = xhr.responseXML;
   alert(doc.hidden);
   alert(doc.visibilityState);

what gets alerted?

-Boris

Received on Thursday, 29 September 2011 00:59:35 UTC