support for empty elements in parser
support for empty elements in serializer
better handling of messy markup
improve compatibility with bad markup around attributes
basic html escaping of attribute values