Re: Selection of a document that doesn't have a window

On 1/17/12 4:55 PM, Ian Hickson wrote:
> On Fri, 13 Jan 2012, Boris Zbarsky wrote:
>> On 1/13/12 2:37 AM, Simon Pieters wrote:
>>> HTML uses this concept in lots of places, e.g.
>>> http://www.whatwg.org/specs/web-apps/current-work/#cookie-free-document-object
>>>
>>> "A Document that has no browsing context."
>>
>> Ah, that's better than using defaultView (because behavior for
>> defaultView on navigation and such is not defined in the spec and is not
>> consistent across browsers).
>
> What's undefined about defaultView?

The main question is what, if anything, happens to it on document unload 
or destruction of the browsing context.  If I read the spec right, 
defaultView should just stay the same across those operations, but it's 
not clear to me whether it's on purpose.  It certainly doesn't match UAs 
in all cases, but UAs don't match each other very well either.

-Boris

Received on Tuesday, 17 January 2012 22:17:04 UTC