Re: [whatwg] Proposed simplification to Microdata

2011-05-26 Thread Tab Atkins Jr.
On Thu, May 26, 2011 at 12:02 PM, Guha wrote: > We are trying to simplify statement of a fairly common thing that crops up > with microdata > > E.g., > > Consider the block: > 1) http://schema.org/Book”> >      The Catcher in the Rye - >     by J.D. Salinger >   > > Now, the site wants to use the

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

2011-05-26 Thread Ehsan Akhgari
On 11-05-26 12:27 PM, Aryeh Gregor wrote: I don't think any of this justifies adding blockquote, which is not supported by all browsers and whose *usual* use is to contain multiple blocks of content. It seems to me that "blockquote" here interferes in functionality with the indent and outdent

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 t

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

2011-05-26 Thread Michal Zalewski
> Browsers should just use the same behaviour when encountering the function > in a HTML attribute. Keep in mind that the mechanism *is* extremely imperfect. It only works for MIME types and extensions recognized by the browser (which is a small list). There's a large disconnect between this set,

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 wrote: > On Thu, May 26, 2011 at 11:56 AM, Nicholas Zakas > 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

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 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 Mozilla and > Chr

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

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

Re: [whatwg] "Content-Disposition" property for 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 : 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

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

2011-05-26 Thread Dennis Joachimsthaler
Am 26.05.2011, 22:53 Uhr, schrieb Boris Zbarsky : 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, yep... If browsers

Re: [whatwg] "Content-Disposition" property for 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? Pro

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

2011-05-26 Thread Dennis Joachimsthaler
Am 26.05.2011, 22:33 Uhr, schrieb 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 s

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 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 > blockquote, I'd expect

Re: [whatwg] "Content-Disposition" property for 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 the

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 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 e

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

2011-05-26 Thread Dennis Joachimsthaler
Am 26.05.2011, 21:08 Uhr, schrieb Boris Zbarsky : 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 extension might well m

Re: [whatwg] "Content-Disposition" property for 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

[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) http://schema.org/Book”> The Catcher in the Rye - by J.D. Salinger Now, the site wants to use the wikipedia (or freebase) entry for Salinger, just to be clear and

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

2011-05-26 Thread Dennis Joachimsthaler
Hi Boris, Am 26.05.2011, 20:15 Uhr, schrieb Boris Zbarsky : 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 is good though.

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

2011-05-26 Thread Boris Zbarsky
On 5/26/11 2:06 PM, Dennis Joachimsthaler wrote: At least in the case of Firefox for that particular case on Windows thefilename will be sanitized... So what does Firefox do in this case? I believe it forces the extension to match the MIME type; if the type text/plain the saved filename w

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

2011-05-26 Thread Dennis Joachimsthaler
Oh hey, I didn't realize this topic was discussed again one month ago. I originally even started this ;-). Note that somewhat counterintuitively, there would be some security concerns with markup-level content disposition controls (or any JS equivalent). For example, consider evil.com doing thi

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 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 what

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 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 a part of thei

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

2011-05-26 Thread Glenn Maynard
On Thu, May 26, 2011 at 11:56 AM, Nicholas Zakas 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. Stopping and reevaluating periodically is a good idea, when proposing added complexity to the platfor

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 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 behavior

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 9:27 AM, Aryeh Gregor wrote: > On Thu, May 26, 2011 at 1:56 AM, Ryosuke Niwa wrote: > > WebKit's FormatBlock basically supports all HTML5 elements that are > display: block by default. > > Well, not really. It doesn't support body, ol, or listing, for > instance. It does

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

2011-05-26 Thread Aryeh Gregor
On Thu, May 26, 2011 at 1:56 AM, Ryosuke Niwa wrote: > WebKit's FormatBlock basically supports all HTML5 elements that are display: > block by default. Well, not really. It doesn't support body, ol, or listing, for instance. It does support many more than any other browser does, and I don't th

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

2011-05-26 Thread Boris Zbarsky
On 5/26/11 11:56 AM, Nicholas Zakas wrote: Sorry for repetition, but we can already preload images and CSS and apply them to the page at an arbitrary point in time. Why wouldn't we want the same thing for JavaScript? I think the question is whether you want _more_ than that for JavaScript. F

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

2011-05-26 Thread Nicholas Zakas
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 Mozilla and Chrome teams were also trying to come up with solutions to enable pr

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

2011-05-26 Thread Stewart Brodie
Ian Hickson 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 do I

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; > > } > > > >

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

2011-05-26 Thread Boris Zbarsky
On 5/26/11 3:12 AM, James Robinson wrote: I think there's a valid use case for downloading a script and not evaluating it immediately. I think we all agree on that. The point I was getting at in IRC was that there is a lot of confusion about what parsing and executing mean in modern js engine

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

2011-05-26 Thread James Robinson
I think there's a valid use case for downloading a script and not evaluating it immediately. The point I was getting at in IRC was that there is a lot of confusion about what parsing and executing mean in modern js engines and I didn't see much careful measurement in the thread. - James On May 25,