Fix #787: Add mechanism for propagation of DOM dependency