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

2011-05-26 Thread Ian Hickson
On Thu, 26 May 2011, Boris Zbarsky wrote: On 5/26/11 1:10 AM, Ian Hickson wrote: It's presumably a whole heck of a lot more complex than brack matching: alert('fail'); function test () { // ...megabytes of perfectly fine code... a b; } ...had better not

Re: [whatwg] [html5] Question on the structured cloning algorithm

2011-05-26 Thread Stewart Brodie
Ian Hickson i...@hixie.ch wrote: On Tue, 24 May 2011, Stewart Brodie wrote: Do getters need to be called to obtain a value which can be stored (after being cloned itself) in the result? I'm not sure I follow the question. Can you elaborate? Are getters called during cloning? i.e. what

Re: [whatwg] Request for feedback: supported elements for formatBlock

2011-05-26 Thread Boris Zbarsky
On 5/26/11 12:53 PM, Ryosuke Niwa wrote: And WebKit is also a part of Mac OS X framework and native applications that use WebKit as a part of their applications have no incentive to support Trident, Gecko, or Opera behaviors. I think this particular argument should have next to no weight when

Re: [whatwg] Request for feedback: supported elements for formatBlock

2011-05-26 Thread Ryosuke Niwa
On Thu, May 26, 2011 at 10:13 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 5/26/11 12:53 PM, Ryosuke Niwa wrote: And WebKit is also a part of Mac OS X framework and native applications that use WebKit as a part of their applications have no incentive to support Trident, Gecko, or Opera

Re: [whatwg] Request for feedback: supported elements for formatBlock

2011-05-26 Thread Boris Zbarsky
On 5/26/11 1:25 PM, Ryosuke Niwa wrote: On Thu, May 26, 2011 at 10:13 AM, Boris Zbarsky bzbar...@mit.edu mailto:bzbar...@mit.edu wrote: On 5/26/11 12:53 PM, Ryosuke Niwa wrote: And WebKit is also a part of Mac OS X framework and native applications that use WebKit as

Re: [whatwg] Request for feedback: supported elements for formatBlock

2011-05-26 Thread Ryosuke Niwa
On Thu, May 26, 2011 at 10:40 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 5/26/11 1:25 PM, Ryosuke Niwa wrote: Sure. I'm just saying that it'll be hard for us to drop the support for other elements in practice. I have no problem with spec not including those elements. Yes, I understand

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Boris Zbarsky
On 5/26/11 2:06 PM, Dennis Joachimsthaler wrote: a href='http://example.com/user_content/harmless_text_file.txt' disposition='attachment; filename=Important_Security_Update.exe' At least in the case of Firefox for that particular case on Windows thefilename will be sanitized... So what does

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Dennis Joachimsthaler
Hi Boris, Am 26.05.2011, 20:15 Uhr, schrieb Boris Zbarsky bzbar...@mit.edu: On 5/26/11 2:06 PM, Dennis Joachimsthaler wrote: I believe it forces the extension to match the MIME type; if the type text/plain the saved filename will be Important_Security_Update.exe.txt. Ah, alright. This

[whatwg] Proposed simplification to Microdata

2011-05-26 Thread Guha
We are trying to simplify statement of a fairly common thing that crops up with microdata E.g., Consider the block: 1) div itemscope itemtype=”http://schema.org/Book” span itemprop=”name”The Catcher in the Rye/span - by span itemprop=”hasAuthor”J.D. Salinger/span /div Now, the

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Boris Zbarsky
On 5/26/11 2:16 PM, Dennis Joachimsthaler wrote: Wouldn't this be no immediate problem on Linux type OSs? There's usually no execution bit set on files downloaded. Yes, that's the one saving grace. Usually is key, though. And practically you can run ALL files as binaries, it looks for the

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Dennis Joachimsthaler
Am 26.05.2011, 21:08 Uhr, schrieb Boris Zbarsky bzbar...@mit.edu: Yes, that's the one saving grace. Usually is key, though. Usually, damn. There is little practical difference for the user between running a binary and running a perl script, and sneaking in a text file with a .pl

Re: [whatwg] [html5] Question on the structured cloning algorithm

2011-05-26 Thread Ian Hickson
On Thu, 26 May 2011, Stewart Brodie wrote: Ian Hickson i...@hixie.ch wrote: On Tue, 24 May 2011, Stewart Brodie wrote: Do getters need to be called to obtain a value which can be stored (after being cloned itself) in the result? I'm not sure I follow the question. Can you

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Boris Zbarsky
On 5/26/11 3:12 PM, Dennis Joachimsthaler wrote: Oh I see the problem... Is it the bang? #!/bin/perl #!/bin/python #!/bin/bash could very well result in the text file being executed in one of those interpreters, right? Yes, but even worse on some systems a .pl file will just handed over to

Re: [whatwg] Request for feedback: supported elements for formatBlock

2011-05-26 Thread Aryeh Gregor
On Thu, May 26, 2011 at 12:53 PM, Ryosuke Niwa rn...@webkit.org wrote: The problem is with queryCommandValue.  One of the reasons we support so many block elements is so that queryCommandValue returns a sensible value.  For example, if called queryCommandValue('FormatBlock') inside a

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Boris Zbarsky
On 5/26/11 4:40 PM, Dennis Joachimsthaler wrote: Though I think it still would happen rarely that a pl file gets downloaded. The problem is getting the user to save a text file you control as a .pl file. I mean who on the most popular system, Windows, has a Perl interpreter installed?

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Dennis Joachimsthaler
Am 26.05.2011, 22:53 Uhr, schrieb Boris Zbarsky bzbar...@mit.edu: Probably no one, to a first approximation, but we were specifically talking about non-Windows systems. On Windows, as I said, Gecko forces extensions to match content types, to avoid this sort of issue in general. Yep,

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Julian Reschke
On 2011-05-26 22:54, Dennis Joachimsthaler wrote: Am 26.05.2011, 22:53 Uhr, schrieb Boris Zbarsky bzbar...@mit.edu: Probably no one, to a first approximation, but we were specifically talking about non-Windows systems. On Windows, as I said, Gecko forces extensions to match content types, to

Re: [whatwg] Content-Disposition property for a tags

2011-05-26 Thread Dennis Joachimsthaler
Am 26.05.2011, 22:58 Uhr, schrieb Julian Reschke julian.resc...@gmx.de: On 2011-05-26 22:54, Dennis Joachimsthaler wrote: Am 26.05.2011, 22:53 Uhr, schrieb Boris Zbarsky bzbar...@mit.edu: Probably no one, to a first approximation, but we were specifically talking about non-Windows systems.

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

2011-05-26 Thread Aryeh Gregor
On Thu, May 26, 2011 at 11:56 AM, Nicholas Zakas nza...@yahoo-inc.com wrote: I'm a little surprised that this conversation has swooped back around to performance and whether or not there's a valid use case here. In addition to standalone solutions like Steve's ControlJS and Kyle's LABjs, the

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

2011-05-26 Thread James Robinson
On Thu, May 26, 2011 at 3:49 PM, Aryeh Gregor simetrical+...@gmail.comwrote: On Thu, May 26, 2011 at 11:56 AM, Nicholas Zakas nza...@yahoo-inc.com wrote: I'm a little surprised that this conversation has swooped back around to performance and whether or not there's a valid use case here. In

Re: [whatwg] Request for feedback: supported elements for formatBlock

2011-05-26 Thread Ehsan Akhgari
On 11-05-26 4:40 PM, Aryeh Gregor wrote: I'm still skeptical that no web content depends on blockquote being supported by FormatBlock on WebKit. You might argue that they'll have to modify anyway due to IE not supporting it but most of editors do feature / browser detection and heavily rely on