nodeType should always be a number, at least according to the html spec.