use toDom for dom string construction, place only if have context