Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header links placed within folded content do not work with some browsers #170

Open
pmatulis opened this issue Aug 4, 2023 · 0 comments
Open

Comments

@pmatulis
Copy link

pmatulis commented Aug 4, 2023

With some browsers, at least Firefox, links that reside within folded content do not work. It's as if they do not exist. The user is therefore punted to the top of the page. Can something be done about this?

For instance, link https://ubuntu.com/blah/docs/page#heading--test does not work where the following is in use:

[details=Expand]
<a href="#heading--test"><h2 id="heading--test">test</h2></a>
[/details]

Attempting to work around this by placing an anchor also failed:

<a id="#heading--workaround"> </a>

[details=Expand]
<a href="#heading--test"><h2 id="heading--test">test</h2></a>
[/details]

As the source becomes:

<p><a> </a></p>
<details>
<summary>
Expand</summary>
<p><a href="#heading--test"></a></p>
<h2 id="heading--test"><a href="#heading--test">test</a></h2>
<p></p>
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant