Handle the case with no style attribute, needed for svg.