passed context in the call to toHtml and toDom