fix check for childen and attributes in desc element

This commit is contained in:
mb 2024-06-18 17:22:23 +02:00 committed by Link Mauve
parent 49adbc49ac
commit 3d52905fe9

View file

@ -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(