Adding parent check for text node comparison.
per https://github.com/openannotation/xpath-range/issues/3