Avoid writing properties to attributes when dumping html. Instead just convert values as necessary when dumping.