JavaScript ES6 Dom Manipulação
myElement.matches('div.bar') === true
Vivacious Vulture
myElement.matches('div.bar') === true
const myChildElemet = myElement.querySelector('input[type="submit"]')
// Instead of
// document.querySelector('#foo > div.bar input[type="submit"]')
const myElement = document.querySelector('#foo > div.bar')
const myElements = document.querySelectorAll('.bar')