[whatwg] Declarative unload data

2012-05-07 Thread Tab Atkins Jr.
Besides those annoying Are you sure you want to leave this page? dialogs, the primary use of the unload events is a final, desperate attempt to throw a message at the server, either to save some data or release some server-held resource. However, this is tricky to do reliably, because browsers

Re: [whatwg] Localisation of form fields

2012-05-07 Thread Bronislav Klučka
On 4.5.2012 23:17, Ian Hickson wrote: On Fri, 27 Jan 2012, Bronislav Klu�~Mka wrote: we are currently discussing localization in form fields, but that may result in some unfortunate behavior if implemented alone, because data will be displayed in localized representation in form fields but

Re: [whatwg] [webcomponents] Template element parser changes = Proposal for adding DocumentFragment.innerHTML

2012-05-07 Thread Simon Pieters
On Fri, 04 May 2012 23:46:46 +0200, Ian Hickson i...@hixie.ch wrote: On Fri, 4 May 2012, Rafael Weinstein wrote: This is the current proposal: http://lists.w3.org/Archives/Public/public-webapps/2012AprJun/0334.html I don't really understand the proposal. How does it relate to the template

Re: [whatwg] [webcomponents] Template element parser changes = Proposal for adding DocumentFragment.innerHTML

2012-05-07 Thread Tab Atkins Jr.
On Mon, May 7, 2012 at 10:34 AM, Simon Pieters sim...@opera.com wrote: On Fri, 04 May 2012 23:46:46 +0200, Ian Hickson i...@hixie.ch wrote: What does it do in the case of:   var frag = document.createDocumentFragment();   frag.innerHTML = 'bla bla .. 1GB of text .. bla caption bla' ? When

Re: [whatwg] [webcomponents] Template element parser changes = Proposal for adding DocumentFragment.innerHTML

2012-05-07 Thread Simon Pieters
On Mon, 07 May 2012 10:58:00 +0200, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, May 7, 2012 at 10:34 AM, Simon Pieters sim...@opera.com wrote: On Fri, 04 May 2012 23:46:46 +0200, Ian Hickson i...@hixie.ch wrote: What does it do in the case of: var frag =

Re: [whatwg] [webcomponents] Template element parser changes = Proposal for adding DocumentFragment.innerHTML

2012-05-07 Thread Jonas Sicking
On Mon, May 7, 2012 at 1:58 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, May 7, 2012 at 10:34 AM, Simon Pieters sim...@opera.com wrote: On Fri, 04 May 2012 23:46:46 +0200, Ian Hickson i...@hixie.ch wrote: What does it do in the case of:   var frag =

Re: [whatwg] Localisation of form fields

2012-05-07 Thread Benjamin Hawkes-Lewis
2/ FormatSettings object [Constructor(),  Constructor(DOMString locale),  Constructor(FormatSettings locale), ] interface FormatSettings {    attribute DOMString CurrencyString;    attribute Number CurrencyFormat;    attribute Number CurrencyDecimals;    attribute DOMString

Re: [whatwg] Localisation of form fields

2012-05-07 Thread Benjamin Hawkes-Lewis
On Mon, May 7, 2012 at 9:32 AM, Bronislav Klučka bronislav.klu...@bauglir.com wrote: I can see you are pushing for CSS because of presentation level, but 1/ you need to display currency or number, what would you do? span style=format-type: number; format-decimal-separator: ',';123.22/span

Re: [whatwg] Localisation of form fields

2012-05-07 Thread Bronislav Klučka
On 7.5.2012 12:09, Benjamin Hawkes-Lewis wrote: 2/ FormatSettings object [Constructor(), Constructor(DOMString locale), Constructor(FormatSettings locale), ] interface FormatSettings { attribute DOMString CurrencyString; attribute Number CurrencyFormat; attribute Number

Re: [whatwg] Localisation of form fields

2012-05-07 Thread Bronislav Klučka
On 7.5.2012 12:11, Benjamin Hawkes-Lewis wrote: On Mon, May 7, 2012 at 9:32 AM, Bronislav Klučka bronislav.klu...@bauglir.com wrote: I can see you are pushing for CSS because of presentation level, but 1/ you need to display currency or number, what would you do? span style=format-type:

Re: [whatwg] Localisation of form fields

2012-05-07 Thread Bronislav Klučka
On 7.5.2012 12:09, Benjamin Hawkes-Lewis wrote: Are you talking specifically about conversion of form values between an over-the-wire format and a localized display format? -- Benjamin Hawkes-Lewis No, I'm talking about just client side processing / diplaying. What I want is new abilities

Re: [whatwg] Declarative unload data

2012-05-07 Thread Tim Streater
On 07 May 2012 at 08:53, Tab Atkins Jr. jackalm...@gmail.com wrote: Besides those annoying Are you sure you want to leave this page? dialogs, the primary use of the unload events is a final, desperate attempt to throw a message at the server, either to save some data or release some

Re: [whatwg] Declarative unload data

2012-05-07 Thread Bronislav Klučka
On 7.5.2012 13:42, Tim Streater wrote: On 07 May 2012 at 08:53, Tab Atkins Jr.jackalm...@gmail.com wrote: Besides those annoying Are you sure you want to leave this page? dialogs, the primary use of the unload events is a final, desperate attempt to throw a message at the server, either to

Re: [whatwg] Search-suggestions without scripting

2012-05-07 Thread Bjartur Thorlacius
On 5/5/12, Ian Hickson i...@hixie.ch wrote: Note that even in this space, though, it's not the end of the story. For example, Chrome does more than just list the search autocomplete results; it also loads the first suggestion in the background, and mixes in results from local history search,

Re: [whatwg] Declarative unload data

2012-05-07 Thread Boris Zbarsky
On 5/7/12 3:53 AM, Tab Atkins Jr. wrote: A page can set up an unloadHandler immediately on loading, and just keep its .data property updated over time. The author is then secure in the knowledge that, barring complete computer destruction, if the user shuts down their browser the server will

Re: [whatwg] Declarative unload data

2012-05-07 Thread Tab Atkins Jr.
On Mon, May 7, 2012 at 5:32 PM, Boris Zbarsky bzbar...@mit.edu wrote: On 5/7/12 3:53 AM, Tab Atkins Jr. wrote: A page can set up an unloadHandler immediately on loading, and just keep its .data property updated over time.  The author is then secure in the knowledge that, barring complete

Re: [whatwg] Declarative unload data

2012-05-07 Thread Bronislav Klučka
On 7.5.2012 17:32, Boris Zbarsky wrote: On 5/7/12 3:53 AM, Tab Atkins Jr. wrote: A bigger question is whether browsers really want to make it easier to do this or work on getting rid of the ability to phone home at/after unload altogether. My gut reaction every time I see pages doing it is

Re: [whatwg] Declarative unload data

2012-05-07 Thread Boris Zbarsky
On 5/7/12 11:53 AM, Tab Atkins Jr. wrote: Yes, definitely (unless you set .withCredentials on it or something, like the XHR attribute). Hold on. If you _do_ set withCredentials, you should be required to pass the credentials in or something. Under no circumstances would prompting for

Re: [whatwg] Declarative unload data

2012-05-07 Thread Boris Zbarsky
On 5/7/12 11:54 AM, Bronislav Klučka wrote: I see pages doing it is that they're up to no good well that is your opinion, sure, we have all seen bad use of that, but removing functionality that has no replacement, can be used for useful thinks (well for bad as well) can hardly be reasonable

Re: [whatwg] Declarative unload data

2012-05-07 Thread Bronislav Klučka
On 7.5.2012 18:00, Boris Zbarsky wrote: On 5/7/12 11:54 AM, Bronislav Klučka wrote: I see pages doing it is that they're up to no good well that is your opinion, sure, we have all seen bad use of that, but removing functionality that has no replacement, can be used for useful thinks (well for

Re: [whatwg] Declarative unload data

2012-05-07 Thread Boris Zbarsky
On 5/7/12 12:10 PM, Bronislav Klučka wrote: I'm not sure about whole functionality removed without replacement... You wrote to Tab the legitimate use-case for popup windows is also reasonable, yet browsers have popup blockers. sure, but this functionality was not removed, etc... There are

[whatwg] iframe srcdoc and Content-Security-Policy

2012-05-07 Thread Adam Barth
== Summary == When creating a srcdoc document, we need to be careful to avoid introducing a Content-Security-Policy loophole. == Details == Consider a document with the following Content-Security-Policy: Content-Security-Policy: default-src 'none'; frame-src * Now, imagine the following

Re: [whatwg] Declarative unload data

2012-05-07 Thread Jonas Sicking
On Mon, May 7, 2012 at 8:59 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 5/7/12 11:53 AM, Tab Atkins Jr. wrote: Yes, definitely (unless you set .withCredentials on it or something, like the XHR attribute). Hold on.  If you _do_ set withCredentials, you should be required to pass the

Re: [whatwg] Declarative unload data

2012-05-07 Thread Tab Atkins Jr.
On Mon, May 7, 2012 at 9:05 PM, Jonas Sicking jo...@sicking.cc wrote: On Mon, May 7, 2012 at 8:59 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 5/7/12 11:53 AM, Tab Atkins Jr. wrote: Yes, definitely (unless you set .withCredentials on it or something, like the XHR attribute). Hold on.  If you

Re: [whatwg] Declarative unload data

2012-05-07 Thread Glenn Maynard
On Mon, May 7, 2012 at 2:05 PM, Jonas Sicking jo...@sicking.cc wrote: As far as resource usage goes, it doesn't seem like a bid deal to send off a request at some point when the network seems quiet. I could see interop problems if people use this to send something when the user navigates out,

[whatwg] Can we change the base URL of fallback entries in appcache manifests? and other feedback

2012-05-07 Thread Ian Hickson
On Tue, 2 Aug 2011, Michael Nordman wrote: On Mon, 13 Jun 2011, Michael Nordman wrote: Let's say there's a page in the cache to be used as a fallback resource, refers to the manifest by relative url... html manifest='x' Depending on the url that invokes the fallback

[whatwg] More forms-related feedback

2012-05-07 Thread Ian Hickson
On Tue, 17 Jan 2012, Rich Tibbett wrote: During some experimentation today I wanted to establish a cross-document messaging channel for when a user submits a form with a target of _blank (or _someframe). I couldn't find any native way to do this when target == _blank so I had to produce my

Re: [whatwg] Declarative unload data

2012-05-07 Thread Charles Pritchard
On 5/7/2012 12:39 PM, Glenn Maynard wrote: On Mon, May 7, 2012 at 2:05 PM, Jonas Sickingjo...@sicking.cc wrote: As far as resource usage goes, it doesn't seem like a bid deal to send off a request at some point when the network seems quiet. I could see interop problems if people use this to

Re: [whatwg] multipart/form-data filename encoding: unicode and special characters

2012-05-07 Thread Anne van Kesteren
On Fri, 04 May 2012 01:59:15 +0200, Evan Jones ev...@csail.mit.edu wrote: I would be interested in trying to help with this, but again I would certainly need some guidance from people who know more about the vagaries of how the various browsers encode their form parameters / uploaded file