mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
* fix: canonicalize <w:rPr> element order for Word compatibility MS Word Online enforces a de facto canonical order for `<w:rPr>` elements, ignoring spec-defined flexibility. When `<w:strike>` appears after `<w:sz>`, or `<w:color>` follows `<w:u>`, formatting is silently dropped (strike and color, respectively). This reordering aligns our output with the structure Word itself emits, ensuring correct rendering. The OOXML Validator VSCode extension also flags these cases as schema violations, further reinforcing the need to respect this pseudo-ordering despite the spec's use of `<xsd:choice>`. * fix: ordering of elements of symbol-run.spec.ts * fix: ordering of elements of default-styles.spec.ts