You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per https://xhr.spec.whatwg.org/#interface-xmlhttprequest a response is said to be initialized as a network error, the definition of which is then linked to in the Fetch Standard (https://fetch.spec.whatwg.org/#concept-network-error). However, the definition given is specific to Fetch and its applicability to XHR is unclear, mainly because the valid response types have different values between Fetch and XHR (most notably in this case, the XMLHttpRequestResponseType enum cannot have the supposed initial value of error).
The text was updated successfully, but these errors were encountered:
"the XMLHttpRequestResponseType enum cannot have the supposed initial value of error"
Can you address the context that was given? What is the initial value of the response type for a network error represented in XHR? https://xhr.spec.whatwg.org/#response-type says the initial value is the empty string, which is not 'error' as defined in Fetch. Why is the Fetch initialization of "network error" being referenced if it is not the same as XHR?
Per https://xhr.spec.whatwg.org/#interface-xmlhttprequest a response is said to be initialized as a network error, the definition of which is then linked to in the Fetch Standard (https://fetch.spec.whatwg.org/#concept-network-error). However, the definition given is specific to Fetch and its applicability to XHR is unclear, mainly because the valid response types have different values between Fetch and XHR (most notably in this case, the XMLHttpRequestResponseType enum cannot have the supposed initial value of
error
).The text was updated successfully, but these errors were encountered: