SyntaxFix
Write A Post
Hire A Developer
Questions
That works too:
document.querySelector([attribute="value"]);
So:
document.querySelector([data-foo="bar"]);