check to see if nodeType is 1