Check if text is node via getAttribute function