Files
Zachary D. Rowitsch 9564adec81 Add data: URI support (RFC 2397) via DataUriLoader
Implement a new DataUriLoader that handles the data: URL scheme, enabling
inline resources like <img src="data:..."> and CSS url(data:...). The loader
parses mediatype headers, supports base64 and percent-encoded data, enforces
a 10 MB size limit matching HttpLoader, and handles case-insensitive ;base64
detection and whitespace stripping per WHATWG Fetch §4.1. Percent-decoding is
applied before base64 decoding to handle url crate path encoding of /+=.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 20:41:53 -05:00
..