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

Empty anchor (<a id="foo></a>) tag creates superfluous reference entry #4747

Closed
ralfhandl opened this issue Jul 5, 2024 · 1 comment
Closed
Labels

Comments

@ralfhandl
Copy link

ralfhandl commented Jul 5, 2024

Description of problem

URL to affected spec or repo:

Source showing the problem:

https://github.com/ralfhandl/respec-experiments/blob/c94de45be239521a56f3c35f438c6d9d1689aab7/src/example.html#L94

Adding a space between the opening and closing tag worked in older respec versions and doesn't work now.

Current workaround: <a id="foo" class="logo"></a> which doesn't seem to have negative side-effects.

What happened (e.g., it crashed)?:

Superfluous/wrong reference entry "css" is created:

image

Expected behavior (e.g., it shouldn't crash):

Just create the anchor, don't create a buggy reference entry.

Optional, steps to reproduce:

  1. clone https://github.com/ralfhandl/respec-experiments
  2. git checkout bug/empty-anchor
  3. view file src/example.html in browser
@ralfhandl
Copy link
Author

Alternative workaround: use <span id="foo"></span> which also doesn't seem to have negative side-effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant