Hi Andreas.
Thanks for the reply!
I'm particularly interested in the final stage - i.e. how exactly the browser is commanded to save the (dynamic) changes to the page.
(If you have the time, I posted
this on StackOverflow recently, which kind of gives a wider context as to what I've been researching.)
As what is saved is basically an updated version of the whole document, is the dataUrl link that you mentioned in your stage 4 a complete duplicate of the whole document?
From what you write after that, would I be right in guessing that TiddlyWiki then conditionally branches into browser-specific code to do the actual final saving?
The saving can be so easily implemented in some browsers (e.g. with the anchor download attribute in Chrome), but it would be so much more elegant to be able to use the exact same HTML5/CSS3/Javascript code for all browsers!
I'll attempt another plough through the source code following your guidance.
Thanks again for your help!
Kind regards from (not so) sunny Cambridge, England,
Rick.