compares text nodes