-
Notifications
You must be signed in to change notification settings - Fork 23.2k
The Location.hash property is percent-encoded #37003
Copy link
Copy link
Closed
Labels
Content:WebAPIWeb API docsWeb API docsarea: URL/URLPatterngoal: accuracy(Experimental label) Issues about inaccurate/incorrect content.(Experimental label) Issues about inaccurate/incorrect content.
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Location/hash
What specific section or headline is this issue about?
The description at the top of the document
What information was incorrect, unhelpful, or incomplete?
The hash property is also percent-encoded, try to navigate to https://developer.mozilla.org/en-US/docs/Web/API/Location/hash#%3E, and see the return value of location.hash, it would be #%3E, which is encoded.
What did you expect to see?
Correct the description. The encoding rule is given in the spec.
Do you have any supporting links, references, or citations?
See the spec:
- https://url.spec.whatwg.org/#string-percent-decode
- https://url.spec.whatwg.org/#fragment-percent-encode-set
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/api/location/hash - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Location/hash
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/location/hash/index.md
- Last commit: a2847ff
- Document last modified: 2024-07-18T19:25:04.000Z
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Content:WebAPIWeb API docsWeb API docsarea: URL/URLPatterngoal: accuracy(Experimental label) Issues about inaccurate/incorrect content.(Experimental label) Issues about inaccurate/incorrect content.