Follow the HTML fragment serialization spec exactly for attribute values