There is Dom.setAttr().