Correction in Node.nodeType checks