handle text node changes

Text node changes, such as described in issue #54, would produce an error.