Skip to content

Assert MathML namespace survives in opaque-stem Sanitizer test - #118

Merged
andrew2net merged 1 commit into
lutaml-integrationfrom
fix/sanitizer-assert-mathml-namespace
Jun 26, 2026
Merged

Assert MathML namespace survives in opaque-stem Sanitizer test#118
andrew2net merged 1 commit into
lutaml-integrationfrom
fix/sanitizer-assert-mathml-namespace

Conversation

@opoudjis

Copy link
Copy Markdown
Contributor

Refs #116
Refs metanorma/basicdoc-models#35

The opaque-stem Sanitizer test (#117) already fed a namespaced <math xmlns="http://www.w3.org/1998/Math/MathML">, but only asserted the inner elements survived — not the namespace itself. basicdoc-models#35 makes MathML an explicit, namespaced grammar, so the xmlns surviving the round-trip is the actual requirement ("namespace and all").

This adds the missing assertion. Verified separately that lutaml-model 0.8.16 preserves the xmlns through map_all raw in both XML and key-value round-trips, so the model half needs no change — this guards the Sanitizer half, and would fail loudly if the opaque-stem handling (#116/#117) were reverted.

🤖

The opaque-stem test fed <math xmlns=...> but never asserted the xmlns
survived. Add that assertion: basicdoc-models#35 requires MathML to
round-trip "namespace and all". lutaml-model 0.8.16 preserves it (XML +
key-value); this guards the Sanitizer half and tripwires a revert of the
opaque-stem handling (#116/#117).

Refs #116
Refs metanorma/basicdoc-models#35
@andrew2net
andrew2net merged commit 35e3ea5 into lutaml-integration Jun 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants