diff --git a/index.html b/index.html
index 9592807..fe6c763 100644
--- a/index.html
+++ b/index.html
@@ -315,6 +315,10 @@
Let |document:Document| be [=this=]'s [=relevant global
object=]'s [=associated Document=].
+ If
+ |document| is not [=Document/fully active=], return [=a promise
+ rejected with=] with a {{"NotAllowedError"}} {{DOMException}}.
+
If
|document| is not [=allowed to use=] the [=policy-controlled
@@ -326,10 +330,6 @@
|document|, return [=a promise rejected with=] a
{{"NotAllowedError"}} {{DOMException}}.
- If
- |document| is not [=Document/fully active=], return [=a promise
- rejected with=] with a {{"NotAllowedError"}} {{DOMException}}.
-
If
|document|'s [=Document/visibility state=] is "`hidden`", return [=a
promise rejected with=] {{"NotAllowedError"}} {{DOMException}}.
@@ -359,6 +359,15 @@
source given |document|'s relevant global object to
run these steps:
+ - If |document| is not [=Document/fully active=], then:
+
+ - Reject |promise| with a {{"NotAllowedError"}}
+ {{DOMException}}.
+
+ - Abort these steps.
+
+
+
- If |document|'s [=Document/visibility state=] is
"`hidden`", then: