Is it possible to get a child dom element, which will be the first child of a specific type.
For example in both of these examples I want to get the img ele
img
You can also use querySelector:
var firstImg = document.querySelector("#mylink > img:first-of-type");