apply attrs.dom