W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

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

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Tue, 13 Sep 2011 12:43:20 -0400
Message-ID: <op.v1q92ijq1ejg13@vertiform346>
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.)

-- 
Michael
Received on Tuesday, 13 September 2011 09:43:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC