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

Convert more "queue a task" to "queue an element task" #5432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dtapuska
Copy link
Contributor

@dtapuska dtapuska commented Apr 2, 2020

Adjust the last remaining element/node based references. The
rest of the references in the spec are either document or global objects
which will come in another CL.

Part of #4980.


💥 Error: Wattsi server error 💥

PR Preview failed to build. (Last tried on Jan 15, 2021, 7:59 AM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 Wattsi Server - Wattsi Server is the web service used to build the WHATWG HTML spec.

🔗 Related URL

Parsing MDN data...
Parsing...



If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

Adjust the last remaining element/node based references. The
rest of the references in the spec are either document or global objects
which will come in another CL.

Part of whatwg#4980.
<li><p>Otherwise, <span>queue a task</span> on the <span>user interaction task source</span>
provided the <span>surrounding agent</span>'s <span data-x="concept-agent-event-loop">event
loop</span> to invoke <var>callback</var>, passing the actual data of the item represented by the
<code>DataTransferItem</code> object as the argument.</p></li>
Copy link
Member

Choose a reason for hiding this comment

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

For cases where the event loop is just the surrounding agent's event loop, I'd rather have this done centrally in the definition of "queue a task", instead of doing it at every call site.

@@ -57581,7 +57582,8 @@ o............A....e
<li><p><span data-x="parse a url">Parse</span> <var>src</var> relative to the element's
<span>node document</span>.</p></li>

<li><p>If the previous step failed, <span>queue a task</span> to <span
<li><p>If the previous step failed, <span>queue an element task</span> on the <span>DOM
manipulation task source</span> given the <code>script</code> element to <span
Copy link
Member

Choose a reason for hiding this comment

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

For these two, the networking task source seems more likely to be correct, since it would be aligned with the tasks queued if we had a fetch failure. That also aligns with the behavior for link and style (although not img). What do you think?

Base automatically changed from master to main January 15, 2021 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants