apply attrs.dom fix