According to the RFC 2397 spec, data URLs may also contain URL encoded text:
Without ";base64", the data (as a sequence of octets) is represented using ASCII encoding for octets inside the range of safe URL characters and using the standard %xx hex encoding of URLs for octets outside that range.
Donner should support this as well as these improvements:
Factor data URL handling out of ImageLoader::fromUri and into a DataUrlParser
Add support for non-base64 data URLs, with %xx hex decoding outside of the safe URL character range.
Add unittest coverage for different DataUrlParser behaviors
Currently Donner supports embedded images with data URLs in base64 format:
According to the RFC 2397 spec, data URLs may also contain URL encoded text:
Donner should support this as well as these improvements:
ImageLoader::fromUri
and into aDataUrlParser
%xx
hex decoding outside of the safe URL character range.DataUrlParser
behaviors