[whatwg/dom] Documents never have their node document set? (Issue #1178)

Sorry if I'm just failing at reading the specification, but I couldn't find where a document node's [node document](https://dom.spec.whatwg.org/#concept-node-document) is initialized. Neither [`new Document()`](https://dom.spec.whatwg.org/#dom-document-document) nor [`createHTMLDocument()`](https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument) mention it.

This would normally be an odd thing to want, since the document's node document is always itself, but we're traversing that edge when we want to get the [node navigable](https://html.spec.whatwg.org/#node-navigable) of a Document, like in https://html.spec.whatwg.org/#doc-container-document.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1178
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1178@github.com>

Received on Wednesday, 29 March 2023 22:01:46 UTC