allow setting of attributes, and fixed bug in CSS3-style path method