Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Jorge
On 23/02/2011, at 04:57, Boris Zbarsky wrote: On 2/22/11 10:42 PM, Glenn Maynard wrote: Including execute() being synchronous, raising SyntaxError exceptions for parse errors, and uncaught exceptions from the script being propagated up through execute() to its caller? Hmm. That last one

Re: [whatwg] Device element and the lifetime of the stream objects

2011-02-23 Thread John Knottenbelt
Hi Rich, On Wed, Feb 16, 2011 at 6:03 PM, Rich Tibbett ri...@opera.com wrote: We are also trying a different approach but we're not really coming up with anything other than modal dialogs, no-authorization models or policies; none of which are suitable for different reasons. One option that

Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Diego Perini
On Wed, Feb 23, 2011 at 10:16 AM, Jorge jo...@jorgechamorro.com wrote: On 23/02/2011, at 04:57, Boris Zbarsky wrote: On 2/22/11 10:42 PM, Glenn Maynard wrote: Including execute() being synchronous, raising SyntaxError exceptions for parse errors, and uncaught exceptions from the script being

Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Kyle Simpson
I don't understand why the preloading specifically would imply different HTTP caching semantics than normal dynamic script loading? It doesn't have to. It's just that if preloading is easy to trigger by accident and authors don't notice when they accidentally preload lots of stuff then we may

Re: [whatwg] Proposal for separating script downloads and

2011-02-23 Thread Kyle Simpson
3. My (and Nicholas's previous) proposal: Script elements are fetched when inserted into the DOM[1]. An event is dispatched when the script has been fetched, eg. onfetch or onpreload[2]. A preload attribute is added; when true, the script will not be executed when the fetch completes; call

Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Boris Zbarsky
On 2/23/11 4:16 AM, Jorge wrote: Wouldn't this : HTMLScriptElement.prototype.execute= function execute () { // ... return (1, eval)( this.innerText ); // global eval } do it ? No. First of all, the script can be an external script, so innerText doesn't do the right thing. (only

Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Boris Zbarsky
On 2/23/11 8:33 AM, Kyle Simpson wrote: I'm curious if we could apply some limit to the number of scripts that will be simultaneously preloaded, at say 100 scripts for instance? I would be fine with that from an implementation standpoint; not sure about the author-facing aspect of it.

Re: [whatwg] Proposal for separating script downloads and

2011-02-23 Thread Boris Zbarsky
On 2/23/11 9:14 AM, Kyle Simpson wrote: The goal (from my perspective) is to come up with the simplest proposal that serves the use-cases. Simplest being defined in this particular situation as the least amount of change to the spec, AND the least amount of change to the browser that has by far

Re: [whatwg] banner as a dedicated tag

2011-02-23 Thread Karl Dubost
Le 23 févr. 2011 à 17:03, Martin Stender a écrit : I've been searching the archives for some discussions about the need for a dedicated banner-tag, but found only some WAI-related discussions about using the 'role'-attribute for this. banner tag proposed by Daniel Glazman? at the time of

Re: [whatwg] banner as a dedicated tag

2011-02-23 Thread Bjartur Thorlacius
On 2/23/11, Martin Stender mar...@stender.com wrote: So it would be great to have the ability to just insert a banner-tag, knowing that whatever goes on in side that tag, cannot alter the page itself. You should be able to grant the tag access to read various values of the surrounding page,

Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Kyle Simpson
I'm curious if we could apply some limit to the number of scripts that will be simultaneously preloaded, at say 100 scripts for instance? I would be fine with that from an implementation standpoint; not sure about the author-facing aspect of it. As one of the concerned web-authors, I can't

[whatwg] Rename DataTransferItems for consistency

2011-02-23 Thread Daniel Cheng
For consistency with other lists of things (such as Files), would it make sense to rename DataTransferItems to DataTransferItemList? It makes it easier to distinguish from DataTransferItem as welll. Daniel

Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Nicholas Zakas
Sorry, I've been traveling and out of the loop for a bit. Just catching up on the thread. One thing I want to throw out there: the proposals I put together were intended to start a discussion, not to end it. If there are parts that could be changed to make implementation easier, then let's

Re: [whatwg] banner as a dedicated tag

2011-02-23 Thread Aryeh Gregor
On Wed, Feb 23, 2011 at 2:12 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: I know that iframes don't stop the rest of the page from rendering while they load.  I can't recall off the top of my head whether they delay the load event or not. It seems yes: When there is an active parser in the

Re: [whatwg] Proposal for separating script downloads and execution

2011-02-23 Thread Kyle Simpson
Again, I think the spirit we all share is to find the simplest proposal that gets the job done, and introducing a new .execute() concept raised more questions than it purported to solve. The last dozen or two messages were regarding your rabbit hole, which raised serious issues. Serious

Re: [whatwg] banner as a dedicated tag

2011-02-23 Thread Benjamin Hawkes-Lewis
On Wed, Feb 23, 2011 at 11:53 PM, Aryeh Gregor simetrical+...@gmail.com wrote: On Wed, Feb 23, 2011 at 2:12 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: I know that iframes don't stop the rest of the page from rendering while they load.  I can't recall off the top of my head whether they