- From: Tim Streater <tim@clothears.org.uk>
- Date: 30 Oct 2012 16:15 +0000
- To: <whatwg@whatwg.org>
Received on Tuesday, 30 October 2012 16:16:22 UTC
On 30 Oct 2012 at 10:20, Stewart Brodie <stewart.brodie@antplc.com> wrote: > Johan Sundström <oyasumi@gmail.com> wrote: >> Serializing a complete HTML document DOM to a string is surprisingly >> hard in javascript. > > Does XMLSerializer().serializeToString(document) not meet your requirement? I was wondering that too. I use it to get the content of an iframe into a string, so I can send that off to a database. Seems to work without problems (Safari Mac 6.0.1). But I too had to ask how to do that; it wasn't particularly obvious that that was what I should have been using (to me at any rate). -- Cheers -- Tim
Received on Tuesday, 30 October 2012 16:16:22 UTC