Replace implementation with DOM.