ok jasper@ (final commit)
HTML::RewriteAttributes is designed for simple yet powerful HTML attribute rewriting. You simply specify a callback to run for each attribute and we do the rest for you.