Why not just use `Node.ELEMENT_NODE` and the likes? Probably all the places where you want to check for nodeType already access DOM so it should be safe? see https://github.com/facebook/react/pull/423/files#r7112182 for the previous discussion on the matter