From e853bf8d6422b26f5508290ab5bbbaed41b6add2 Mon Sep 17 00:00:00 2001 From: "Alex N. Jose" Date: Tue, 22 Oct 2024 18:53:32 -0700 Subject: [PATCH 1/2] Add expect-no-linked-resources Document-Policy to Speculative parsing (#1) * Add expect-no-linked-resources Document-Policy to Speculative HTML parsing --- source | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/source b/source index f27cfb126c9..fdb504b0e86 100644 --- a/source +++ b/source @@ -4376,6 +4376,21 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute +
Document Policy
+ +
+

The following terms are defined in Document Policy: + DOCUMENTPOLICY

+ + +
+
Payment Request API
@@ -4879,6 +4894,18 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute +

Document Policy-controlled configuration points

+ +

This document defines the following document policy-controlled configuration points:

+ + +

Common microsyntaxes

There are various places in HTML that accept particular data types, such as dates or numbers. @@ -131927,6 +131954,8 @@ document.body.appendChild(text);

This step allows user agents to opt out of speculative HTML parsing.

+
  • If the result of getting the document policy value for expect-no-linked-resources for parser's Document is true, then the user agent may return.

  • +
  • If parser's active speculative HTML parser is not null, then stop the speculative HTML parser for parser.

    @@ -143761,6 +143790,9 @@ INSERT INTERFACES HERE
    [PERMISSIONSPOLICY]
    Permissions Policy, I. Clelland, W3C.
    +
    [DOCUMENTPOLICY]
    +
    Document Policy, I. Clelland, W3C.
    +
    [PICTUREINPICTURE]
    (Non-normative) Picture-in-Picture, F. Beaufort, M. Lamouri, W3C
    From c1615b461430a4d732924c0f08191fd8edc80fb0 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 23 Oct 2024 11:21:02 +0900 Subject: [PATCH 2/2] Rewrapping and other minor tweaks --- source | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/source b/source index b8c5185bba4..0734c855bd3 100644 --- a/source +++ b/source @@ -5064,12 +5064,14 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

    Document Policy-controlled configuration points

    This document defines the following document policy-controlled configuration points:

    + data-x="concept-document-policy-configuration-point">document policy-controlled configuration + points:

      -
    • "expect-no-linked-resources", which has a type of boolean and a default value of "expect-no-linked-resources", which has a type of boolean and a + default value of false.
    @@ -132591,10 +132593,19 @@ document.body.appendChild(text);
  • Optionally, return.

    -

    This step allows user agents to opt out of speculative HTML parsing.

    +

    This step allows user agents to opt out of speculative HTML parsing for any + reason.

  • -
  • If the result of getting the document policy value for expect-no-linked-resources for parser's Document is true, then the user agent may return.

  • +
  • +

    If the result of getting the document policy + value for expect-no-linked-resources for + parser's Document is true, then optionally return.

    + +

    This step allows user agents to opt out of speculative HTML parsing because the + web developer specifically believes it will be beneficial.

    +
  • If parser's active speculative HTML parser is not null, then @@ -144238,6 +144249,9 @@ INSERT INTERFACES HERE

    [DEVICEPOSTURE]
    (Non-normative) Device Posture API, D. Gonzalez-Zuniga, K. Christiansen. W3C.
    +
    [DOCUMENTPOLICY]
    +
    Document Policy, I. Clelland, W3C.
    +
    [DOM]
    DOM, A. van Kesteren, A. Gregor, Ms2ger. WHATWG.
    @@ -144446,9 +144460,6 @@ INSERT INTERFACES HERE
    [PERMISSIONSPOLICY]
    Permissions Policy, I. Clelland, W3C.
    -
    [DOCUMENTPOLICY]
    -
    Document Policy, I. Clelland, W3C.
    -
    [PICTUREINPICTURE]
    (Non-normative) Picture-in-Picture, F. Beaufort, M. Lamouri, W3C