W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2012

Re: [whatwg] Resource loading in browsing context-less Documents

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 5 Oct 2012 22:09:43 +0200
Message-ID: <CADnb78jVf+CXcYGY-EDdtEM2UOtfG0n7nv3Xm7BWmwOG2RV8AQ@mail.gmail.com>
To: Rafael Weinstein <rafaelw@google.com>
Cc: whatwg@whatwg.org, Ian Hickson <ian@hixie.ch>, Adam Klein <adamk@chromium.org>
On Fri, Oct 5, 2012 at 7:42 PM, Rafael Weinstein <rafaelw@google.com> wrote:
> Why is it useful to go to trouble of doing
> document.implementation.createHTMLDocument('foo').createElement('img')
> and have that fetch? The opposite seems true to me. It seems useful
> that there's a way to create elements which explicitly are inactive.
> It creates a safe playground to assemble DOM without worrying about
> intermediate states triggering externally visible effects.

Yeah sure, I'm not opposed to that. But that seems like a somewhat
bigger change, no? E.g. then you would also change <a>.click() be a
no-op I suppose? Or <form>.submit(). Not just img.src has side

Received on Friday, 5 October 2012 20:10:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:17 UTC