[whatwg] Proposal for improved handling of '#' inside of data URIs

Michael A. Puls II shadow2531 at gmail.com
Tue Sep 13 09:43:20 PDT 2011

On Sun, 11 Sep 2011 10:21:48 -0400, Michael A. Puls II  
<shadow2531 at gmail.com> wrote:

> Encoding the data (markup for example) for the data URI is simple. Just  
> use encodeURIComponent(markup) (on a UTF-8 page) in JS on the data. You  
> still hand-author the markup. You just paste the markup into a textarea  
> and have something (like encodeURIComponent()) percent-encode it for you.

For example, <http://shadow2531.com/js/create_data_uris.html>. (I'll make  
one for files with the File API at a later date.)


More information about the whatwg mailing list