From 6876cf5cd82b12007f816b865757c868360f5197 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 10 Mar 2022 11:33:30 +0100 Subject: [PATCH] Editorial: remove dependency on responsible document Helps with https://github.com/whatwg/html/pull/7694. --- xhr.bs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/xhr.bs b/xhr.bs index d7fbaff..2e81ddd 100644 --- a/xhr.bs +++ b/xhr.bs @@ -424,10 +424,9 @@ and method steps are:
    -
  1. Let settingsObject be this's relevant settings object. - -

  2. If settingsObject has a responsible document and it is not - fully active, then throw an "{{InvalidStateError!!exception}}" {{DOMException}}. +

  3. If this's relevant global object is a {{Window}} object and its + associated Document is not fully active, then throw an + "{{InvalidStateError!!exception}}" {{DOMException}}.

  4. If method is not a method, then throw a "{{SyntaxError!!exception}}" {{DOMException}}. @@ -438,8 +437,10 @@ method steps are:

  5. Normalize method.

  6. Let parsedURL be the result of parsing url with - settingsObject's API base URL and - settingsObject's API URL character encoding. + this's relevant settings object's + API base URL and this's + relevant settings object's + API URL character encoding.

  7. If parsedURL is failure, then throw a "{{SyntaxError!!exception}}" {{DOMException}}.