You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ComplexField revision acceptance text ordering: acceptAllRevisions() now uses getAcceptedResultText() for correct interleaved ordering when accepting revisions inside ComplexField result sections. Previously, insertion text was appended to the end of the result instead of being merged in document order.
New Features
setTrackedResult() on ComplexField: Tracked-change-aware display text updates for HYPERLINK field codes. Creates proper w:del/w:ins revision pairs with formatting preservation.
getAcceptedResultText() on ComplexField: Extracts the accepted (visible) text from interleaved resultContent XML elements, processing plain runs and insertions while skipping deletions.
Field code hyperlink revision preservation: tryPromoteRevisionFieldCode() no longer extracts field runs out of content revisions (w:ins, w:del, w:moveFrom, w:moveTo), preserving round-trip fidelity for tracked field code changes.
Code Quality
Removed ~30 lines of dead code in tryPromoteRevisionFieldCode()
Strengthened test assertions from toContain to toBe for acceptance text ordering
Added negative assertion for bare w:instrText in w:del round-trip test