Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Dec 15, 2023
1 parent 3f6a6b8 commit 32618d0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -25859,7 +25859,7 @@ document.body.appendChild(wbr);</code></pre>

<tr>
<td><code data-x="rel-expect">expect</code></td>
<td colspan="3"><span>Hyperlink</span></td>
<td><span>Hyperlink</span></td>
<td colspan="2"><em>not allowed</em></td>
<td class="no"> &middot; </td>
<td class="no"> &middot; </td>
Expand Down Expand Up @@ -26337,8 +26337,9 @@ document.body.appendChild(wbr);</code></pre>
<p>There is no default type for resources given by the <code data-x="rel-expect">expect</code>
keyword.</p>

<p>To <dfn>process <code data-x="rel-expect">expect</code> link</dfn> <var>el</var>: If all of the
following are true:</p>
<p>To <dfn>process <code data-x="rel-expect">expect</code> link</dfn> <var>el</var>:</p>

<p>If all of the following are true:</p>

<ul class="brief">
<li><p><var>el</var> is <span>browsing-context connected</span>;</p></li>
Expand Down Expand Up @@ -26368,39 +26369,38 @@ document.body.appendChild(wbr);</code></pre>
data-x="rel-expect">expect</code>.</p></li>

<li><p>When the environment changes or the link's <code data-x="attr-link-media">media</code>
attribute changes.</p></li>
attribute changed.</p></li>
</ul>

<p>To <dfn>resolve <code data-x="rel-expect">expect</code> links</dfn> given a
<code>Document</code> <var>doc</var> and <var>steps</var>, which is an algorithm that takes a
<code>link</code> element and returns a boolean: <span
data-x="list iterate">For each</span> <var>element</var> in
<var>doc</var>'s <span>render-blocking element set</span>: If <var>element</var> is a
<code>link</code> element whose <code data-x="attr-link-rel">rel</code> attribute is <code
data-x="rel-expect">expect</code>, run <var>steps</var> given <var>element</var>. If that returned
true, <code>unblock rendering</code> on <var>element</var>.</p>
<code>link</code> element and returns a boolean: </p>

<p>To <dfn>unblock on all expected elements</dfn> given a <code>Document</code>
<var>doc</var>, <span>resolve <code data-x="rel-expect">expect</code> links</span> given
<var>doc</var> and true.</p>

<p>To <dfn>potentially unblock on expected element</dfn> <var>el</var>: If <var>el</var>'s <span
data-x="concept-id">ID</span> is set, then <span>resolve <code
data-x="rel-expect">expect</code> links</span> given <var>el</var>'s
<span>node document</span> and the following steps given <code>link</code> element
<var>link</var>:</p>
<p>To <dfn>potentially unblock on expected element</dfn> <var>el</var>: <span
data-x="list iterate">For each</span> <code>link</code> element <var>link</var> in
<var>doc</var>'s <span>render-blocking element set</span>:

<ol>
<li><p>Let <var>expectedURL</var> be the result of <span data-x="parse a URL">parsing</span>
<var>link</var>'s <code data-x="attr-link-href">href</code> attribute.<p></li>
<li><p>If <var>link</var>'s <code data-x="attr-link-rel">rel</code> attribute is not <code
data-x="rel-expect">expect</code>, return.</p></li>

<li><p>If <var>el</var> is the <span>document element</span>, then
<span>unblock rendering</span> on <var>link</var> and return.</p>

<li><p>Let <var>expectedURL</var> be the result of <span data-x="parse a URL">parsing</span>
<var>link</var>'s <code data-x="attr-link-href">href</code> attribute.<p></li>

<li><p>Assert: <var>expectedURL</var> <span data-x="concept-url-equals">equals</span>
<var>link</var>'s <span>node document</span>'s <span data-x="concept-document-url">URL</span>
with <i data-x="url equals exclude fragments">exclude fragments</i> set to true.</p></li>
<li><p>Assert: <var>expectedURL</var> <span data-x="concept-url-equals">equals</span>
<var>link</var>'s <span>node document</span>'s <span data-x="concept-document-url">URL</span>
with <i data-x="url equals exclude fragments">exclude fragments</i> set to true.</p></li>

<li><p>Return true if <var>expectedURL</var>'s <span
data-x="concept-url-fragment">fragment</span> is <var>el</var>'s <span
data-x="concept-id">ID</span>, otherwise false.</p></li>
<li><p>If <var>expectedURL</var>'s <span
data-x="concept-url-fragment">fragment</span> is <var>el</var>'s <span
data-x="concept-id">ID</span>, then <span>unblock rendering</span> on <var>link</var>.</p></li>
</ol>

<p>When any element <var>el</var> is <span>browsing-context connected</span>, if <var>el</var> is
Expand Down

0 comments on commit 32618d0

Please sign in to comment.