From a0d4edccd69e440a2e5142bf579da5bcebcaa17d Mon Sep 17 00:00:00 2001 From: Reuben Grinberg Date: Sun, 29 Nov 2026 21:16:54 -0600 Subject: [PATCH] validate(scan): distinguish unresolved-namespace AlternateContent in F11 pairing note (#7643) In note_scan_incomplete (crates/validate/src/scan.rs:1373), the F11 coverage note previously stated that the part 'skipped mc:AlternateContent', which overclaimed when enter_alt matched an AlternateContent element of unresolved namespace (scan.rs:1445) or an empty AlternateContent tag (Event::Empty, scan.rs:1178). Reword the note so every clause holds on every path reaching line 1373: the part contains an element treated as mc:AlternateContent (mc:AlternateContent or AlternateContent of unresolved namespace) whose contents are not scanned for pairing, has pending field/move/bookmark/comment pairing, and completion-dependent pairing checks were not run. Part of #7643 (F11 fix round 2). --- crates/validate/src/scan.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/validate/src/scan.rs b/crates/validate/src/scan.rs index ee2208ffc9..603adcdc12 100644 --- a/crates/validate/src/scan.rs +++ b/crates/validate/src/scan.rs @@ -1370,7 +1370,7 @@ fn note_scan_incomplete(part: &str, state: &State, out: &PartScan, scan_complete acc.set_incomplete(); } else if skipped_content && completion_dependent_pending(state) { acc.note(format!( - "{part} skipped mc:AlternateContent and has pending field/move/bookmark/comment pairing; completion-dependent pairing checks were not run" + "{part} contains an element treated as mc:AlternateContent (mc:AlternateContent or AlternateContent of unresolved namespace) whose contents are not scanned for pairing, and has pending field/move/bookmark/comment pairing; completion-dependent pairing checks were not run" )); acc.set_incomplete(); }