Factory for creating minimal DOM-like text nodes.