Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add expect-no-linked-resources Document-Policy to Speculative parsing #10718

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -4386,6 +4386,21 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</ul>
</dd>

<dt>Document Policy</dt>

<dd>
<p>The following terms are defined in <cite>Document Policy</cite>:
<ref>DOCUMENTPOLICY</ref></p>

<ul class="brief">
<li><dfn data-x="concept-document-policy-configuration-point" data-x-href="https://wicg.github.io/document-policy#configuration-point">configuration point</dfn></li>
<li><dfn data-x="concept-configuration-point-type" data-x-href="https://wicg.github.io/document-policy/#configuration-point-type">configuration point type</dfn></li>
<li><dfn data-x="concept-configuration-default-value" data-x-href="https://wicg.github.io/document-policy/#configuration-point-default-value">default value</dfn></li>
<li>The <dfn data-x-href="https://wicg.github.io/document-policy/#create-document-policy">creating a document policy</dfn> algorithm</li>
<li>The <dfn data-x="get-document-policy-value" data-x-href="https://wicg.github.io/document-policy/#get-policy-value">get the document policy value</dfn> algorithm</li>
</ul>
</dd>


<dt>Payment Request API</dt>

Expand Down Expand Up @@ -5046,6 +5061,20 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</ul>


<h3 id="document-policy-controlled-features">Document Policy-controlled configuration points</h3>

<p>This document defines the following <span
data-x="concept-document-policy-configuration-point">document policy-controlled configuration
points</span>:</p>

<ul>
<li>"<dfn data-x="expect-no-linked-resources-feature"><code
data-x="">expect-no-linked-resources</code></dfn>", which has a <span
data-x="concept-configuration-point-type">type</span> of <code data-x="">boolean</code> and a
<span data-x="concept-configuration-default-value">default value</span> of <code
data-x="">false</code>.</li>
</ul>

<h3 split-filename="common-microsyntaxes">Common microsyntaxes</h3>

<p>There are various places in HTML that accept particular data types, such as dates or numbers.
Expand Down Expand Up @@ -132564,7 +132593,18 @@ document.body.appendChild(text);
<li>
<p>Optionally, return.</p>

<p class="note">This step allows user agents to opt out of speculative HTML parsing.</p>
<p class="note">This step allows user agents to opt out of speculative HTML parsing for any
reason.</p>
</li>

<li>
<p>If the result of <span data-x="get-document-policy-value">getting the document policy
value</span> for <code
data-x="expect-no-linked-resources-feature">expect-no-linked-resources</code> for
<var>parser</var>'s <span>Document</span> is true, then optionally return.</p>

<p class="note">This step allows user agents to opt out of speculative HTML parsing because the
web developer specifically believes it will be beneficial.</p>
</li>

<li>
Expand Down Expand Up @@ -144209,6 +144249,9 @@ INSERT INTERFACES HERE
<dt id="refsDEVICEPOSTURE">[DEVICEPOSTURE]</dt>
<dd>(Non-normative) <cite><a href="https://w3c.github.io/device-posture/">Device Posture API</a></cite>, D. Gonzalez-Zuniga, K. Christiansen. W3C.</dd>

<dt id="refsDOCUMENTPOLICY">[DOCUMENTPOLICY]</dt>
<dd><cite><a href="https://wicg.github.io/document-policy/">Document Policy</a></cite>, I. Clelland, W3C.</dd>

<dt id="refsDOM">[DOM]</dt>
<dd><cite><a href="https://dom.spec.whatwg.org/">DOM</a></cite>, A. van Kesteren, A. Gregor, Ms2ger. WHATWG.</dd>

Expand Down