From: whatwg [mailto:whatwg-boun...@lists.whatwg.org] On Behalf Of Kevin Chen

> But I do not see a guarantee within the standards that the browser will 
> provide an object called "document" containing the current document object 
> (irrespective of the fact that this does seem to be the case in practice).

This is specified at https://html.spec.whatwg.org/#window as

> [Unforgeable] readonly attribute Document document;

and if you click on "document" there it takes you to 
https://html.spec.whatwg.org/#dom-document-2 which says

> The document IDL attribute, on getting, must return this Window object's 
> associated Document.

Reply via email to