query selector by data atribute as a variable javascript code example
Example: js queryselector get elements with empty attribute
document.querySelectorAll("iframe:not([title]), iframe[title='']")
document.querySelectorAll("iframe:not([title]), iframe[title='']")