Handle style attributes in element setter instead of html parser

This fixes issue #699. tweaks a test case.

The last commit implements new {Set,Get}Attribute() by calling old {get, set}_attr(). but I'm not sure if this is the right approach. Should I reimplement the body of the functions? 
@metajack I think you might have an opinions for this.