From 27ee64445722080d5d9248effe6c3024a31dd6ce Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Mon, 9 Jan 2023 21:33:20 +0000 Subject: [PATCH] Make Document origin alias its policy container's origin. This change depends on the changes in https://github.com/whatwg/html/pull/8447 which adds origin to policy container. --- dom.bs | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/dom.bs b/dom.bs index 1702bb9f..3728bfbd 100644 --- a/dom.bs +++ b/dom.bs @@ -4336,9 +4336,19 @@ dom-Range-extractContents, dom-Range-cloneContents -->
{{Document}} -

Set copy's encoding, content type, - URL, origin, type, and - mode to those of node. +

Set copy's: +

+
{{DocumentType}}

Set copy's name, public ID, and @@ -4880,8 +4890,8 @@ known as documents.

Unless stated otherwise, a document's encoding is the utf-8 encoding, content type is "application/xml", URL is "about:blank", -origin is an opaque origin, -type is "xml", and its +origin is the document's policy container's +origin, type is "xml", and its mode is "no-quirks".

A document is said to be an XML document if its type @@ -4940,7 +4950,8 @@ null if event's {{Event/type}} attribute value is "load"

The new Document() constructor -steps are to set this's origin to the origin of +steps are to set this's policy container's +origin to the origin of current global object's associated Document. [[!HTML]]

Unlike {{DOMImplementation/createDocument()}}, this constructor does not