Re: [DOMCore] minor wording problem for Document.importNode()

Aryeh Gregor:
> IMO it would be useful.  For instance, a while ago I was writing
> test-cases that involved doing something to an iframe, checking if it
> was expected, and then resetting it for the next test.  Resetting the
> src of the iframe and repeatedly having to hit the network was really
> slow (I didn't happen to have caching headers served), so my immediate
> inclination was to clone the iframe's Document, then set it directly
> using DOM methods after every test.

Wouldn’t you also want to be able to set the Document in the <iframe> in
that case?  There’s currently no way to do that.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Thursday, 30 June 2011 23:34:37 UTC