Unified theory of DOM