I have an XHTML page where each HTML element has a unique custom attribute, like this:
Doing this with vanilla JavaScript will do the trick:
const something = document.querySelectorAll('[data-something]')