From d5605ada38f3cdb4bd7dd6165b082d0a7f1e6624 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Thu, 12 Sep 2024 17:28:05 -0700 Subject: [PATCH] Expose URLPattern everywhere I've drafted a set of criteria for which interfaces to expose universally on all globals, at https://github.com/w3ctag/design-principles/pull/510. URLPattern looks like it fits those criteria and is useful to have in any environment. --- explainer.md | 1 + spec.bs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/explainer.md b/explainer.md index e855017..7f1b7d4 100644 --- a/explainer.md +++ b/explainer.md @@ -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 diff --git a/spec.bs b/spec.bs index 4e1e740..477e3f8 100644 --- a/spec.bs +++ b/spec.bs @@ -183,7 +183,7 @@ It can be constructed using a string for each component, or from a shorthand str 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 = {});