standards-positions icon indicating copy to clipboard operation
standards-positions copied to clipboard

URLPattern API

Open brentfulgham opened this issue 3 years ago • 4 comments
trafficstars

Request for position on an emerging web specification

  • WebKittens who can provide input: @achristensen07, @MenloDorian, @rniwa, @annevk

Information about the spec

  • Spec Title: URLPattern API
  • Spec URL: https://wicg.github.io/urlpattern/
  • GitHub repository: https://github.com/WICG/urlpattern
  • Explainer: https://github.com/WICG/urlpattern/blob/main/explainer.md#urlpattern

Design reviews and vendor positions

  • TAG Design Review: Unknown.
  • Mozilla standards-positions issue: Unknown.

Bugs tracking this feature

  • WebKit Bugzilla: None.
  • Radar: None.

Anything else we need to know

This proposal creates a native web API to match URLs called URLPattern. URLPattern would support both web developer use in JS and native URL matching in other web APIs. For example, the initial use cases discuss using URLPattern for service worker scope matching.

brentfulgham avatar Sep 09 '22 22:09 brentfulgham

karlcow avatar Sep 26 '22 21:09 karlcow

FYI, we are making a small enhancement to URLPattern to add the option to perform case-insensitive matching. This was a web developer community request. Please see:

https://groups.google.com/a/chromium.org/g/blink-dev/c/hNUoDg94-_8/m/-Cnv2qyMAAAJ https://github.com/WICG/urlpattern/issues/148

Note, since this is a small change I thought it might be better to comment here instead of creating a new issue. If you would prefer a new issue, please let me know.

wanderview avatar Sep 28 '22 14:09 wanderview

Thanks @wanderview, that seems fine. If you have the time, what is the latest on getting this more formally standardized as well as fixing some of the remaining issues?

annevk avatar Oct 07 '22 08:10 annevk

If you mean moving urlpattern into whatwg, that is still something I would like to do but is a lower priority at the moment. If another browser indicates they want to start implementing it would raise the priority of doing that work.

wanderview avatar Oct 07 '22 14:10 wanderview

I'm going to mark this as blocked. We'd be supportive of this if it was maintained and the venue issue was resolved. Additionally if-and-when we should carefully look at the CSP use cases around matching and ensure there's parity.

annevk avatar Apr 28 '23 12:04 annevk

After having discussed this at the most recent W3C TPAC, the maintenance issue and venue question have been resolved. As mentioned above I suggest we mark this as "position: support" one week from now therefore.

annevk avatar Oct 18 '23 07:10 annevk

Just as an fyi the spec is now published at https://urlpattern.spec.whatwg.org/

lukewarlow avatar Oct 25 '23 10:10 lukewarlow