childNodes => firstChild

children => firstElementChild

please use firstChild :)