From 84acd52710ff9df56c24e64c5ba85378c01bdd3a Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sun, 22 Nov 2026 07:36:05 -0800 Subject: [PATCH] Scripts: text beside an XMP array keeps the property as written A property holding text next to its rdf:Bag, rdf:Seq or rdf:Alt was read as an array of simple items, and serialize() dropped the text. Such a property is now kept as the XML it was written in. Test: text_beside_an_array_is_kept in crates/js/src/xmp_tests.rs. --- crates/js/src/xmp.rs | 2 +- crates/js/src/xmp_tests.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/crates/js/src/xmp.rs b/crates/js/src/xmp.rs index 497cc7ca61..d4973603d5 100644 --- a/crates/js/src/xmp.rs +++ b/crates/js/src/xmp.rs @@ -526,7 +526,7 @@ fn read_property(p: &El, scope: &mut Scope, registry: &mut Registry) -> Result