From 9799e3be701c0b135ee4283facdf0ad978effcd3 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 17 Nov 2026 12:10:30 -0500 Subject: [PATCH] Split XFA accessor regressions without weakening assertions --- crates/xfa/src/xml.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/xfa/src/xml.rs b/crates/xfa/src/xml.rs index 2bed07bbf..b76f4d755 100644 --- a/crates/xfa/src/xml.rs +++ b/crates/xfa/src/xml.rs @@ -433,6 +433,13 @@ mod tests { let namespaces: Vec<_> = root.namespaces().map(|n| (n.name(), n.uri())).collect(); assert!(namespaces.contains(&(None, "urn:r"))); assert!(namespaces.contains(&(Some("p"), "urn:p"))); + } + + #[test] + fn descendants_and_text_nodes_preserve_identity_and_empty_accessors() { + let doc = + Document::parse("firstsecondlast").unwrap(); + let root = doc.root_element(); let all: Vec<_> = doc.descendants().collect(); assert_eq!(all.len(), 5); assert!(all.iter().zip(root.descendants()).all(|(a, b)| *a == b));