Ensure that hasClass is correctly used #85450
Labels
A-rustdoc-js
Area: Rustdoc's JS front-end
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
As discovered in #85438,
hasClass
returnsfalse
when the element doesn't exist (which is normal) but that means we have to check if the element exist beforehand sometimes too.The text was updated successfully, but these errors were encountered: