Re: [whatwg] Is the "document" identifier defined in the standards?

From: whatwg [mailto:whatwg-bounces@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.

Received on Monday, 24 April 2017 05:14:42 UTC