Skip to content

Commit

Permalink
Expose URLPattern everywhere
Browse files Browse the repository at this point in the history
I've drafted a set of criteria for which interfaces to expose
universally on all globals, at
w3ctag/design-principles#510.
URLPattern looks like it fits those criteria and is useful to have in
any environment.
  • Loading branch information
ptomato committed Sep 13, 2024
1 parent 20e4de9 commit d5605ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ Contributions and review provided by:
* Kenji Baheux
* L. David Baron
* Ralph Chelala
* Philip Chimento
* Kenneth Rohde Christiansen
* Victor Costan
* Domenic Denicola
Expand Down
2 changes: 1 addition & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ It can be constructed using a string for each component, or from a shorthand str
<xmp class="idl">
typedef (USVString or URLPatternInit) URLPatternInput;

[Exposed=(Window,Worker)]
[Exposed=*]
interface URLPattern {
constructor(URLPatternInput input, USVString baseURL, optional URLPatternOptions options = {});
constructor(optional URLPatternInput input = {}, optional URLPatternOptions options = {});
Expand Down

0 comments on commit d5605ad

Please sign in to comment.