Prefer querySelector over getElementsByClassName or other live collection methods for element querying
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
While Document methods getElementsByClassName and getElementById are generally faster than querySelector, we should record our conventional use of querySelector in the Frontend style guide.
Links / references
Edited by 🤖 GitLab Bot 🤖