This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The URL standard has a "percent decode" algorithm: http://url.spec.whatwg.org/#percent-encoded-bytes Parsing data: URLs probably requires a "percent decode to bytes" algorithm that is the same as "percent decode" with the following changes: * Remove the first step * Replace the last step by "Return bytes." To avoid redundancy, "percent decode" can then be be re-defined as: 1. If ''encoding override'' is not given, set it to utf-8. [This step is unchanged] 2. Let ''bytes'' be the result of running ''percent decode to bytes'' on ''input''. 3. Return the result of running encoding override's decoder on bytes. [This step is unchanged]
The "percent decode to bytes" name is only a suggestion. Better ideas for names are welcome :) After this is added, data: parsing should be updated: http://wiki.whatwg.org/wiki/URL_schemes#data:_URLs
Simon, I updated the URL Standard the other day to do this, but I cannot update the wiki anymore as the draft moved elsewhere.
Great, thanks. http://simonsapin.github.com/data-urls/ is updated.