use childNodes instead of children for IE8 support