Skip to content

Commit

Permalink
Fix incorrect TypeError type
Browse files Browse the repository at this point in the history
  • Loading branch information
cfredric committed Dec 7, 2023
1 parent b64efdd commit 2c2ba9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ When invoked on {{Document}} |doc| with {{USVString}} |requestedOrigin|, the <df
1. If |doc|'s [=Document/origin=] is an [=opaque origin=], [=reject=] |p| with an "{{NotAllowedError}}" {{DOMException}} and return |p|.
1. If |doc|'s [=relevant global object=] is not a [=secure context=], then [=reject=] |p| with a "{{NotAllowedError}}" {{DOMException}} and return |p|.
1. Let |parsedURL| be the the result of running the [=URL parser=] on |requestedOrigin|.
1. If |parsedURL| is failure, [=reject=] |p| with a "{{TypeError}}" {{DOMException}} and return |p|.
1. If |parsedURL| is failure, [=reject=] |p| with a {{TypeError}} and return |p|.
1. Let |origin| be |parsedURL|'s [=/origin=].
1. If |origin| is an [=opaque origin=], [=reject=] |p| with an "{{NotAllowedError}}" {{DOMException}} and return |p|.
1. If |doc|'s [=Document/origin=] is [=same origin=] with |origin|, [=resolve=] and return |p|.
Expand Down

0 comments on commit 2c2ba9c

Please sign in to comment.