11

I'm experiencing a weird bug when trying to use the example list that can be found on the right side of a topic's page on documentation, under the words "Topic Outline". (Link to arbitrary topic). I expect that, when clicking on one of the examples listed, my browser will scroll down to that example.

I'm on Firefox (53.0) and when hovering over an item in the list, I can see the link URL pop up in the bottom left corner of my browser window (which tells me that this is a link), I can right click it and open the link in a new tab, which does work (it scrolls down to the linked example in the new tab), but (left) clicking it does nothing (observable, at least).

Could this be caused by a setting in my browser?


When inspecting the element I get this for instance:

<a class="topic-outline-example-link" href="https://stackoverflow.com/documentation/java/88/streams/909/creating-a-frequency-map#t=201704251132200972376" data-example-id="909">Creating a Frequency Map</a>

Looks normal to me (though web is not my forté).


I tested on Google Chrome (58.0.3029.81), and it works as expected there.

I've also tried disabling all browser extensions, but that had no effect.

2
  • No repro in Safari. It's supposed to scroll the page down to an anchor target.
    – Cody Gray Mod
    Commented Apr 25, 2017 at 11:30
  • @CodyGray Exactly, I've seen that behaviour on other sites too, for instance javadoc, and the html element looks the same there. Commented Apr 25, 2017 at 11:40

1 Answer 1

1

TIL something new about how scrollTop works in Firefox, so thanks for the report. :)

The fix will go live with the next production build.

1
  • Why not just use id's and hashes?
    – user4639281
    Commented May 2, 2017 at 23:40

Not the answer you're looking for? Browse other questions tagged .