whatwg / url

URL Standard
https://url.spec.whatwg.org/
Other
527 stars 137 forks source link

URL path comparison #814

Open annevk opened 7 months ago

annevk commented 7 months ago

For Cookies we need URL path comparison. Currently that's done through a serialized path, but might be nicer if it operated on segments: https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.4.

https://w3c.github.io/ServiceWorker/#update-algorithm appears to do a very similar operation.

https://w3c.github.io/webappsec-csp/#match-paths is also quite similar, except this performs percent-decoding. Meh.

Any others?