diff --git a/minidom/src/element.rs b/minidom/src/element.rs index 6f4d8a16..ab5bb1f5 100644 --- a/minidom/src/element.rs +++ b/minidom/src/element.rs @@ -989,4 +989,20 @@ mod tests { assert_eq!(elem, elem2); } + + #[test] + fn failure_with_duplicate_namespace() { + let elem: Element = r###" + + + + + + + "### + .parse() + .unwrap(); + } }