- A packet starts at a <?xpacket begin= whose header holds the wrapper
id W5M0MpCehiHzreSzNTczkc9d within 256 bytes, so the same text inside
a value, such as in a CDATA section, does not restart the scan.
- setLocalizedText adds a new array in the same change that sets its
item, so a call that stops at the heap limit leaves no empty array.
- The 15 XMP error messages are English only; their translations are
left to storytold/craft-i18n, as AGENTS.md asks of feature pull
requests.
Tests: packets_are_found_in_file_bytes and
localized_text_past_the_heap_limit_adds_no_array in
crates/js/src/xmp_tests.rs. Docs: docs/mcp.md.