How to reproduce the problem and/or test the patch::
Test that any uses of JHtml functions all work as expected. The best example to test is going to the the frontend contact option (if you have the sliders option activated). There should be no change before and after the patch
Hold merge until 3.5. I suspect we probably won't merge at all though as me and Roberto have had a chat and think that this kind of code is probably better in JLayouts. But yeah we'll wait and see
I'm closing this I think. I think the example we have with the tabs shows this method of using Jlayouts isn't optimal. And you can already override this in JHtml. In Joomla 4 I guess we will remove the JHtml method and just replace it with a Jlayout
Tested. Works as expected