From e0d562e19addbf0864b907d6b056b46bb5c97197 Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Tue, 18 Jul 2023 19:06:09 -0400 Subject: [PATCH 1/2] All about:srcdoc documents are the same --- source | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/source b/source index 37c6d758c60..ab3c85dceb2 100644 --- a/source +++ b/source @@ -6948,6 +6948,25 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute document">iframe srcdoc documents.

+

A URL matches about:srcdoc if its scheme is "about", its path contains a single string "srcdoc", + its query is null, its username and password are the empty string, and its host is null.

+ +

The reason that matches about:srcdoc ensures that the + URL's query is null is because it is not + possible to create an iframe srcdoc document whose URL has a non-null query, unlike Documents whose URL matches about:blank. In other + words, the set of all URLs that match + about:srcdoc only vary in their fragment.

+

The fallback base URL of a Document object document is the URL record obtained by running these steps:

@@ -32541,8 +32560,10 @@ interface HTMLIFrameElement : HTMLElement {

The srcdoc attribute gives the content of the page that the element's content navigable is to - contain. The value of the attribute is the source of an iframe srcdoc document.

+ contain. The value of the attribute is used to construct an iframe srcdoc document, which is a Document whose + URL matches about:srcdoc.

The srcdoc attribute, if present, must have a value using the HTML syntax that consists of the following syntactic components, in the From b92cf740e3dfd1061db51e724ed81b56cef2a7c0 Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Wed, 19 Jul 2023 08:29:28 -0400 Subject: [PATCH 2/2] Group by definition type, and add `


` --- source | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/source b/source index ab3c85dceb2..ac7f492cc0a 100644 --- a/source +++ b/source @@ -6948,25 +6948,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute document">iframe srcdoc documents.

-

A URL matches about:srcdoc if its scheme is "about", its path contains a single string "srcdoc", - its query is null, its username and password are the empty string, and its host is null.

- -

The reason that matches about:srcdoc ensures that the - URL's query is null is because it is not - possible to create an iframe srcdoc document whose URL has a non-null query, unlike Documents whose URL matches about:blank. In other - words, the set of all URLs that match - about:srcdoc only vary in their fragment.

-

The fallback base URL of a Document object document is the URL record obtained by running these steps:

@@ -7007,6 +6988,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute tree order.

+
+

A URL matches about:blank if its scheme is "about", its path contains a single string "blank", its @@ -7019,6 +7002,25 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute record created by parsing "about:blank?foo#bar" matches about:blank.

+

A URL matches about:srcdoc if its scheme is "about", its path contains a single string "srcdoc", + its query is null, its username and password are the empty string, and its host is null.

+ +

The reason that matches about:srcdoc ensures that the + URL's query is null is because it is not + possible to create an iframe srcdoc document whose URL has a non-null query, unlike Documents whose URL matches about:blank. In other + words, the set of all URLs that match + about:srcdoc only vary in their fragment.

+