I was worried about that, too. I've tested the demo in Safari, Chrome
and Firefox working OK with 1.5MB of text (thanks Gutenberg), and so
suspect that in practice these browsers are relaxed about data: URI
sizes.

None of this works at all for IE, of course, with its 32KB limit,
which I think is enforced. Anyhow, for old versions of IE we're
probably OK with the existing ActiveX code. I need to do some
investigation with IE9 and IE10.

Cheers

Jeremy


On Sat, Nov 12, 2011 at 11:38 PM, Eric Shulman <[email protected]> wrote:
> On Nov 12, 2:44 am, Jeremy Ruston <[email protected]> wrote:
>> I've been doing some experiments to explore how TiddlyWiki might be
>> able to use standards-compliant browser techniques to accomplish file
>> saving.
>
>> The first approach I've been looking at is that of assembling the new
>> TiddlyWiki file as a data: URI, and then simulating clicking on a link
>> to it in order to force the browser to download it.
>
> This works for small amounts of data.  However, there is a size limit
> to the use of the data: URL scheme.   According to the RFC for the
> data URI (see http://www.ietf.org/rfc/rfc2397)
> -----
> The "data:" URL scheme is only useful for short values. Note that
> some applications that use URLs may impose a length limit; for
> example, URLs embedded within <A> anchors in HTML have a length limit
> determined by the SGML declaration for HTML [RFC1866]. The LITLEN
> (1024) limits the number of characters which can appear in a single
> attribute value literal, the ATTSPLEN (2100) limits the sum of all
> lengths of all attribute value specifications which appear in a tag,
> and the TAGLEN (2100) limits the overall length of a tag.
> -----
>
> and, Mozilla's Developer info says (see 
> https://developer.mozilla.org/en/data_URIs)
> -----
> Although Mozilla supports data URIs of essentially unlimited length,
> browsers are not required to support any particular maximum length of
> data. For example, the Opera 11 browser limits data URIs to around
> 65000 characters.
> -----
> and:
> -----
> Note: as of Firefox 6, fragments (anchors) are processed consistent
> with other URI schemes, thus a bare "#" in the content needs to be
> escaped as '%23'.
> -----
> and:
> -----
> The data scheme is supported by Opera 7.20 and above, as well as
> Safari and Konqueror. Internet Explorer 7 and below, however, do not
> currently support it. Internet Explorer 8 and above only supports data
> URIs for images in CSS.
>
> *sigh*... so many complications....
>
> -e
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/tiddlywikidev?hl=en.
>
>



-- 
Jeremy Ruston
mailto:[email protected]
http://www.tiddlywiki.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to