From fd438ec818714db1fcbd79c2ce06132d9cc4a100 Mon Sep 17 00:00:00 2001 From: Dominique Hazael-Massieux Date: Thu, 6 Jun 2024 13:08:04 +0200 Subject: [PATCH] Meta: adjust dfn-for of events on XMLHttpRequestEventTarget As discovered in https://github.com/w3c/webref/issues/1216#issuecomment-2068997553. --- xhr.bs | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/xhr.bs b/xhr.bs index f6bd6c1..ac25a35 100644 --- a/xhr.bs +++ b/xhr.bs @@ -285,12 +285,12 @@ constructor steps are: event listeners registered whose type is one of {{XMLHttpRequest/readystatechange}}, -{{XMLHttpRequest/progress}}, -{{XMLHttpRequest/abort}}, -{{XMLHttpRequest/error}}, -{{XMLHttpRequest/load}}, -{{XMLHttpRequest/timeout!!event}}, and -{{XMLHttpRequest/loadend}}. +{{XMLHttpRequestEventTarget/progress}}, +{{XMLHttpRequestEventTarget/abort}}, +{{XMLHttpRequestEventTarget/error}}, +{{XMLHttpRequestEventTarget/load}}, +{{XMLHttpRequestEventTarget/timeout!!event}}, and +{{XMLHttpRequestEventTarget/loadend}}.

If an {{XMLHttpRequest}} object is garbage collected while its connection is still open, the user @@ -314,25 +314,25 @@ from {{XMLHttpRequestEventTarget}} as attributes: onloadstart - {{XMLHttpRequest/loadstart}} + {{XMLHttpRequestEventTarget/loadstart}} onprogress - {{XMLHttpRequest/progress}} + {{XMLHttpRequestEventTarget/progress}} onabort - {{XMLHttpRequest/abort}} + {{XMLHttpRequestEventTarget/abort}} onerror - {{XMLHttpRequest/error}} + {{XMLHttpRequestEventTarget/error}} onload - {{XMLHttpRequest/load}} + {{XMLHttpRequestEventTarget/load}} ontimeout - {{XMLHttpRequest/timeout!!event}} + {{XMLHttpRequestEventTarget/timeout!!event}} onloadend - {{XMLHttpRequest/loadend}} + {{XMLHttpRequestEventTarget/loadend}}

The following is the @@ -1035,7 +1035,7 @@ return this's cross-origin credentials.

  • Otherwise, if xhr's response is a network error, then run the request error steps for xhr, - {{XMLHttpRequest/error}}, and "{{NetworkError!!exception}}" {{DOMException}}. + {{XMLHttpRequestEventTarget/error}}, and "{{NetworkError!!exception}}" {{DOMException}}.

    The request error steps for an {{XMLHttpRequest}} object xhr, @@ -1576,32 +1576,32 @@ steps are: The {{XMLHttpRequest/readyState}} attribute changes value, except when it changes to UNSENT. - loadstart + loadstart {{ProgressEvent}} The fetch initiates. - progress + progress {{ProgressEvent}} Transmitting data. - abort + abort {{ProgressEvent}} When the fetch has been aborted. For instance, by invoking the {{XMLHttpRequest/abort()}} method. - error + error {{ProgressEvent}} The fetch failed. - load + load {{ProgressEvent}} The fetch succeeded. - timeout + timeout {{ProgressEvent}} The author specified timeout has passed before the fetch completed. - loadend + loadend {{ProgressEvent}} The fetch completed (success or failure).