Skip to content

Scala Language Specification HTML website has duplicate ID attributes #11720

Open
@JoergWMittag

Description

@JoergWMittag

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions