Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URLPatternResult#inputs behaviour #12

Closed
lucacasonato opened this issue Sep 7, 2021 · 1 comment · Fixed by #34
Closed

Fix URLPatternResult#inputs behaviour #12

lucacasonato opened this issue Sep 7, 2021 · 1 comment · Fixed by #34
Labels
bug Something isn't working

Comments

@lucacasonato
Copy link
Member

There is an inconsistency between spec and tests and Chromium. Needs a spec decision whatwg/urlpattern#133.

@lucacasonato lucacasonato added the bug Something isn't working label Sep 7, 2021
@timonson
Copy link

timonson commented Jun 25, 2022

Hi,

the protocol property inside the inputs array of a url pattern result includes the colon : after http but in the other protocol property the colon is omitted. Using deno's latest version. Is this a bug? Thanks!

{
  inputs: [
    {
      protocol: "http:",
      username: "",
      password: "",
      hostname: "localhost",
      port: "8080",
      pathname: "/",
      search: "",
      hash: ""
    }
  ],
  protocol: { input: "http", groups: { "0": "http" } },
  username: { input: "", groups: { "0": "" } },
  password: { input: "", groups: { "0": "" } },
  hostname: { input: "localhost", groups: { "0": "localhost" } },
  port: { input: "8080", groups: { "0": "8080" } },
  pathname: { input: "/", groups: {} },
  search: { input: "", groups: { "0": "" } },
  hash: { input: "", groups: { "0": "" } }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants