Fixing parsing issue when html contains non-valid attribute

Fixing parsing issue when html contains non-valid attribute

See https://github.com/netgusto/upndown/issues/2