[whatwg] API to delay the document load event

2013-04-24 Thread Robert O'Callahan
Context: https://bugzilla.mozilla.org/show_bug.cgi?id=863499 Use-cases: 1) User-agents provide thumbnails of Web pages (e.g. desktop Firefox, FirefoxOS and Safari do this). We want to avoid taking a thumbnail while the application is incompletely loaded. The firing of the document load event is

Re: [whatwg] API to delay the document load event

2013-04-24 Thread Glenn Maynard
On Wed, Apr 24, 2013 at 6:51 AM, Robert O'Callahan rob...@ocallahan.orgwrote: Proposal: Give Web applications APIs to explicitly delay the document load event. In particular, add a method document.delayLoadEvent() that causes the document load event to be delayed until a corresponding

Re: [whatwg] API to delay the document load event

2013-04-24 Thread Bjoern Hoehrmann
* Robert O'Callahan wrote: 1) User-agents provide thumbnails of Web pages (e.g. desktop Firefox, FirefoxOS and Safari do this). We want to avoid taking a thumbnail while the application is incompletely loaded. The firing of the document load event is not currently a reliable indicator since the

Re: [whatwg] HTML: A DOM attribute that returns the language of a node

2013-04-24 Thread Anne van Kesteren
On Wed, Apr 24, 2013 at 6:49 AM, Peter Occil pocci...@gmail.com wrote: While a language attribute on Node may also be useful to HTML+RDFa processors in JavaScript, I have no plans to implement such a processor in JavaScript, though. There's https://www.w3.org/Bugs/Public/show_bug.cgi?id=16489

Re: [whatwg] HTML: A DOM attribute that returns the language of a node

2013-04-24 Thread Peter Occil
I have no objection to the name baseLang rather than language as the name of the DOM attribute. But if there isn't more interest or you decide not to add this DOM attribute, I encourage you to at least: * define a DOM attribute to get the value of the document's Content-Language header