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.

Activity

Philippus

Philippus commented on Sep 1, 2019

@Philippus
Member

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

added this to the Backlog milestone on Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @JoergWMittag@SethTisue@Philippus

        Issue actions

          Scala Language Specification HTML website has duplicate ID attributes · Issue #11720 · scala/bug