minidom: Bump rxml

This was causing a memory corruption on closing tags for elements with a
name longer than 24 bytes.  I haven’t investigated why smartstring < 1
had this bug, but it got fixed in 1.0.0 so let’s use that.
This commit is contained in:
Emmanuel Gil Peyrot 2023-04-03 11:14:34 +02:00
commit eb628704c0
3 changed files with 14 additions and 2 deletions

View file

@ -452,3 +452,15 @@ fn missing_namespace_error() {
err => panic!("No or wrong error: {:?}", err),
}
}
#[test]
fn misserialisation() {
let xml =
"<jitsi_participant_codecType xmlns='jabber:client'>vp9</jitsi_participant_codecType>";
//let elem = xml.parse::<Element>().unwrap();
let elem = Element::builder("jitsi_participant_codecType", "jabber:client")
.append("vp9")
.build();
let data = String::from(&elem);
assert_eq!(xml, data);
}