Skip to content

If an issue and one of its comments shares the same internal ID, then Gitea generates a duplicated html id in the issue view #21965

Closed
@fsologureng

Description

@fsologureng

Description

When a new Gitea instance is recently created, the first issue created and its, eventually, first comment (for example when the first instance comment goes to the first instance issue) shares the same internal ID, then the HTML created to that issue keeps a duplicated html ID for both objects.

this hidden element id collisionate with the id of this another hidden element generated here. The former is the raw content of the issue and the latter the raw content of the comment. This situation only occurs if both the issue and the comment internal ID shares the same page. In others words, if a comment shares the same internal ID with their issue, situation common with new issues over new instances.

Screenshots

image

image

image

Gitea Version

1.19.0+dev-112-g6fb168141

Can you reproduce the bug on the Gitea demo site?

No

Operating System

No response

Browser Version

Firefox 107.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions