OpusVL/perldoc.perl.org

URL frag id doesn't account for perl banner at top of page

Closed this issue · 1 comments

jay commented

The position in the frag ID doesn't take the banner into consideration when auto positioning, so the top of the element is hidden. I'm not sure if this is a browser bug or a doc bug, but I tried in both Firefox and Chrome and they behave the same way. Interestingly Firefox (trunk) I can see it go to the right position and then jump ahead.

For example I want to give someone a link to (??{ code }) from the regex section of the perl manual. That section has the ID (%3f%3f%7b-code-%7d) in the HTML so I used that as the frag ID:

https://perldoc.perl.org/5.8.8/perlre.html#(%3f%3f%7b-code-%7d)

It shows this:

perl doc screenshot

It should show this:

perl doc screenshot 2

jay commented

Fixed