Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2012-09-24 Thread Kinuko Yasuda
Thanks for the feedback. On Fri, Sep 14, 2012 at 6:58 AM, Ian Hickson i...@hixie.ch wrote: On Tue, 15 Nov 2011, Kinuko Yasuda wrote: Many sites have 'upload your files' feature, like for your photo images. HTML5 allows you to do this via input type=file multiple or drag-and-drop

Re: [whatwg] New URL Standard

2012-09-24 Thread Tobie Langel
On Mon, Sep 24, 2012 at 10:58 AM, Anne van Kesteren ann...@annevk.nl wrote: The kind of predictability we have for the HTML parser, I want to have for the URL parser as well. Yes, please!! --tobie

Re: [whatwg] New URL Standard

2012-09-24 Thread Anne van Kesteren
On Sat, Sep 22, 2012 at 9:10 AM, Alexandre Morgaut alexandre.morg...@4d.com wrote: Would the URLUtil interface replace the URL decomposition IDL attributes of the Location interface? -

Re: [whatwg] New URL Standard

2012-09-24 Thread Karl Dubost
Le 21 sept. 2012 à 17:16, Anne van Kesteren a écrit : I took a crack at defining URLs: http://url.spec.whatwg.org/ Very cool. On cite attributes, I'm using urn:isbn: blockquote cite=urn:isbn:2-7073-1038-7 pJ'aime la liberté. J'aime être responsable de mes actes. J'aime comprendre

Re: [whatwg] New URL Standard

2012-09-24 Thread Jukka K. Korpela
2012-09-24 12:47, Karl Dubost wrote: On cite attributes, I'm using urn:isbn: blockquote cite=urn:isbn:2-7073-1038-7 pJ'aime la liberté. J'aime être responsable de mes actes. J'aime comprendre ce que je fais… Et, cependant, je donne mon accord à ce marché bizarre./p

Re: [whatwg] New URL Standard

2012-09-24 Thread Alexandre Morgaut
On 24 sept. 2012, at 11:34, Anne van Kesteren wrote: Could the search property have a key/value mapping? ex: http://test.com?param1=value1 - var value1 = url.search.param1 search as window.location could still be usable as a string I have been thinking about introducing a .query attribute

Re: [whatwg] New URL Standard

2012-09-24 Thread Alexandre Morgaut
On 24 sept. 2012, at 14:08, Alexandre Morgaut wrote: sms:+15105550101?body=hello%20there { host: +15105550101, hostname: +15105550101, href: +15105550101?body=hello%20there, parameters: { body: hello there } pathname: ,

Re: [whatwg] New URL Standard

2012-09-24 Thread Karl Dubost
Le 24 sept. 2012 à 12:08, Jukka K. Korpela a écrit : It also means that the only immediately available source information for a quotation will be an ISBN in URL format. So, for example, working offline, you won't see even the title and the author. Would the quotation even satisfy the legal

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Rick Waldron
On Sun, Sep 23, 2012 at 11:25 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: On Sun, Sep 23, 2012 at 3:57 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 21 Sep 2012, Tab Atkins Jr. wrote: So, can we rename the 7-arg arcTo to ellipseTo? That seems to support your always [require] all the

Re: [whatwg] New URL Standard

2012-09-24 Thread Boris Zbarsky
On 9/24/12 4:58 AM, Anne van Kesteren wrote: Say you have a href=data:test/; the concern is what e.g. a.protocol and a.pathname would return here. For invalid URLs they would return : and respectively. If we treat this as a valid URL you would get data: and test. In Gecko I get http: and . If I

Re: [whatwg] New URL Standard

2012-09-24 Thread Tab Atkins Jr.
On Mon, Sep 24, 2012 at 2:34 AM, Anne van Kesteren ann...@annevk.nl wrote: I have been thinking about introducing a .query attribute that would return a special interface for this purpose, but what the right API should be seems somewhat tricky. Adam and Erik came up with a solution that

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Tab Atkins Jr.
On Mon, Sep 24, 2012 at 6:59 AM, Rick Waldron waldron.r...@gmail.com wrote: Has there been any discussion about moving newly emerging APIs to a single options object formal parameter? This discussion is in the context of the SVG path API, which is an attribute microsyntax. So, that's not

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Rick Waldron
On Mon, Sep 24, 2012 at 1:32 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: On Mon, Sep 24, 2012 at 6:59 AM, Rick Waldron waldron.r...@gmail.com wrote: Has there been any discussion about moving newly emerging APIs to a single options object formal parameter? This discussion is in the

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Ian Hickson
On Sun, 23 Sep 2012, Tab Atkins Jr. wrote: On Sun, Sep 23, 2012 at 3:57 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 21 Sep 2012, Tab Atkins Jr. wrote: So, can we rename the 7-arg arcTo to ellipseTo? That seems to support your always [require] all the arguments recommendation. ^_^

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-09-24 Thread Ian Hickson
On Mon, 27 Aug 2012, Charlie Reis wrote: Does this need to be done from window.open()? Yes. For example, Gmail uses window.open() for the links in emails, but would like the links to open in an unrelated context. Why does GMail need to use window.open()? Surely the right way to expose

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Tab Atkins Jr.
On Mon, Sep 24, 2012 at 11:51 AM, Ian Hickson i...@hixie.ch wrote: On Sun, 23 Sep 2012, Tab Atkins Jr. wrote: On Sun, Sep 23, 2012 at 3:57 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 21 Sep 2012, Tab Atkins Jr. wrote: So, can we rename the 7-arg arcTo to ellipseTo? That seems to support

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Jonas Sicking
On Mon, Sep 24, 2012 at 11:51 AM, Ian Hickson i...@hixie.ch wrote: On Sun, 23 Sep 2012, Tab Atkins Jr. wrote: On Sun, Sep 23, 2012 at 3:57 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 21 Sep 2012, Tab Atkins Jr. wrote: So, can we rename the 7-arg arcTo to ellipseTo? That seems to support

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Ian Hickson
On Mon, 24 Sep 2012, Jonas Sicking wrote: I'm not at all convinced that that's true. Sure, it is fewer number of functions to document and fewer number of functions for people to learn. But that obviously isn't the only metric that we care about since then we'd just cram all functionality

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Ian Hickson
On Mon, 24 Sep 2012, Tab Atkins Jr. wrote: Omitting two numbers, one of which is zero, is easily no more a win than the cost of having two different nearly-identical commands. Just consider C/c and S/s; is it really worth it? Yes, it is. ^_^ The authoring convenience of not having to

Re: [whatwg] New URL Standard

2012-09-24 Thread David Sheets
On Mon, Sep 24, 2012 at 2:34 AM, Anne van Kesteren ann...@annevk.nl wrote: On Sat, Sep 22, 2012 at 9:10 AM, Alexandre Morgaut alexandre.morg...@4d.com wrote: Shouldn't this document have references on some of the URL related RFCs: The plan is to obsolete the RFCs. But yes, I will add some

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Tab Atkins Jr.
On Mon, Sep 24, 2012 at 1:14 PM, Ian Hickson i...@hixie.ch wrote: On Mon, 24 Sep 2012, Tab Atkins Jr. wrote: Omitting two numbers, one of which is zero, is easily no more a win than the cost of having two different nearly-identical commands. Just consider C/c and S/s; is it really worth

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Ian Hickson
On Mon, 24 Sep 2012, Tab Atkins Jr. wrote: You are looking at the simplest possible use-case for A/a, nearly the only case that can be done without trig, where you're starting and stopping the arc at a quarter-turn. Try virtually anything more complex, like rotating the square 45deg.

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Dirk Schulze
On Sep 24, 2012, at 3:50 PM, Ian Hickson i...@hixie.ch wrote: On Mon, 24 Sep 2012, Tab Atkins Jr. wrote: You are looking at the simplest possible use-case for A/a, nearly the only case that can be done without trig, where you're starting and stopping the arc at a quarter-turn. Try

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Tab Atkins Jr.
On Mon, Sep 24, 2012 at 3:50 PM, Ian Hickson i...@hixie.ch wrote: On Mon, 24 Sep 2012, Tab Atkins Jr. wrote: You are looking at the simplest possible use-case for A/a, nearly the only case that can be done without trig, where you're starting and stopping the arc at a quarter-turn. Try

Re: [whatwg] New URL Standard

2012-09-24 Thread Glenn Maynard
On Mon, Sep 24, 2012 at 12:30 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: I suggest just making it a map from String-[String]. You probably want a little bit of magic - if the setter receives an array, replace the current value with it; anything else, stringify then wrap in an array and

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Ian Hickson
On Mon, 24 Sep 2012, Dirk Schulze wrote: Making the path syntax more complex than it needs to be seems not to be an option for me. It's definitely an option, assuming this is not a trivial statement, because it's no the only axis along which the syntax can be optimised, and it is not the

[whatwg] canvas and high-density displays

2012-09-24 Thread Ian Hickson
On Thu, 1 Dec 2011, John Knottenbelt wrote: How should the data url returned by toDataURL be sized in the case of a high device dpi resolution system? This is now specced, at least in theory. Please let me know if you still think this is underdefined. The test

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Dirk Schulze
On Sep 24, 2012, at 4:32 PM, Ian Hickson i...@hixie.ch wrote: On Mon, 24 Sep 2012, Dirk Schulze wrote: Making the path syntax more complex than it needs to be seems not to be an option for me. It's definitely an option, assuming this is not a trivial statement, because it's no the

Re: [whatwg] Rename the 7-arg arcTo() to ellipseTo()?

2012-09-24 Thread Tab Atkins Jr.
On Mon, Sep 24, 2012 at 4:32 PM, Ian Hickson i...@hixie.ch wrote: On Mon, 24 Sep 2012, Tab Atkins Jr. wrote: Returning to the original subject, we don't *want* optional arguments here. Well, the canvas API has optional arguments, so there's no way to be consistent with canvas with this

Re: [whatwg] New URL Standard

2012-09-24 Thread David Sheets
On Mon, Sep 24, 2012 at 4:07 PM, Glenn Maynard gl...@zewt.org wrote: On Mon, Sep 24, 2012 at 12:30 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: I suggest just making it a map from String-[String]. You probably want a little bit of magic - if the setter receives an array, replace the current

Re: [whatwg] New URL Standard

2012-09-24 Thread Ian Hickson
On Mon, 24 Sep 2012, David Sheets wrote: Is there an issue with defining WHATWG-URL syntax as a grammar extension to the URI syntax in RFC3986? In general, BNF isn't very useful for defining the parsing rules when you also need to handle non-conforming content in a correct manner. Really it

Re: [whatwg] canvas and high-density displays

2012-09-24 Thread Glenn Maynard
On Mon, Sep 24, 2012 at 6:40 PM, Ian Hickson i...@hixie.ch wrote: We could add an event that fires on ImageData (or even ArrayBuffer) that fires when the data is available. If we add it to ArrayBuffer it's something that could be used in other contexts, too. Is this something that people

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-09-24 Thread Mihai Parparita
On Mon, Sep 24, 2012 at 12:11 PM, Ian Hickson i...@hixie.ch wrote: Why does GMail need to use window.open()? Surely the right way to expose a link is to use a href=. What is forcing them to use window.open()? I can't speak for Gmail, but Google Reader uses window.open since it allows

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-09-24 Thread Boris Zbarsky
On 9/24/12 8:42 PM, Mihai Parparita wrote: On Mon, Sep 24, 2012 at 12:11 PM, Ian Hickson i...@hixie.ch wrote: Why does GMail need to use window.open()? Surely the right way to expose a link is to use a href=. What is forcing them to use window.open()? I can't speak for Gmail, but Google

Re: [whatwg] New URL Standard

2012-09-24 Thread David Sheets
On Mon, Sep 24, 2012 at 5:23 PM, Ian Hickson i...@hixie.ch wrote: On Mon, 24 Sep 2012, David Sheets wrote: Is there an issue with defining WHATWG-URL syntax as a grammar extension to the URI syntax in RFC3986? In general, BNF isn't very useful for defining the parsing rules when you also

Re: [whatwg] DOM Keyboard Event Level 3 questions about proposal

2012-09-24 Thread Ojan Vafai
The right mailing list for these questions is www-...@w3.org. On Sat, Sep 22, 2012 at 2:57 PM, Егор Николаев termi1...@gmail.com wrote: Hello. Right now I'm looking for a way to implement 'DOM keyboard event level 3' into my current project and also I'm developing polyfill for this API (

Re: [whatwg] New URL Standard

2012-09-24 Thread Ian Hickson
This is Anne's spec, so I'll let him give more canonical answers, but: On Mon, 24 Sep 2012, David Sheets wrote: Your conforming WHATWG-URL syntax will have production rule alphabets which are supersets of the alphabets in RFC3986. Not necessarily, but that's certainly possible. Personally

[whatwg] Spec for location object needs to make some properties unforgeable; need supporting WebIDL changes

2012-09-24 Thread Boris Zbarsky
Turns out, some things care about at least the .href and .toString of Location objects for security-check purposes. So they need to be unforgeable. But of course WebIDL doesn't provide a way to make anything other than readonly attributes unforgeable. It seems like it needs to. In terms