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

URL: hash property percent encoding #37165

Open
bsmth opened this issue Dec 10, 2024 · 1 comment
Open

URL: hash property percent encoding #37165

bsmth opened this issue Dec 10, 2024 · 1 comment

Comments

@bsmth
Copy link
Member

bsmth commented Dec 10, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/URL/hash

What specific section or headline is this issue about?

Main section

What information was incorrect, unhelpful, or incomplete?

The fragment is not percent-encoded.

This is not true.

What did you expect to see?

The fragment is percent-encoded plus some examples like:

const url = new URL(
  "https://developer.mozilla.org/en-US/docs/Web/API/URL/href#example one",
);
console.log(url.hash); // '#example%20one'

The original spoke about percent decoding, hard to know what the motivation was, but possibly:

const url = new URL(
  "https://developer.mozilla.org/en-US/docs/Web/API/URL/href#example%20one",
);
console.log(url.hash); // NOT '#example one'?
console.log(url.hash); // '#example%20one'

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@github-actions github-actions bot added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Content:Glossary Glossary entries Content:WebAPI Web API docs labels Dec 10, 2024
@wbamberg
Copy link
Collaborator

see also #37003

@Josh-Cena Josh-Cena added area: URL/URLPattern and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Content:Glossary Glossary entries labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants