urlpattern
urlpattern copied to clipboard
URL Pattern Standard
i.e., you must write `https://alice\:[email protected]/`; failing to escape the colon leads to the username pattern being parsed as `alice:bob`. We should either change or document this.
At the TPAC 2020 discussion @asutherland suggested that we should consider maximum scope size limits. While its theoretically possible for sites to stick large amounts of info encoded in the...
Fails, even though it's valid: ```js const pattern = new URLPattern({ pathname: '/([()])' }); Uncaught TypeError: tokenizer error: invalid regex: nested groups must start with ? (at char 1) ```...
Currently search query parameters are fixed and matches will only occur if they are in the URL in the same order. ```js new URLPattern({ search: "alpha=true&beta=true" }).exec("https://example.com/hello?alpha=true&beta=true") { inputs: [...
When creating an optional group with `?`, it seems like they are not being matched correctly. Here is the test case: ```js function matchParams(path, pathToTest, groups) { const pattern =...
Consider a pattern intended to match dotfiles like `new URLPattern({ pathname: '/.*' })`. The pathname encoding algorithm will end up collapsing the `/.` to just `.` so you get a...
Consider this `new URLPattern({ pathname: './*', baseURL: self.location })` evaluated on a page at `/index.html'. The resulting pathname is `//*` which is somewhat unexpected. This occurs because the `/` preceding...
### What is the issue with the URL Pattern Standard? URLPattern doesn't tolerate `+` in protocol. The polyfill gives this error: ``` new URLPattern("web+foo://example.com/baz") TypeError: Failed to construct 'URLPattern': Unexpected...
### What is the issue with the URL Pattern Standard? In the `URL` standard, delimiters are included in their respective parts (hash, protocol, and search): e.g. `new URL("http://example.com:80/bar?baz=bang#id")` preserve the...
### What is the issue with the URL Pattern Standard? I've recently come across [this bug report](https://github.com/kenchris/urlpattern-polyfill/issues/121) in the popular urlpattern-polyfill library. Under "§ 2.2. Converting part lists to regular...