bugfix: buffer contents of text-nodes