Re: [Imports] Considering imperative HTML imports?

2015-04-16 Thread Elliott Sprehn
On Wed, Apr 15, 2015 at 9:37 PM, Travis Leithead travis.leith...@microsoft.com wrote: Was an imperative form of HTML imports already considered? E.g., the following springs to mind: PromiseDocument importDocument(DOMString url); I was thinking about Worker’s importScripts(DOMString…

Re: [Imports] Considering imperative HTML imports?

2015-04-16 Thread Dimitri Glazkov
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25319 On Thu, Apr 16, 2015 at 12:55 AM, Elliott Sprehn espr...@chromium.org wrote: On Wed, Apr 15, 2015 at 9:37 PM, Travis Leithead travis.leith...@microsoft.com wrote: Was an imperative form of HTML imports already considered? E.g., the

Re: [Imports] Considering imperative HTML imports?

2015-04-16 Thread Dimitri Glazkov
Imports bug tree: https://www.w3.org/Bugs/Public/showdependencytree.cgi?id=20683hide_resolved=1 On Thu, Apr 16, 2015 at 7:27 AM, Dimitri Glazkov dglaz...@google.com wrote: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25319 On Thu, Apr 16, 2015 at 12:55 AM, Elliott Sprehn

RE: [Imports] Considering imperative HTML imports?

2015-04-16 Thread Travis Leithead
; public-webapps@w3.org Subject: Re: [Imports] Considering imperative HTML imports? On Thu, Apr 16, 2015 at 9:36 PM, Travis Leithead travis.leith...@microsoft.com wrote: Oh! XHR slipped my mind. It would be identical :) (Though perhaps a tiny-bit easier to use.) Would it? Imports load

Re: [Imports] Considering imperative HTML imports?

2015-04-16 Thread Anne van Kesteren
On Thu, Apr 16, 2015 at 9:36 PM, Travis Leithead travis.leith...@microsoft.com wrote: Oh! XHR slipped my mind. It would be identical :) (Though perhaps a tiny-bit easier to use.) Would it? Imports load subresources and execute scripts within the global of the importer. (Forgot what happens to

RE: [Imports] Considering imperative HTML imports?

2015-04-16 Thread Travis Leithead
Oh! XHR slipped my mind. It would be identical :) (Though perhaps a tiny-bit easier to use.) -Original Message- From: Boris Zbarsky [mailto:bzbar...@mit.edu] Sent: Thursday, April 16, 2015 11:30 AM To: public-webapps@w3.org Subject: Re: [Imports] Considering imperative HTML imports

Re: [Imports] Considering imperative HTML imports?

2015-04-16 Thread Boris Zbarsky
On 4/16/15 12:37 AM, Travis Leithead wrote: Was an imperative form of HTML imports already considered? E.g., the following springs to mind: PromiseDocument importDocument(DOMString url); How is this different from a promise-ified version of XHR, exactly? (Not that there's anything wrong

Re: [Imports] Considering imperative HTML imports?

2015-04-15 Thread Dominic Cooney
On Thu, Apr 16, 2015 at 1:37 PM, Travis Leithead travis.leith...@microsoft.com wrote: Was an imperative form of HTML imports already considered? E.g., the following springs to mind: PromiseDocument importDocument(DOMString url); I was thinking about Worker’s importScripts(DOMString…