-
Notifications
You must be signed in to change notification settings - Fork 241
Odd in-page search behavior with recent Chromium and Chrome #1451
Comments
This is a result of a recent change to the HTML spec that specifies that closed |
Thanks, @stevehartdata. That confirms the bug is in Haddock and not Chromium. Do you happen to know what we have to do to fix it? The search feature is currently nearly unusable. |
I think it depends on what the desired functionality is. It's not obvious to me that the new functionality is always undesirable, though I can see why it would be annoying for certain use cases. If the goal is just to revert back to the old behavior so that the synopsis is not searchable when hidden, then we can toggle a CSS property like I'm not a regular contributor to Haddock, so I don't know who would make the call on what the desired behavior is. Are you the one? |
No, I'm certainly not. Have you tried navigating Hackage with the new behavior? I can confidently say it's not what anyone is likely to want. |
Specifically: search will go into the sidebar, then clicking on the found thing won't actually take you there. It's just wretched. |
The links in the synopsis not taking you to the expected location is a different bug that is not related to the recent HTML change. I definitely agree that that behavior is not how it should be, and I've opened #1457 to track that issue separately. |
I personally really don't want searching to open the sidebar either. |
For pages with wide type signatures, this issue makes searching almost unusable. In Eltix's screenshot of |
I can't really say how I feel about this without being hyperbolic and rude, so I'll just say "please let's fix it" |
This does seem like an easy fix. I'll make a PR. The new default behavior of |
@Lysxia Thank you so much! |
@Kleidukos @Lysxia Thank you very much for the fix. What remains to do in order to have the fix effective in hackage? |
@eltix Hackage will have do adopt the next Haddock release, which will be cut for the next GHC release. :) |
@Kleidukos I don't see any issue tracking this on hackage's side. Opening a random hackage page shows that they're using Haddock version |
This is done at the discretion of the Hackage maintainers, you'll have to ask them directly |
That's a very old package. Keep in mind that the footer records the haddock that generated it, so it does not reflect the current version of haddock on Hackage. Picking a more recent package like text shows that 2.24 is being used. I believe hackage-server is where the issue can be raised. Individual packages may also upload their own docs built with their own haddock. |
Thank you both for your explanations. If I understood correctly, we can only raise the issue hackage-server once haddock has made a new release. |
For anyone that can't wait I have created a chrome extension (https://github.com/mrbech/hackage-synopsis-search-hider) that applies the fix from #1486 to hackage.haskell.org |
I don't know if this is a Chromium bug or a Haddock bug or some weird interaction, but since I updated Chrome and Chromium recently, I've been having a problem. Specifically, if I hit Ctrl-F to find a word in some module documentation, and the word appears some ways down the page, it ends up opening up the Synopsis tab and searching there before continuing with the main page. UGH. Note: I don't have this problem in Firefox.
The text was updated successfully, but these errors were encountered: