Repository navigation
explorer 2026.11.19.1
fix(archive): resume at an HTML tag that ends SVG or MathML (#81)
TLDR
When an HTML tag like <span> or <p> appears inside an SVG or MathML
element, a browser ends the SVG there and keeps reading. The bare-link
pass hid the rest of the body instead, so a visible report URL after an
inline SVG logo was never listed. It now resumes at that tag, as the
renderer does.
Problem
dropEnd returned -1 (left open: hide the rest) at a foreign-content
breakout tag. In <svg><span>logo</span></svg> https://vendor.example/report.csv, Sanitize shows the URL but the pass
dropped it. Raised by GitHub Codex on the archiver's mirror
(production-support#200).
Fix
dropLevel.breaksOut: a breakout start tag, or</p>/</br>,
outside an integration point ends the element;dropEndreturns the
tag's position and the scan resumes there, reading it as HTML.<font>breaks out only with color/face/size attributes, so it still
hides the rest (dropped, never invented).- Mirrors the archiver's
_drop_end; shared vectors copied from
production-support#200.
Tests
3 new shared vectors and 1 updated, each checked against Sanitize.
Python/Go parity on 160,000 fuzzed inputs (0 mismatches, none invented).
go vet, go build, go test ./..., golangci-lint (0 issues).
What's Changed
Full Changelog: v2026.11.18.2...v2026.11.19.1