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).
This commit is contained in:
Reuben Grinberg
2026-11-29 21:16:54 -06:00
parent b743dbad0a
commit a0d4edccd6
+1 -1
View File
@@ -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();
}