Skip to content

The Location.hash property is percent-encoded #37003

@yin1999

Description

@yin1999

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:

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions