Added support for creating text nodes.