Closed
Bug 1340525
Opened 8 years ago
Closed 8 years ago
Clicking on an anchored link doesn't jump to the named anchor if the hash doesn't change
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: julienw, Unassigned)
Details
STR:
1. Go to https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#links
2. Move up the page.
3. Click on "Links" in the table of contents
Expected:
* We go to the Links part
Actual:
* Nothing changes.
The underlying reason is because the hash doesn't change, and as a result I guess we decide there is no navigation happening. Everything works fine if the hash changes.
I understand the underlying reason, it doesn't mean it's the right UX. I believe this should be changed.
Comment 1•8 years ago
|
||
Agree, that's broken.
Comment 2•8 years ago
|
||
Interesting, Chrome, Safari also don't navigate. Let's see what HTML says...
https://html.spec.whatwg.org/#scroll-to-the-fragment-identifier
So, it reads like it should navigate. But I can't quite decipher what it's says there.
Flags: needinfo?(annevk)
Comment 3•8 years ago
|
||
This works fine at https://wiki.whatwg.org/wiki/FAQ#The_WHATWG so I think the problem is that GitHub is implementing its own navigation in JavaScript and hasn't accounted for this scenario. I recommend reporting an issue to GitHub.
Flags: needinfo?(annevk)
| Reporter | ||
Comment 5•8 years ago
|
||
Yes, I think so.
Thanks a lot for the debugging, sorry for wasting your time.
I'll report this back to Github.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(felash)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•