Set dom object via pub.