In-page link works in Firefox but not in Chrome

This is a follow-up to:

https://stackoverflow.com/a/48521592/1697709

The standard way of using

http://example.com/page#design

as link into

h2 id="design"Design/h2

does not make the browser to jump this header to the top of the page.

a name="design"h2Design/h2/a

does it on Firefox, following

https://www.kasareviews.com/wordpress-page-jump-links/

It also works in Internet Explorer.

But it does not work on Google Chrome. What else should I do to make it work on Chrome?

Topic google-chrome urls links Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.