Re: [whatwg/fetch] WIP: Add a mechanism to fetch to track progress (PR #1843)

@lukewarlow commented on this pull request.



> +
+<h3 id=firing-events-using-the-progressevent-interface>Firing events using the {{ProgressEvent}} interface</h3>
+
+<p>To <dfn id=concept-event-fire-progress>fire a progress event</dfn> named <var>e</var> at
+<var>target</var>, given <var>transmitted</var> and <var>length</var>, means to <a>fire an event</a>
+named <var>e</var> at <var>target</var>, using {{ProgressEvent}}, with the {{ProgressEvent/loaded}}
+attribute initialized to <var>transmitted</var>, and if <var>length</var> is not 0, with the
+{{ProgressEvent/lengthComputable}} attribute initialized to true and the {{ProgressEvent/total}}
+attribute initialized to <var>length</var>.
+
+
+<h3 id=suggested-names-for-events-using-the-progressevent-interface>Suggested names for events using the {{ProgressEvent}} interface</h3>
+
+<p><em>This section is non-normative.</em>
+
+<p>The suggested {{Event/type}}

Most of these events aren't used in Fetch so this table should probably be kept in the XHR spec.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1843#pullrequestreview-3055275019
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1843/review/3055275019@github.com>

Received on Friday, 25 July 2025 12:47:57 UTC