Skip to content

Commit

Permalink
First round of fixes from feedback (still WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeenan committed Nov 4, 2022
1 parent e431c1d commit c85da3a
Showing 1 changed file with 32 additions and 26 deletions.
58 changes: 32 additions & 26 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2619,7 +2619,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x="concept-potential-destination-translate" data-x-href="https://fetch.spec.whatwg.org/#concept-potential-destination-translate">translating</dfn> a <span data-x="concept-potential-destination">potential destination</span></li>
<li><dfn data-x="concept-script-like-destination" data-x-href="https://fetch.spec.whatwg.org/#request-destination-script-like">script-like</dfn> <span data-x="concept-request-destination">destinations</span></li>
<li><dfn data-x="concept-request-priority" data-x-href="https://fetch.spec.whatwg.org/#concept-request-priority">priority</dfn></li>
<li><dfn data-x="concept-request-internalpriority" data-x-href="https://fetch.spec.whatwg.org/#concept-request-internalpriority">internalpriority</dfn></li>
<li><dfn data-x="concept-request-internal-priority" data-x-href="https://fetch.spec.whatwg.org/#concept-request-internal-priority">internal priority</dfn></li>
<li><dfn data-x="concept-request-origin" data-x-href="https://fetch.spec.whatwg.org/#concept-request-origin">origin</dfn></li>
<li><dfn data-x="concept-request-referrer" data-x-href="https://fetch.spec.whatwg.org/#concept-request-referrer">referrer</dfn></li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#synchronous-flag">synchronous flag</dfn></li>
Expand Down Expand Up @@ -7541,11 +7541,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<dfn>implicitly potentially render-blocking</dfn>, which will be defined at the individual
elements. By default, an element is not <span>implicitly potentially render-blocking</span>.</p>

<h4>FetchPriority attributes</h4>
<h4>Fetch Priority attributes</h4>

<p>A <dfn>fetchpriority attribute</dfn> is an <span>enumerated attribute</span>. The following
<p>A <dfn>fetch priority attribute</dfn> is an <span>enumerated attribute</span>. The following
table lists the keywords and states for the attribute — the keywords in the left column map to
the states in the cell in the second column on the same row as the keyword.
the states in the cell in the second column on the same row as the keyword.</p>

<table>
<thead>
Expand Down Expand Up @@ -14639,11 +14639,11 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
</div>

<p>The <dfn element-attr for="link" data-x="attr-link-fetchpriority"><code>fetchpriority</code>
</dfn>attribute is a <span>fetchpriority attribute</span> that is intended for use with
<span data-x="external resource link">external resource links</span>, where it helps set the
<span data-x="concept-request-priority">priority</span> used when
<span data-x="fetch and process the linked resource">fetching and processing the linked
resource</span></p>
</dfn>attribute is a <span>fetch priority attribute</span> that is intended for use with
<span data-x="external resource link">external resource links</span>, where it helps set the
<span data-x="concept-request-priority">priority</span> used when
<span data-x="fetch and process the linked resource">fetching and processing the linked
resource</span></p>

<div w-nodev>
<hr>
Expand All @@ -14656,11 +14656,14 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-rel">rel</code></dfn>,
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-sizes">sizes</code></dfn>,
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-type">type</code></dfn>,
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-blocking">blocking</code></dfn>,
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-disabled">disabled</code></dfn> and
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-fetchPriority">fetchPriority</code></dfn>
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-blocking">blocking</code></dfn>, and
<dfn attribute for="HTMLLinkElement"><code data-x="dom-link-disabled">disabled</code></dfn>
each must <span>reflect</span> the respective content attributes of the same name.</p>

<p>The <dfn attribute for="HTMLLinkElement"><code data-x="dom-link-fetchPriority">fetchPriority</code></dfn>
IDL attribute must <span>reflect</span> the <code data-x="attr-link-fetchpriority">fetchpriority</code>
content attribute, <span>limited to only known values</span>.</p>

<p class="note">There is no reflecting IDL attribute for the <code
data-x="attr-link-color">color</code> attribute, but this might be added later.</p>

Expand Down Expand Up @@ -14979,7 +14982,7 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<dd>Null or an algorithm accepting a <code>Document</code></dd>

<dt><dfn data-x="link options fetchpriority">fetchpriority</dfn> (default the empty string)</dt>
<dd>A <span>fetchpriority attribute</span></dd>
<dd>A <span>fetch priority attribute</span></dd>
</dl>

<p class="note">A <span>link processing options</span> has a <span
Expand Down Expand Up @@ -25017,7 +25020,7 @@ document.body.appendChild(wbr);</code></pre>
<td><span data-x="external resource link">External Resource</span></td>
<td colspan="2"><em>not allowed</em></td>
<td class="yes"> Yes </td>
<td>Specifies that the user agent must preemptively <span data-x="concept-fetch">fetch</span> and cache the target resource for current <span data-x="navigate">navigation</span> according to the <span data-x="concept-potential-destination">potential destination</span> given by the <code data-x="attr-link-as">as</code> attribute (and the <span data-x="concept-request-internalpriority">internalpriority</span> associated with the <span data-x="concept-potential-destination-translate">corresponding</span> <span data-x="concept-request-destination">destination</span>).</td>
<td>Specifies that the user agent must preemptively <span data-x="concept-fetch">fetch</span> and cache the target resource for current <span data-x="navigate">navigation</span> according to the <span data-x="concept-potential-destination">potential destination</span> given by the <code data-x="attr-link-as">as</code> attribute (and the <span data-x="concept-request-internal-priority">internal priority</span> associated with the <span data-x="concept-potential-destination-translate">corresponding</span> <span data-x="concept-request-destination">destination</span>).</td>
</tr>

<tr>
Expand Down Expand Up @@ -25737,7 +25740,7 @@ document.body.appendChild(wbr);</code></pre>
<li><p>Let <var>referrer policy</var> be the current state of <var>el</var>'s <code
data-x="attr-link-referrerpolicy">referrerpolicy</code> attribute.</p></li>

<li><p>Let <var>fetchpriority</var> be the current state of <var>el</var>'s <code
<li><p>Let <var>fetchPriority</var> be the current state of <var>el</var>'s <code
data-x="attr-link-fetchpriority">fetchpriority</code> attribute.</p></li>

<li><p>Let <var>options</var> be a <span>script fetch options</span> whose <span
Expand Down Expand Up @@ -26039,7 +26042,7 @@ document.body.appendChild(wbr);</code></pre>
preemptively <span data-x="concept-fetch">fetch</span> and cache the specified resource according
to the <span data-x="concept-potential-destination">potential destination</span> given by the
<code data-x="attr-link-as">as</code> attribute (and the <span
data-x="concept-request-internalpriority">internalpriority</span> associated with the <span
data-x="concept-request-internal-priority">internal priority</span> associated with the <span
data-x="concept-potential-destination-translate">corresponding</span> <span
data-x="concept-request-destination">destination</span>), as it is highly likely that the user
will require this resource for the current navigation. <ref spec=PRELOAD></p>
Expand Down Expand Up @@ -27782,9 +27785,9 @@ interface <dfn interface>HTMLImageElement</dfn> : <span>HTMLElement</span> {
data-x="attr-img-decoding-auto-state">auto</span> state.</p>

<p>The <dfn element-attr for="img" data-x="attr-img-fetchpriority"><code>fetchpriority</code></dfn>
attribute is a <span>fetchpriority attribute</span>. Its purpose is to set the
attribute is a <span>fetch priority attribute</span>. Its purpose is to set the
<span data-x="concept-request-priority">priority</span> used when
<span data-x="concept-fetch">fetching</span> the image</p>
<span data-x="concept-fetch">fetching</span> the image.</p>

<p>The <dfn element-attr for="img" data-x="attr-img-loading"><code>loading</code></dfn> attribute is a <span>lazy
loading attribute</span>. Its purpose is to indicate the policy for loading images that are
Expand Down Expand Up @@ -31805,7 +31808,7 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
data-x="attr-iframe-referrerpolicy">referrerpolicy</code> content attribute.</p></li>

<li><p>Let <var>fetchPriority</var> be the current state of <var>element</var>'s <code
data-x="attr-iframe-fetchpriority">fetchpriority</code> content attribute.</p></li>
data-x="attr-iframe-fetchpriority">fetchpriority</code> content attribute.</p></li>

<li><p>Set <var>element</var>'s <span>current navigation was lazy loaded</span> boolean to
false.</p></li>
Expand Down Expand Up @@ -32277,7 +32280,7 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
</ol>

<p>The <dfn element-attr for="iframe" data-x="attr-iframe-fetchpriority">
<code>fetchpriority</code></dfn> attribute is a <span>fetchpriority attribute</span>. Its purpose
<code>fetchpriority</code></dfn> attribute is a <span>fetch priority attribute</span>. Its purpose
is to set the fetchpriority used when <span
data-x="process the iframe attributes">processing the <code>iframe</code> attributes</span>.</p>

Expand Down Expand Up @@ -59729,7 +59732,7 @@ interface <dfn interface>HTMLScriptElement</dfn> : <span>HTMLElement</span> {

<p>The <dfn element-attr for="script"><code
data-x="attr-script-fetchpriority">fetchpriority</code></dfn> attribute is a
<span>fetchpriority attribute</span>. Its purpose is to set the <span
<span>fetch priority attribute</span>. Its purpose is to set the <span
data-x="concept-request-priority">priority</span> used when <span
data-x="concept-fetch">fetching</span> the script.</p>

Expand All @@ -59749,12 +59752,15 @@ interface <dfn interface>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
data-x="dom-script-src">src</code></dfn>, <dfn attribute for="HTMLScriptElement"><code
data-x="dom-script-type">type</code></dfn>, <dfn attribute for="HTMLScriptElement"><code
data-x="dom-script-defer">defer</code></dfn>, <dfn attribute for="HTMLScriptElement"><code
data-x="dom-script-integrity">integrity</code></dfn>, <dfn attribute
for="HTMLScriptElement"><code data-x="dom-script-blocking">blocking</code></dfn>, and <dfn
attribute for="HTMLScriptElement"><code
data-x="dom-script-fetchPriority">fetchPriority</code></dfn>, must each
data-x="dom-script-integrity">integrity</code></dfn>, and <dfn attribute
for="HTMLScriptElement"><code data-x="dom-script-blocking">blocking</code></dfn>, must each
<span>reflect</span> the respective content attributes of the same name.</p>

<p>The <dfn attribute for="HTMLScriptElement"><code
data-x="dom-script-fetchPriority">fetchPriority</code></dfn>IDL attribute must
<span>reflect</span> the <code data-x="attr-script-fetchpriority">fetchpriority</code>
content attribute, <span>limited to only known values</span>.</p>

<p>The <dfn attribute for="HTMLScriptElement"><code
data-x="dom-script-referrerPolicy">referrerPolicy</code></dfn> IDL attribute must
<span>reflect</span> the <code data-x="attr-script-referrerpolicy">referrerpolicy</code> content
Expand Down Expand Up @@ -95810,7 +95816,7 @@ document.querySelector("button").addEventListener("click", bound);
<dt><dfn data-x="concept-script-fetch-options-fetch-priority">fetch priority</dfn></dt>

<dd><p>The <span data-x="concept-request-priority">priority</span> used for the
initial fetch</p></dd>
initial fetch</p></dd>

</dl>

Expand Down

0 comments on commit c85da3a

Please sign in to comment.