Fix #787: Add mechanism for propagation of DOM dependency

Refine the result type of the method to `RuntimeDOM`.