Use childNodes instead of children.