Simplify html5lib attribute serialization