Re: [w3c/ServiceWorker] scope pattern matching (#1468)

Just curious, is the desire to pass strings instead of objects based on the same principle for APIs taking strings instead of URL objects?  https://url.spec.whatwg.org/#url-apis-elsewhere

Personally I've never understood this as it seems to promote inefficiency in APIs.  If the javascript already created a URL object, but can't pass it then we end up having to parse and validate the URL twice.  I've never understood why APIs don't take string or URL.

Anyway, if its the same principle then I am fine switching to strings as long as the pattern syntax remains the same.  I would have a preference for taking string or object, though.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1468#issuecomment-707813838

Received on Tuesday, 13 October 2020 15:19:13 UTC