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

Make the default "process the linked resource" algorithm a noop #6156

Merged
merged 2 commits into from
Nov 18, 2020
Merged
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
13 changes: 2 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -13752,17 +13752,8 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
data-x="external resource link">external resource links</span> have a <dfn>process the linked
resource</dfn> algorithm which takes a <code>link</code> element <var>el</var>, boolean
<var>success</var>, and <span data-x="concept-response">response</span> <var>response</var>.
Unless an individual link type provides its own <span>process the linked resource</span>
algorithm, the <dfn>default process the linked resource</dfn> algorithm, given a <code>link</code>
element <var>el</var>, and boolean <var>success</var> (ignoring <var>response</var>) is used:</p>

<ol>
<li><p>If <var>success</var> is true, <span data-x="concept-event-fire">fire an event</span>
named <code data-x="event-load">load</code> at <var>el</var>.</p></li>

<li><p>Otherwise, <span data-x="concept-event-fire">fire an event</span> named <code
data-x="event-error">error</code> at <var>el</var>.</p></li>
</ol>
Individual link types may provide their own <span>process the linked resource</span> algorithm,
but unless explicitly stated, that algorithm does nothing.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the <dfn> is necessary anymore. Instead, let's copy the verbiage from above, where it says

Similarly, individual link types may provide their own linked resource fetch setup steps, but unless explicitly stated, these steps just return true.


<p>Unless otherwise specified for a given <code data-x="attr-link-rel">rel</code> keyword, the
element must <span>delay the load event</span> of the element's <span>node document</span> until
Expand Down