Fix in style() method

Fixes a problem which caused that only the first property of a css
string was assigned to the style attribute of the element.