- From: Andreu Botella <notifications@github.com>
- Date: Tue, 24 Feb 2026 17:12:01 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1451/review/3851308169@github.com>
@andreubotella 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);
There's no similar namespacing in WebIDL extended attributes, and in fact extended attribute names currently can only be identifiers. But it seems like this could be changed without that much trouble, and without syntax conflicts.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1451#discussion_r2850297242
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1451/review/3851308169@github.com>
Received on Wednesday, 25 February 2026 01:12:05 UTC