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

Scala Language Specification HTML website has duplicate ID attributes #11720

Open
JoergWMittag opened this issue Sep 1, 2019 · 1 comment

Comments

@JoergWMittag
Copy link

commented Sep 1, 2019

The HTML website version of the Scala Language Specification has multiple elements with the same id attribute, which is not allowed by the HTML Specification:

When specified on HTML elements, the id attribute value must be unique amongst all the IDs in the element's tree […]

As an example, there are multiple elements on the page https://scala-lang.org/files/archive/spec/2.13/05-classes-and-objects.html with the id "example" which makes it impossible to link to them using a URI fragment identifier. (On most browsers, the link will refer to the textually first instance in the source code, but there is no guarantee about that.)

My guess is that this is actually a bug in RedCarpet or even in Sundown.

@Philippus

This comment has been minimized.

Copy link
Member

commented Sep 1, 2019

I think it's this one: vmg/redcarpet#307, the issue mentions several workarounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.