let elem = document.querySelector('.element[data-attr=this-element]')
let [elem] = [...document.getElementsByClassName('element')]
.filter((item) => { return item.getAttribute('data-attr') === 'this-element' })
let [elem] = [...document.getElementsByClassName('element')]
.filter((item) => { return item.dataset.attr === 'this-element' })