mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
fix check for childen and attributes in desc element
This commit is contained in:
parent
49adbc49ac
commit
3d52905fe9
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ impl TryFrom<Element> for Field {
|
|||
let media_element = MediaElement::try_from(element.clone())?;
|
||||
field.media.push(media_element);
|
||||
} else if element.is("desc", ns::DATA_FORMS) {
|
||||
check_no_children!(element, "value");
|
||||
check_no_attributes!(element, "value");
|
||||
check_no_children!(element, "desc");
|
||||
check_no_attributes!(element, "desc");
|
||||
field.desc = Some(element.text());
|
||||
} else {
|
||||
return Err(Error::ParseError(
|
||||
|
|
Loading…
Reference in a new issue