Re: Making selectors first-class citizens

2013-09-22 Thread Garrett Smith
On 9/12/13, Brian Kardell bkard...@gmail.com wrote: On Sep 12, 2013 2:16 AM, Garrett Smith dhtmlkitc...@gmail.com wrote: FWD'ing to put my reply back on list (and to others)... On Sep 11, 2013 6:35 AM, Anne van Kesteren ann...@annevk.nl wrote: As far as I can tell Element.prototype.matches

Making selectors first-class citizens

2013-09-12 Thread Garrett Smith
FWD'ing to put my reply back on list (and to others)... On Sep 11, 2013 6:35 AM, Anne van Kesteren ann...@annevk.nl wrote: As far as I can tell Element.prototype.matches() is not deployed yet. Should we instead make selectors first-class citizens, just like regular expressions, and have var sel

Re: Element.create(): a proposal for more convenient element creation

2011-08-08 Thread Garrett Smith
On 8/6/11, Charles Pritchard ch...@jumis.com wrote: [...] I've stated in prior threads, that unless the word is aria-* or data-*, properties are set on the element. I see. But that's inherently inconsistent and mostly misleading (attr alludes to attribute not usually property except when it's

Re: Element.create(): a proposal for more convenient element creation

2011-08-06 Thread Garrett Smith
On 8/6/11, Charles Pritchard ch...@jumis.com wrote: On 8/6/2011 9:05 AM, Dominic Cooney wrote: Element.create looks neat. Three thoughts: ... Let me briefly reiterate that I think we want *both* Element.create and constructors; they have complementary uses. I agree. And for no reason, it

Re: Element.create(): a proposal for more convenient element creation

2011-08-05 Thread Garrett Smith
On 8/4/11, Garrett Smith dhtmlkitc...@gmail.com wrote: [...] ser-generated function function. The scope of handler attributes is explained in HTML 5, though incompletely: http://dev.w3.org/html5/spec/Overview.html#event-handler-content-attributes That's incomplete. Correction

Re: Element.create(): a proposal for more convenient element creation

2011-08-04 Thread Garrett Smith
On 8/4/11, Jonas Sicking jo...@sicking.cc wrote: On Wed, Aug 3, 2011 at 8:10 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Aug 3, 2011 at 12:34 AM, Anne van Kesteren ann...@opera.com wrote: On Tue, 02 Aug 2011 20:31:04 +0200, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Aug 2,

Re: Element.create(): a proposal for more convenient element creation

2011-08-02 Thread Garrett Smith
On 8/2/11, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Aug 2, 2011 at 9:48 AM, Aryeh Gregor a...@aryeh.name wrote: On Mon, Aug 1, 2011 at 9:33 PM, Maciej Stachowiak m...@apple.com wrote: In an IRC discussion with Ian Hickson and Tab Atkins, we can up with the following idea for

Re: Global variables and id lookup for elements

2011-07-20 Thread Garrett Smith
On 7/19/11, Cameron McCormack c...@mcc.id.au wrote: Ian Hickson: Is this still something I should do, or did this get resolved using another solution? http://www.w3.org/Bugs/Public/show_bug.cgi?id=8241 The proposed solution I made in the bug was to have the [[Get]] etc. internal methods of

Re: Overview of behavior attachment as a general problem on the Web

2011-07-08 Thread Garrett Smith
On 7/8/11, Dimitri Glazkov dglaz...@chromium.org wrote: As a background for the wider Component Model discussion, I put together an overview of the general behavior attachment problem on the Web: http://wiki.whatwg.org/wiki/Behavior_Attachment Please take a look. Comments, additions, and

Re: Component Model: Landing Experimental Shadow DOM API in WebKit

2011-06-30 Thread Garrett Smith
On 6/29/11, Dimitri Glazkov dglaz...@chromium.org wrote: Hi Folks! With use cases (http://wiki.whatwg.org/wiki/Component_Model_Use_Cases) firmed up, and isolation (http://lists.w3.org/Archives/Public/public-webapps/2011JanMar/0900.html), inheritance

Re: Testing Progress Events and CR

2011-06-23 Thread Garrett Smith
On 6/23/11, Arthur Barstow art.bars...@nokia.com wrote: On Jun/23/2011 6:45 AM, ext Anne van Kesteren wrote: On Wed, 22 Jun 2011 17:36:07 +0200, Anne van Kesteren ann...@opera.com wrote: I just checked in the proposal https://bitbucket.org/ms2ger/dom-core/changeset/b9bb17789db9 into DOM Core

Re: Testing Requirements

2011-06-04 Thread Garrett Smith
On 6/3/11, Philippe Le Hegaret p...@w3.org wrote: You now have: One more list to unsubscribe from. http://www.w3c-test.org:81/ http://www.w3c-test.org:82/ http://www.w3c-test.org:83/ | function assert_readonly(object, property_name, description) | { | var initial_value =

Re: Model-driven Views

2011-05-06 Thread Garrett Smith
On 5/6/11, Rafael Weinstein rafa...@google.com wrote: Thanks everyone for your consideration. It sounds like the group wants to proceed by looking first at missing primitives. Missing primitives? What do you mean? -- Garrett

Re: Model-driven Views

2011-05-02 Thread Garrett Smith
On 5/2/11, Rafael Weinstein rafa...@google.com wrote: Apologies. I feel like I have failed to properly contextualize this issue. Let me back up and see if I can't help create a different frame of reference. This email is already too long so I've avoided examples. Please let me know what isn't

Re: Global variables and id lookup for elements

2011-04-28 Thread Garrett Smith
On 4/28/11, Boris Zbarsky bzbar...@mit.edu wrote: For what it's worth, the way Gecko implements this is by inserting an object into the prototype chain of the Window that handles these property gets. This means that |var| (which defines a prop on the Window itself) will always shadow the

Re: Model-driven Views

2011-04-28 Thread Garrett Smith
On 4/28/11, Olli Pettay olli.pet...@helsinki.fi wrote: On 04/28/2011 04:46 AM, Rafael Weinstein wrote: Would be good to know what are the use cases you had in mind. I'm never sure if I'm using the term use case correctly =-). Our primary motivator is the needs of web applications, And

Re: CfC: WebApps testing process; deadline April 20

2011-04-19 Thread Garrett Smith
On 4/19/11, Arthur Barstow art.bars...@nokia.com wrote: On Apr/18/2011 12:29 PM, ext Aryeh Gregor wrote: On Sun, Apr 17, 2011 at 9:38 PM, Garrett Smithdhtmlkitc...@gmail.com wrote: The superfluous, badly worded maladvice remains: Within each test one may have a number of asserts. Awkward

Re: CfC: WebApps testing process; deadline April 20

2011-04-18 Thread Garrett Smith
On 4/18/11, Aryeh Gregor simetrical+...@gmail.com wrote: On Sun, Apr 17, 2011 at 9:38 PM, Garrett Smith dhtmlkitc...@gmail.com wrote: The superfluous, badly worded maladvice remains: Within each test one may have a number of asserts. Awkward wording to explicitly mention that such bad

Re: RfC: WebApps Testing Process

2011-04-06 Thread Garrett Smith
On 4/6/11, Arthur Barstow art.bars...@nokia.com wrote: On Apr/3/2011 6:31 PM, ext Aryeh Gregor wrote: On Fri, Apr 1, 2011 at 1:26 PM, Arthur Barstowart.bars...@nokia.com wrote: [...] I think all of the substantive comments to date only affect the proposed Approval page. I'll notify the list

Re: RfC: WebApps Testing Process

2011-04-06 Thread Garrett Smith
On 4/6/11, Arthur Barstow art.bars...@nokia.com wrote: On Apr/6/2011 11:22 AM, ext Garrett Smith wrote: On 4/6/11, Arthur Barstowart.bars...@nokia.com wrote: On Apr/3/2011 6:31 PM, ext Aryeh Gregor wrote: On Fri, Apr 1, 2011 at 1:26 PM, Arthur Barstowart.bars...@nokia.com wrote: [...] I

Re: RfC: WebApps Testing Process

2011-04-05 Thread Garrett Smith
On 4/4/11, Garrett Smith dhtmlkitc...@gmail.com wrote: On 4/4/11, James Graham jgra...@opera.com wrote: (setting followup to public-testinfra) On 04/04/2011 01:45 AM, Garrett Smith wrote: I'd rather see the `format_value` function broken up. It makes non-standard expectations of host

Re: RfC: WebApps Testing Process

2011-04-03 Thread Garrett Smith
On 3/31/11, Arthur Barstow art.bars...@nokia.com wrote: Hi All, During the 2011 TPAC meeting, I agreed to an action (action-611) to work with Chaals and WebApps' Team Contacts to define the group's testing processes. To that end, I created the following documents: 1.

Re: [DOMCore] fire and dispatch

2011-03-01 Thread Garrett Smith
On 2/28/11, Anne van Kesteren ann...@opera.com wrote: On Fri, 25 Feb 2011 18:47:54 +0100, Garrett Smith dhtmlkitc...@gmail.com wrote: Your example is simple. But some common cases of synth events are complicated. UI Events aren't so bad but MouseEvents and especially TouchEvents are a lot

Re: publish a new Working Draft of DOM Core; comment deadline March 2

2011-03-01 Thread Garrett Smith
On 3/1/11, Anne van Kesteren ann...@opera.com wrote: On Mon, 28 Feb 2011 18:49:48 +0100, Garrett Smith dhtmlkitc...@gmail.com wrote: | DOM Core defines the event and document model the Web platform uses. That says that DOM Core defines two different things: events and DOM. Some things might

Re: publish a new Working Draft of DOM Core; comment deadline March 2

2011-02-28 Thread Garrett Smith
On 2/28/11, Adrian Bateman adria...@microsoft.com wrote: On Friday, February 25, 2011 1:54 AM, Anne van Kesteren wrote: The idea is to provide a better definition of the events model at a more appropriate location. I do not think DOM Level 3 Events is the right way forward, but I am

Re: [XHR2] Readability of Async/Sync in xhr.open

2011-02-27 Thread Garrett Smith
On 2/27/11, Anne van Kesteren ann...@opera.com wrote: On Sun, 27 Feb 2011 21:51:12 +0100, Joseph Pecoraro pecor...@apple.com wrote: This gets especially hairy when the user + password parameters are needed, and there is a magic boolean in the middle:

Re: [DOMCore] fire and dispatch

2011-02-25 Thread Garrett Smith
On 2/25/11, Anne van Kesteren ann...@opera.com wrote: On Fri, 25 Feb 2011 04:05:44 +0100, Garrett Smith dhtmlkitc...@gmail.com wrote: OK. Why not expose a generic version of `fire` to the scripting environment? I do not know of any research (or have done any myself) as to how often

Re: [DOMCore] fire and dispatch

2011-02-25 Thread Garrett Smith
On 2/25/11, João Eiras joao.ei...@gmail.com wrote: On , Garrett Smith dhtmlkitc...@gmail.com wrote: On 2/25/11, Anne van Kesteren ann...@opera.com wrote: On Fri, 25 Feb 2011 04:05:44 +0100, Garrett Smith dhtmlkitc...@gmail.com wrote: [...] Most cases for synth events are for testing

Re: [DOMCore] fire and dispatch

2011-02-24 Thread Garrett Smith
On 2/24/11, Anne van Kesteren ann...@opera.com wrote: For DOM Core Ms2ger and I (and some others on IRC) decided to introduce a subtle distinction between fire and dispatch. Dispatching is actually going through the list of event targets with an initialized event whereas firing is initializing

Re: [DOMCore] Element.childElementCount

2011-02-20 Thread Garrett Smith
On 2/20/11, Anne van Kesteren ann...@opera.com wrote: I believe that http://dev.w3.org/2006/webapi/DOM4Core/DOM4Core.html is the latest definition of ElementTraversal around where it moves the various attributes to Element. However, childElementCount is not included. Is it the plan to nuke

Re: DOM collections index out of bounds and JavaScript.

2010-11-02 Thread Garrett Smith
On 10/31/10, Cameron McCormack c...@mcc.id.au wrote: Garrett Smith: [...] The difference here is that the object that was passed in uses normal ES syntax; it's pass by value (value of reference) not referenced by the object. The effect is what you wanted, I think, and that is that 1

Re: DOM collections index out of bounds and JavaScript.

2010-10-29 Thread Garrett Smith
On 10/29/10, Cameron McCormack c...@mcc.id.au wrote: Cameron McCormack: I don’t know that sequence is appropriate for this. They are meant to be for pass-by-value lists. Anne van Kesteren: I'm not sure I follow this. Could you elaborate a bit? As currently defined, sequence types are

Re: DOM collections index out of bounds and JavaScript.

2010-10-26 Thread Garrett Smith
On 10/19/10, Garrett Smith dhtmlkitc...@gmail.com wrote: On 10/19/10, Scott Shattuck idea...@mindspring.com wrote: [...] I don't generally write code that accesses an indexed property of a collection unless I know that the element at that index exists. I recall now a piece of code -- jQuery

Re: DOM collections index out of bounds and JavaScript.

2010-10-26 Thread Garrett Smith
On 10/26/10, Cameron McCormack c...@mcc.id.au wrote: Anne van Kesteren: Yeah, it would be nice if sequence mapped to that so that NodeList could be defined as a sequence instead, same for StyleSheetList, etc. And then Web IDL would take care of all the details rather than each specification.

Re: ISSUE-2 (OnFoo Attributes): Event Handler Attributes (onfoo Attributes) and Add/Remove Event Listener [DOM3 Events]

2010-10-20 Thread Garrett Smith
No browsers do that. I'd say leave it as is. I don't think any browser exposes these currently via addEventListener/ removeEventListener, but they do participate in the event dispatch order. Another way to look at it is: they are added, but the function created from the attribute is not

Re: DOM collections index out of bounds and JavaScript.

2010-10-19 Thread Garrett Smith
On 10/18/10, Boris Zbarsky bzbar...@mit.edu wrote: On 10/18/10 9:34 PM, Garrett Smith wrote: \.item\(\d+\s*\)\s*===\s*null lang:javascript Doesn't catch cases when the argument to item is not a numeric constant, most simply. Or a reference like `i`, `foo.bar`, `f[d]`, `f[ d ]` \.item

Re: DOM collections index out of bounds and JavaScript.

2010-10-19 Thread Garrett Smith
On 10/19/10, Anne van Kesteren ann...@opera.com wrote: On Tue, 19 Oct 2010 03:11:25 +0200, Cameron McCormack c...@mcc.id.au wrote: Does it particularly matter that collection.item(999) returns null while collection['999'] evaluates to undefined? To me, it makes sense enough. Functions and

Re: DOM collections index out of bounds and JavaScript.

2010-10-19 Thread Garrett Smith
On 10/19/10, Scott Shattuck idea...@mindspring.com wrote: Seems to me that when you access a slot that in some sense doesn't exist it should return undefined, not null. There are plenty of semantic cases (is this attribute defined but currently unset, or not defined at all) where the

Re: DOM collections index out of bounds and JavaScript.

2010-10-18 Thread Garrett Smith
On 10/18/10, Boris Zbarsky bzbar...@mit.edu wrote: On 10/18/10 8:51 PM, Erik Arvidsson wrote: When DOM was first spec'ed the collection interfaces all had some kind of item method. These methods sometimes return like null[1] and sometimes other values such as an empty string [2]. The

Re: ISSUE-145 (event handler ordering): Ordering event handlers registered by different means [DOM3 Events]

2010-10-06 Thread Garrett Smith
On 10/5/10, Web Applications Working Group Issue Tracker sysbot+trac...@w3.org wrote: ISSUE-145 (event handler ordering): Ordering event handlers registered by different means [DOM3 Events] http://www.w3.org/2008/webapps/track/issues/145 Raised by: Doug Schepers On product: DOM3 Events

Re: A URL API

2010-09-21 Thread Garrett Smith
On 9/21/10, Ojan Vafai o...@chromium.org wrote: How about setParameter(name, value...) that takes var_args number of values? Alternately, it could take either a DOMString or an ArrayDOMString for the value. I prefer the var_args. Why? A user-defined fallback will be necessary for a while.

Re: A URL API

2010-09-20 Thread Garrett Smith
On 9/20/10, Julian Reschke julian.resc...@gmx.de wrote: On 20.09.2010 09:22, Garrett Smith wrote: ... I see setParameterValues there. Useful to build URLs for XHR. But OTOH -- Ajax that is using a lot of parameters, might be better using a form. Usually Ajax requests are simple requests

Re: A URL API

2010-09-17 Thread Garrett Smith
with the XMLHttpRequest use cases because XMLHttpRequest is a popular API for use in workers. On Fri, Sep 17, 2010 at 11:57 AM, Garrett Smith dhtmlkitc...@gmail.com wrote: Where is Dictionary defined? It might not be defined yet. You don't know if it is defined or not? Makes no sense at all. What

Re: A URL API

2010-09-17 Thread Garrett Smith
On 9/17/10, Tab Atkins Jr. jackalm...@gmail.com wrote: On Fri, Sep 17, 2010 at 5:43 PM, Adam Barth w...@adambarth.com wrote: I've removed the searchParameters attribute from the URL interface for the time being. We can consider adding it back at a later time. ;_; Just today my cubemate

Re: A URL API

2010-09-17 Thread Garrett Smith
On 9/17/10, Devdatta Akhawe dev.akh...@gmail.com wrote: hi You mean you didn't mention that I drafted a much better one over two years ago? Garrett : could you send a link to your ES4 draft/proposal ? My simple google skills couldn't find it. I thought I linked to that earlier but don't

Re: Touch and gestures events

2009-10-16 Thread Garrett Smith
On Fri, Oct 16, 2009 at 10:46 AM, kari.hiit...@nokia.com wrote: On 10/15/09 21:04, ext João Eiras jo...@opera.com wrote: Hi, I suppose that the interest Olli mentioned was ours (Nokia). Unfortunately there was a long delay before we were able to participate the discussion and release

Re: Touch and gestures events

2009-10-13 Thread Garrett Smith
On Wed, Jun 17, 2009 at 1:22 PM, Olli Pettay olli.pet...@helsinki.fi wrote: Hi all, there seems to be some interest to standardize touch and gesture events. Please provide links to where interest was indicated. Especially valuable are where mobile companies have provided information about the

Re: File API proposal - marrying two alternatives

2009-10-06 Thread Garrett Smith
On Tue, Oct 6, 2009 at 7:32 PM, Nikunj R. Mehta nikunj.me...@oracle.com wrote: I figure I could rewrite Jonas' proposal to make it more palatable (at least to me) and satisfy the use cases and priorities I mentioned in [1]. Here's his proposal to combine with File and FileData from the current

Re: File API proposal - marrying two alternatives

2009-10-06 Thread Garrett Smith
On Tue, Oct 6, 2009 at 10:07 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Oct 6, 2009 at 9:58 PM, Garrett Smith dhtmlkitc...@gmail.com wrote: On Tue, Oct 6, 2009 at 7:32 PM, Nikunj R. Mehta nikunj.me...@oracle.com wrote: I figure I could rewrite Jonas' proposal to make it more palatable

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-28 Thread Garrett Smith
On Mon, Sep 28, 2009 at 2:31 AM, Lachlan Hunt lachlan.h...@lachy.id.au wrote: Garrett Smith wrote: On Thu, Sep 24, 2009 at 1:28 AM, Lachlan Huntlachlan.h...@lachy.id.au  wrote: And overload the querySelector() and querySelectorAll() methods to also accept a Selector object as the selector

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Garrett Smith
On Thu, Sep 24, 2009 at 12:02 AM, Mike Wilson mike...@hotmail.com wrote: Yes, the base for event delegation is certainly something like that. I just wanted to make clear that the main reason for adding this functionality (IMO) is event delegation. I'll let event delegation library creators

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Garrett Smith
On Thu, Sep 24, 2009 at 6:06 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 9/24/09 6:29 AM, Sean Hogan wrote: I would be surprised if an implementation didn't create an internal lookup table keyed off the selector text. Gecko doesn't.  Webkit doesn't. I just checked really quickly, and on

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Garrett Smith
On Thu, Sep 24, 2009 at 11:38 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 9/24/09 2:17 PM, Garrett Smith wrote: On Thu, Sep 24, 2009 at 6:06 AM, Boris Zbarskybzbar...@mit.edu  wrote: Gecko doesn't.  Webkit doesn't. I just checked really quickly, and on my machine (a year-plus old laptop

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-23 Thread Garrett Smith
On Wed, Sep 23, 2009 at 4:51 AM, Lachlan Hunt lachlan.h...@lachy.id.au wrote: Hi,  I'm planning to look at beginning work on Selectors API v2 soon to add a number of requested features that didn't make it into the first version.  This e-mail is a summary of what is being considered, and is

Progress Events - Credits Edits

2009-09-18 Thread Garrett Smith
In looking at the credits, I noticed all of: Bjoern Hoehrmann, Björn Hoehrmann, Björn Höhrmann, Bjoern H�hrmann I am not sure if there are two similar BH, as Björn and Bjoern. Entities for the characters should be used. I also see my name on there, though misspelled. Garrett

Re: [WebIDL] Feedback on the August 30 Editor's draft

2009-09-01 Thread Garrett Smith
On Mon, Aug 31, 2009 at 10:31 PM, Jonas Sickingjo...@sicking.cc wrote: On Tue, Sep 1, 2009 at 2:19 AM, Garrett Smithdhtmlkitc...@gmail.com wrote: On Mon, Aug 31, 2009 at 10:07 PM, Travis Leitheadtra...@microsoft.com wrote: Cameron et al., [snip] behavior available in three of the four

Re: File API to separate reading from files

2009-08-31 Thread Garrett Smith
On Wed, Aug 19, 2009 at 11:47 AM, Nikunj R. Mehtanikunj.me...@oracle.com wrote: Here's an alternative, more easily extensible, proposal for reading files. It provides applications a way to read small amounts of data at a time. It also allows applications to concurrently read the same file. I

Re: [WebIDL] Feedback on the August 30 Editor's draft

2009-08-31 Thread Garrett Smith
On Mon, Aug 31, 2009 at 10:07 PM, Travis Leitheadtra...@microsoft.com wrote: Cameron et al., I have a couple pieces of feedback on this draft. Let me start by saying that this is a wonderful spec—much needed by the working group, and much appreciated by the IE team in relation to the

Re: Alternative File API

2009-08-18 Thread Garrett Smith
On Tue, Aug 18, 2009 at 11:04 AM, Arun Ranganathana...@mozilla.com wrote: Aaron Boodman wrote: On Mon, Aug 17, 2009 at 2:45 AM, Olli Pettayolli.pet...@helsinki.fi wrote: On 8/17/09 12:33 AM, Michael Nordman wrote: Strictly speaking, I think the seperate 'Reader' class makes for a more

Re: Alternative File API

2009-08-17 Thread Garrett Smith
(posting order moved to the bottom). On Sun, Aug 16, 2009 at 2:33 PM, Michael Nordmanmicha...@google.com wrote: On Sat, Aug 15, 2009 at 9:19 AM, Garrett Smith dhtmlkitc...@gmail.com wrote: On Tue, Aug 11, 2009 at 7:20 PM, Jonas Sickingjo...@sicking.cc wrote: Here is an alternative proposal

Re: Alternative File API

2009-08-15 Thread Garrett Smith
On Tue, Aug 11, 2009 at 7:20 PM, Jonas Sickingjo...@sicking.cc wrote: Here is an alternative proposal for an API for reading files: [snip proposal] As stated, I'm not convinced that this is a better solution than what the spec currently does. The only advantage I can see is that it

Re: [File API] events vs callbacks (was: Re: New FileAPI Draft | was Re: FileAPI feedback)

2009-08-14 Thread Garrett Smith
On Mon, Aug 10, 2009 at 6:48 PM, Jonas Sickingjo...@sicking.cc wrote: On Sat, Aug 8, 2009 at 9:37 AM, Garrett Smithdhtmlkitc...@gmail.com wrote: On Thu, Aug 6, 2009 at 11:31 AM, Jonas Sickingjo...@sicking.cc wrote: On Wed, Aug 5, 2009 at 4:26 AM, Anne van Kesterenann...@opera.com wrote: On

Re: please fix status of File Upload editor's draft

2009-08-14 Thread Garrett Smith
On Wed, Aug 12, 2009 at 4:35 PM, Arun Ranganathana...@mozilla.com wrote: Garrett Smith wrote: Good to get more notice on the API, but saying things like Arun is a great guy in that same entry indicates impartiality. He's a reasonably good guy, though :-) And what does that say about

Re: FileAPI Feedback

2009-08-14 Thread Garrett Smith
On Wed, Aug 12, 2009 at 6:52 AM, Arun Ranganathana...@mozilla.com wrote: Garrett Smith wrote: In glancing at some of the methods in FileAPI, I noticed some coding errors. The status code and a getData method could be designed as properties of one object. Replace the callback's parameter

Re: [File API] events vs callbacks (was: Re: New FileAPI Draft | was Re: FileAPI feedback)

2009-08-14 Thread Garrett Smith
On Fri, Aug 14, 2009 at 3:49 PM, Jonas Sickingjo...@sicking.cc wrote: On Fri, Aug 14, 2009 at 11:09 AM, Garrett Smithdhtmlkitc...@gmail.com wrote: On Mon, Aug 10, 2009 at 6:48 PM, Jonas Sickingjo...@sicking.cc wrote: On Sat, Aug 8, 2009 at 9:37 AM, Garrett Smithdhtmlkitc...@gmail.com wrote:

Re: please fix status of File Upload editor's draft

2009-08-12 Thread Garrett Smith
On Wed, Aug 12, 2009 at 1:55 PM, Arun Ranganathana...@mozilla.com wrote: Dan Connolly wrote: Looks like the word is getting out about this work; there's a pretty favorable article on ajaxian. http://ajaxian.com/archives/w3c-publish-first-working-draft-of-file-api But it's a little

Re: [File API] events vs callbacks

2009-08-11 Thread Garrett Smith
On Tue, Aug 11, 2009 at 2:25 PM, Olli Pettayolli.pet...@helsinki.fi wrote: On 8/11/09 11:57 PM, Jonas Sicking wrote: My concern isn't that there are ways of using it correctly, my concern is that it's very easy to use incorrectly with bugs as a result. How? Especially if we prevent more than

Re: [File API] events vs callbacks (was: Re: New FileAPI Draft | was Re: FileAPI feedback)

2009-08-08 Thread Garrett Smith
On Thu, Aug 6, 2009 at 11:31 AM, Jonas Sickingjo...@sicking.cc wrote: On Wed, Aug 5, 2009 at 4:26 AM, Anne van Kesterenann...@opera.com wrote: On Wed, 05 Aug 2009 10:04:28 +0200, Arun Ranganathan a...@mozilla.com wrote: In the case of file read APIs, simply getting the data asynchronously is

FileAPI Feedback

2009-08-08 Thread Garrett Smith
In glancing at some of the methods in FileAPI, I noticed some coding errors. It seems you've made an assignment in an if statement and assigned the result to window.status. I've annotated these with comment (GS). First, an overview explanation:

Re: Web Storage how to check for support?

2009-08-06 Thread Garrett Smith
2009/8/5 Darin Adler da...@apple.com: On Aug 5, 2009, at 9:42 PM, Jonas Sicking wrote: 2009/8/1 João Eiras jo...@opera.com: How can one in a script check for UA support? else if(localStorage){} does not work for Opera**. This obviously does not work because you need to prefix

Re: [PrototypeRoot]

2009-08-06 Thread Garrett Smith
On Mon, Jun 22, 2009 at 4:49 PM, Ian Hicksoni...@hixie.ch wrote: On Sun, 21 Jun 2009, Garrett Smith wrote: On Sat, Jun 20, 2009 at 12:43 AM, Ian Hicksoni...@hixie.ch wrote: On Sat, 20 Jun 2009, Garrett Smith wrote: I still want to know: Why would a program want to know the object's

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Garrett Smith
On Wed, Aug 5, 2009 at 1:04 AM, Arun Ranganathana...@mozilla.com wrote: Garrett Smith wrote: Please show the subsequent use cases you've studied and please do publish your studies. What I meant by use cases was this exchange: http://lists.w3.org/Archives/Public/public-webapps/2009JulSep

Re: File API Feedback

2009-07-22 Thread Garrett Smith
On Wed, Jul 8, 2009 at 5:05 PM, Jonas Sickingjo...@sicking.cc wrote: On Wed, Jul 8, 2009 at 2:26 PM, Garrett Smithdhtmlkitc...@gmail.com wrote: On Mon, Jul 6, 2009 at 1:38 PM, Jonas Sickingjo...@sicking.cc wrote: On Wed, Jul 1, 2009 at 9:01 PM, Garrett Smithdhtmlkitc...@gmail.com wrote: On

Re: Input events, checkboxes and radio buttons

2009-07-14 Thread Garrett Smith
On Sat, Jun 20, 2009 at 3:43 AM, Anne van Kesterenann...@opera.com wrote: On Sat, 20 Jun 2009 12:35:16 +0200, Anne van Kesteren ann...@opera.com wrote: The input event does not apply to radio/checkbox. (This is stated in the radio/checkbox sectons.) Probably a carry-over from WF 2.0, which

Re: File API Feedback

2009-07-08 Thread Garrett Smith
On Mon, Jul 6, 2009 at 1:38 PM, Jonas Sickingjo...@sicking.cc wrote: On Wed, Jul 1, 2009 at 9:01 PM, Garrett Smithdhtmlkitc...@gmail.com wrote: On Tue, Jun 30, 2009 at 7:36 PM, Jonas Sickingjo...@sicking.cc wrote: On Tue, Jun 30, 2009 at 6:13 PM, Garrett Smithdhtmlkitc...@gmail.com wrote: On

Re: File API Feedback

2009-06-30 Thread Garrett Smith
On Mon, Jun 29, 2009 at 11:14 AM, Arun Ranganathana...@mozilla.com wrote: Garrett, Thanks for taking the time to review this. Garrett Smith wrote: http://dev.w3.org/2006/webapi/FileUpload/publish/FileAPI.xhtml Why does the URI contain the date 2006? It certainly is confusing

Re: File API Feedback

2009-06-30 Thread Garrett Smith
On Tue, Jun 30, 2009 at 1:38 AM, Jonas Sickingjo...@sicking.cc wrote: On Mon, Jun 29, 2009 at 11:52 PM, Garrett Smithdhtmlkitc...@gmail.com wrote: Progress-type Events are useful because the API is asynchronous. What if reading the file times out? If an entire directory is uploaded, as in the

Re: File API Feedback

2009-06-27 Thread Garrett Smith
On Thu, Jun 18, 2009 at 6:13 PM, Arun Ranganathana...@mozilla.com wrote: Boris Zbarsky wrote: Ian Hickson wrote: Local display of images before uploading them requires being able to take a File object and poke it into parts of the platform that currently only take URLs. I suggest that the

Re: [PrototypeRoot]

2009-06-21 Thread Garrett Smith
On Sat, Jun 20, 2009 at 12:43 AM, Ian Hicksoni...@hixie.ch wrote: On Sat, 20 Jun 2009, Garrett Smith wrote: I still want to know: Why would a program want to know the object's [[Class]]? It shouldn't, but [[Class]]es are exposed by ECMAScript objects in their toString() method and thus

Re: [PrototypeRoot]

2009-06-20 Thread Garrett Smith
On 6/20/09, Cameron McCormack c...@mcc.id.au wrote: Ian Hickson: I don't really mind exactly what the solution is; my only concern here would be that I'd be throwing [PrototypeRoot] around a lot. Acknowledged. If you can propose a way of defining this without needing to use [PrototypeRoot]

Re: [webidl] DOMString

2009-04-22 Thread Garrett Smith
On Tue, Apr 21, 2009 at 8:30 PM, Cameron McCormack c...@mcc.id.au wrote: Cameron McCormack: Seems reasonable to state that. I’ve added a note to do that when I get some time to allocate to editing Web IDL again. Oliver Hunt: I actually thought about this some more, and realised i'm not

Re: [PrototypeRoot]

2009-03-08 Thread Garrett Smith
On Sat, Mar 7, 2009 at 4:03 PM, Ian Hickson i...@hixie.ch wrote: On Sat, 7 Mar 2009, Cameron McCormack wrote: Done:   The value of the internal [[Class]] property of a host object is   determined as follows:     * If the host object implements a single interface, then the value       of

Re: DOM3 Events call today/tonight?

2009-02-25 Thread Garrett Smith
On Wed, Feb 25, 2009 at 8:27 AM, Charles McCathieNevile cha...@opera.com wrote: Hi folks, unfortunately I have not been able to catch up with Doug (a combination of both of us travelling and then I had a minor accident that put me out of commission for a while), so as far as I know we have no

Re: DOM3 Events call today/tonight?

2009-02-25 Thread Garrett Smith
On Wed, Feb 25, 2009 at 10:16 AM, Olli Pettay olli.pet...@helsinki.fi wrote: On 2/25/09 7:46 PM, Garrett Smith wrote: On Wed, Feb 25, 2009 at 8:27 AM, Charles McCathieNevile cha...@opera.com  wrote: Hi folks, unfortunately I have not been able to catch up with Doug (a combination of both

Re: New Progress draft (1.25)...

2008-10-31 Thread Garrett Smith
On Fri, Oct 31, 2008 at 8:05 AM, Charles McCathieNevile [EMAIL PROTECTED] wrote: On Sat, 25 Oct 2008 09:08:56 +0200, Jonas Sicking [EMAIL PROTECTED] wrote: Garrett Smith wrote: On Fri, Oct 24, 2008 at 5:51 AM, Jonas Sicking [EMAIL PROTECTED] wrote: Garrett Smith wrote: I agree. Not sure

Re: New Progress draft (1.25)...

2008-10-24 Thread Garrett Smith
On Fri, Oct 24, 2008 at 5:51 AM, Jonas Sicking [EMAIL PROTECTED] wrote: Garrett Smith wrote: I agree. Not sure if that is what you want to do before or after getting the load/error/abort event though? I should mention that I'm not particularly married to having things one way or another

Re: New Progress draft (1.25)...

2008-10-23 Thread Garrett Smith
On Thu, Oct 23, 2008 at 7:01 AM, Anne van Kesteren [EMAIL PROTECTED] wrote: On Thu, 23 Oct 2008 15:38:45 +0200, Jonas Sicking [EMAIL PROTECTED] wrote: I do like the symmetry in the current proposal where loadstart is the first thing that fires, and loadend is the last thing. Seems very

Re: New Progress draft (1.25)...

2008-10-23 Thread Garrett Smith
On Thu, Oct 23, 2008 at 6:38 AM, Jonas Sicking [EMAIL PROTECTED] wrote: Garrett Smith wrote: On Tue, Oct 21, 2008 at 5:32 PM, Garrett Smith [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 3:27 AM, Charles McCathieNevile [EMAIL PROTECTED] wrote: http://dev.w3.org/cvsweb/~checkout~/2006

Re: New Progress draft (1.25)...

2008-10-21 Thread Garrett Smith
On Tue, Oct 21, 2008 at 5:32 PM, Garrett Smith [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 3:27 AM, Charles McCathieNevile [EMAIL PROTECTED] wrote: http://dev.w3.org/cvsweb/~checkout~/2006/webapi/progress/Progress.html?rev=1.24 Hopefully this draft is ready for last call. So please

Re: FileUpload Spec | Editor's Draft | Re: Call for Consensus: a new WD of the File Upload spec

2008-10-16 Thread Garrett Smith
On Thu, Oct 16, 2008 at 9:48 PM, Maciej Stachowiak [EMAIL PROTECTED] wrote: On Oct 16, 2008, at 8:46 PM, Jonas Sicking wrote: But it does require an unforgeable user click to bring it up, so you can't spam it or make it pop up at carefully controlled times. Might not be a huge risk but I

Re: Regarding DOM 3 Tests Format

2008-09-18 Thread Garrett Smith
On Wed, Sep 17, 2008 at 11:01 PM, Maciej Stachowiak [EMAIL PROTECTED] wrote: On Sep 17, 2008, at 10:29 PM, Garrett Smith wrote: Hey Chaals, What makes you think that your pious and arrogant attitude makes you a moderator? You have no right to dictate what I can say. The fact that Chaals

Fwd: Regarding DOM 3 Tests Format

2008-09-17 Thread Garrett Smith
Hey Chaals, What makes you think that your pious and arrogant attitude makes you a moderator? You have no right to dictate what I can say. And this: Garrett Smith [EMAIL PROTECTED] cc Arthur Barstow [EMAIL PROTECTED], Doug Schepers [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [ProgressEvents]

2008-09-08 Thread Garrett Smith
On Mon, Sep 8, 2008 at 1:01 PM, Olli Pettay [EMAIL PROTECTED] wrote: Jonas Sicking wrote: Garrett Smith wrote: On Sun, Sep 7, 2008 at 8:47 AM, Erik Dahlström [EMAIL PROTECTED] wrote: Hello webapps wg, On behalf of the SVG WG I'd like to propose adding to the ProgressEvents spec[1

Re: File Upload Status ?

2008-09-02 Thread Garrett Smith
things at the moment, then maybe Mozilla can take the initiative. Thanks, Garrett On Sun, Aug 24, 2008 at 11:25 PM, Garrett Smith [EMAIL PROTECTED] wrote: Oliver, Maciej - have you given this any thought? I'd like to get some discussion going for this. I'll write the failing tests, but I

Re: [whatwg] Progress Events done event

2008-08-30 Thread Garrett Smith
. How about complete? If the complete event fires before fail or succeed fire then the please wait, loading would be removed first. That seems to be the more desirable effect to fulfill the use case. Garrett / Jonas Garrett Smith wrote: On 9/10/07, Charles McCathieNevile [EMAIL PROTECTED

Re: [whatwg] WebIDL and HTML5

2008-08-28 Thread Garrett Smith
On Wed, Aug 27, 2008 at 5:13 PM, Boris Zbarsky [EMAIL PROTECTED] wrote: Garrett Smith wrote: Java does not include null value for String type. You can ignore the null type and just pretend that null can be of any reference type, but that does not make null a string. Any Java method

Re: [whatwg] WebIDL and HTML5

2008-08-27 Thread Garrett Smith
On Wed, Aug 27, 2008 at 9:44 AM, Jonas Sicking [EMAIL PROTECTED] wrote: Garrett Smith wrote: So it says to first remove all children, and then do nothing more. Do you share this interpretation for this one attribute? Yes. So at this point I want to ask though: What is your proposal

Re: [whatwg] WebIDL and HTML5

2008-08-27 Thread Garrett Smith
On Wed, Aug 27, 2008 at 11:58 AM, Boris Zbarsky [EMAIL PROTECTED] wrote: Garrett Smith wrote: I contend that the textContent example is not designed in a useful manner and that having null - sometimes and null - null others introduces complexity. Sure. And we're stuck

Re: [whatwg] WebIDL and HTML5

2008-08-27 Thread Garrett Smith
On Wed, Aug 27, 2008 at 2:39 PM, Boris Zbarsky [EMAIL PROTECTED] wrote: Garrett Smith wrote: Given that, I suggest moving forward: Test, then document those methods as having special behavior. Do this not by a null-value mapping, but by documenting the method's algorithm in simple terms

Re: [whatwg] WebIDL and HTML5

2008-08-27 Thread Garrett Smith
On Wed, Aug 27, 2008 at 2:49 PM, Boris Zbarsky [EMAIL PROTECTED] wrote: Garrett Smith wrote: So is everything else. This particular desire has great benefits, however, so it needs to have great drawbacks as well to not be done, right? The drawback would be inconsistency with current

  1   2   >