W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2015

Re: [whatwg] <iframe async>

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Fri, 27 Feb 2015 14:38:49 -0500
Message-ID: <54F0C7C9.3010106@mit.edu>
To: whatwg@lists.whatwg.org
On 2/27/15 2:18 PM, Tim Streater wrote:
> One thing I'd like would be to be able to put content into an iframe (and thus have it parsed), but defer any rendering or speculative download of resources referred to in the content.

Depending on whether you care about the href of your iframe and whether 
you want it sandboxed and so forth:

var parsedThing =
   new DOMParser().parseFromString(myString, "text/html");
// Process parsedThing however you want.

Received on Friday, 27 February 2015 19:39:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:27 UTC