move text handling from Document to Node

Signed-off-by: Florian Thienel <florian@thienel.org>
4 files changed