Factory for creating minimal DOM-like elements.