Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
location.hash = "" should result in a fragment
Although some browsers currently do not add a fragment if hash is set to the empty string, they won’t remove a fragment either when hash is set to the empty string. Therefore aligning with Firefox makes more sense, which consistently gives a fragment. This makes the location API slightly inconsistent from the point of <a>, <area>, and URL, but compatibility has to win. Fixes #1177.
- Loading branch information
Showing
1 changed file
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters