W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 1 Jul 2011 11:33:59 +1200
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
Cc: Anne van Kesteren <annevk@opera.com>, www-dom@w3.org, David Flanagan <dflanagan@mozilla.com>
Message-ID: <20110630233358.GD16552@wok.mcc.id.au>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT