disco: Bump minidom dependency to 0.2.0, which fixes xml:lang parsing.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-26 00:22:40 +01:00
commit 5d51dff9e6
2 changed files with 2 additions and 3 deletions

View file

@ -60,8 +60,7 @@ pub fn parse_disco(root: &Element) -> Result<Disco, Error> {
return Err(Error::ParseError("Identity must have a non-empty 'type' attribute."))
}
// TODO: this must check for the namespace of the attribute, but minidom doesnt support that yet, see issue #2.
let xml_lang = child.attr("lang").unwrap_or("");
let xml_lang = child.attr("xml:lang").unwrap_or("");
let name = child.attr("name")
.and_then(|name| name.parse().ok());
identities.push(Identity {