Allow data attributes.
Extract css attribute scrubbing and empty attributes removal to own methods.