Skip to content

Ensure that hasClass is correctly used #85450

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

As discovered in #85438, hasClass returns false when the element doesn't exist (which is normal) but that means we have to check if the element exist beforehand sometimes too.

Metadata

Metadata

Labels

A-rustdoc-jsArea: Rustdoc's JS front-endC-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions