- From: Nicolò Ribaudo <notifications@github.com>
- Date: Tue, 24 Feb 2026 09:29:37 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 24 February 2026 17:29:41 UTC
@nicolo-ribaudo commented on this pull request.
> + </li>
+
+ <li><p>Run the originally-specified steps for this regular operation. If the steps return a value
+ or throw an exception, return or throw it in turn.
+</ol>
+
+<p>Specifications should set this extended attribute on methods which start an async operation which
+will eventually cause events to be fired on the instance on which the method was called.
+<span class="non-normative">An example of this is the {{XMLHttpRequest}} and its
+{{XMLHttpRequest/send}} method:</span> [[XHR]]
+
+<pre highlight=idl>
+[Exposed=(Window,DedicatedWorker,SharedWorker)]
+interface XMLHttpRequest : XMLHttpRequestEventTarget {
+ // ...
+ [PropagatesAsyncContextToEvents=("loadstart", "progress", "error", "load", "timeout", "loadend")] undefined send(optional (Document or XMLHttpRequestBodyInit)? body = null);
How would people feel about using `AsyncContext.PropagatesToEvents` as a naming pattern for the AsyncContext-related attributes, since there are multiple?
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1451#pullrequestreview-3849463603
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1451/review/3849463603@github.com>
Received on Tuesday, 24 February 2026 17:29:41 UTC