Alternative implementation of the DOM