Re: Blobs: An alternate (complementary?) binary data proposal

2008-05-12 Thread Anne van Kesteren
On Mon, 12 May 2008 01:08:48 +0200, Aaron Boodman [EMAIL PROTECTED] wrote: Ok, so just so I'm clear, does the following example snippet accurately reflect how you propose that things work? var req = new XMLHttpRequest(); req.open(GET, example, true); req.onreadystatechange = handleResult;

Re: Blobs: An alternate (complementary?) binary data proposal

2008-05-12 Thread Aaron Boodman
On Mon, May 12, 2008 at 12:17 AM, Anne van Kesteren [EMAIL PROTECTED] wrote: FWIW, XMLHttpRequest Level 2 already has this functionality in the form of responseBody: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ (send() is also accepts a ByteArray now.) Thanks, I wasn't aware of that.

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Maciej Stachowiak
On May 12, 2008, at 12:44 AM, Jonas Sicking wrote: Lachlan Hunt wrote: Jonas Sicking wrote: What are the remaining issues that are still holding us back? It seems to me like if we know we're going to add this in a version 2, but we already have a done specification for it, why not

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Lachlan Hunt
Maciej Stachowiak wrote: On May 12, 2008, at 12:44 AM, Jonas Sicking wrote: Lachlan Hunt wrote: In relation to the NSResolver, the major issue is that I need to define how to handle hostile NSResolvers and deal with unexpected DOM modifications. I don't actually think there is a lot to do

Re: [XHR] No way to tell a request originates from an XHR object

2008-05-12 Thread Bjoern Hoehrmann
* Francois Daoust wrote: In the context of content transformation that is a problem because such HTTP messages should be passed untouched by the content transformation proxies: an XHR call involves that some client code will be run on receipt of the response, so any transformation is likely to

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Maciej Stachowiak
On May 12, 2008, at 5:52 AM, Bjoern Hoehrmann wrote: * Maciej Stachowiak wrote: A function is not a particularly convenient way to specify a namespace mapping, and it creates these error handling issues as well as causing problems with case (in)sensitivity. Even though NSResolver is what

Re: [XMLHttpRequest] Small typose in W3C Working Draft 15 April 2008

2008-05-12 Thread Anne van Kesteren
On Tue, 15 Apr 2008 23:23:48 +0200, Innovimax SARL [EMAIL PROTECTED] wrote: s/accordng/according/ s/targated/targeted/ Thanks, fixed: http://dev.w3.org/2006/webapi/XMLHttpRequest/ -- Anne van Kesteren http://annevankesteren.nl/ http://www.opera.com/

Re: XHR setting headers

2008-05-12 Thread Anne van Kesteren
On Thu, 17 Apr 2008 01:49:44 +0200, Peter Michaux [EMAIL PROTECTED] wrote: The XMLHttpRequest spec says The setRequestHeader() method appends a value if the HTTP header given as argument is already part of the list of request headers. This is fine but what is a problem is whether or not a new

Re: XHR setting headers

2008-05-12 Thread Anne van Kesteren
On Thu, 17 Apr 2008 15:31:37 +0200, Julian Reschke [EMAIL PROTECTED] wrote: The whole append semantics is problematic as long as the user can't find out what the current value is. IMHO we need either removeRequestHeader(), getRequestHeader(), or both. Yes, you have already stated this

Re: [XHR] Comments on the latest public working draft

2008-05-12 Thread Anne van Kesteren
On Tue, 22 Apr 2008 20:58:55 +0200, Sergiu Dumitriu [EMAIL PROTECTED] wrote: Sorry if this was asked already but: - Why doesn't a redirect that violates the security restrictions throw SECURITY_ERR, instead of NETWORK_ERR? This makes it more forward-consistent with XMLHttpRequest Level 2

Re: [XHR] XMLHttpRequest() Constructor

2008-05-12 Thread Anne van Kesteren
On Thu, 24 Apr 2008 01:20:48 +0200, Cameron McCormack [EMAIL PROTECTED] wrote: Lachlan Hunt: The XMLHttpRequest spec doesn't actually define what object is returned by the XMLHttpRequest() constructor. It should define that an object implementing the XMLHttpRequest interface must be created

Re: [XHR] Improve the definitions of the send() and error flags

2008-05-12 Thread Anne van Kesteren
On Wed, 23 Apr 2008 12:44:00 +0200, Lachlan Hunt [EMAIL PROTECTED] wrote: In the XMLHttpRequest specification, section 4 The XMLHttpRequest Object, please describe the meaning/purpose of the send() flag and error flag. Currently, it seems the only way to find out what each value

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Maciej Stachowiak
On May 12, 2008, at 8:00 AM, Bjoern Hoehrmann wrote: * Maciej Stachowiak wrote: This does not look much better (it does avoid repeatedly mentioning the xmlns namespace at least): function resolver(prefix) { if (prefix == xht) { return http://www.w3.org/1999/xhtml;; } else if

Re: XHR setting headers

2008-05-12 Thread Julian Reschke
Anne van Kesteren wrote: On Thu, 17 Apr 2008 15:31:37 +0200, Julian Reschke [EMAIL PROTECTED] wrote: The whole append semantics is problematic as long as the user can't find out what the current value is. IMHO we need either removeRequestHeader(), getRequestHeader(), or both. Yes, you have

Re: [XMLHttpRequest] LC-20080415 comment

2008-05-12 Thread Stewart Brodie
Anne van Kesteren [EMAIL PROTECTED] wrote: On Wed, 16 Apr 2008 13:08:37 +0200, Stewart Brodie [EMAIL PROTECTED] wrote: In the last paragraph on send(data) (i.e. just above the start of the bit about the abort() method), there is a statement (which is missing the word header at the

Re: XHR LC comments

2008-05-12 Thread Anne van Kesteren
On Sun, 04 May 2008 11:47:13 +0200, Julian Reschke [EMAIL PROTECTED] wrote: Review of http://www.w3.org/TR/2008/WD-XMLHttpRequest-20080415/. General points: a) I'm confused about the approach to this document. On the one hand, we're being told that it can't define anything not already in

Re: [XHR] No way to tell a request originates from an XHR object

2008-05-12 Thread Anne van Kesteren
On Wed, 07 May 2008 12:38:30 +0200, Francois Daoust [EMAIL PROTECTED] wrote: In the context of content transformation that is a problem because such HTTP messages should be passed untouched by the content transformation proxies: an XHR call involves that some client code will be run on

Re: [XMLHttpRequest] LC-20080415 comment

2008-05-12 Thread Anne van Kesteren
On Mon, 12 May 2008 17:48:48 +0200, Stewart Brodie [EMAIL PROTECTED] wrote: The only reason I suggested forcing implementations to use */* as the value for an automatically added header is that it preserves the semantics of the request, since this is the default to be assumed by HTTP

Re: [XHR] Comments on the latest public working draft

2008-05-12 Thread Anne van Kesteren
On Mon, 12 May 2008 17:26:07 +0200, Julian Reschke [EMAIL PROTECTED] wrote: Anne van Kesteren wrote: - On the send algorithm, step 4 (If stored method is GET act as if the data argument is null), why only GET and not HEAD, also? In order to subset HTTP as little as possible. Well, *if*

Re: XMLHttpRequest

2008-05-12 Thread Anne van Kesteren
On Sun, 27 Apr 2008 17:18:38 +0200, Robert Hugo [EMAIL PROTECTED] wrote: Should there not be a dedicated method to create a Document (XMLDOM) without having to submit a call first. E.g. [XMLHttpRequest].createDocument() This way one could create a Document to send (as well as retrieve one)

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Maciej Stachowiak
On May 12, 2008, at 9:38 AM, Bjoern Hoehrmann wrote: * Maciej Stachowiak wrote: You can just use `function(p) { return namespaces[p]; }` then. Sure, but there's no actual need to allow running arbitrary code and all the risks that creates/ Which is no risks at all. You can simply parse

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Lachlan Hunt
Maciej Stachowiak wrote: On May 12, 2008, at 9:38 AM, Bjoern Hoehrmann wrote: (There are other problems with using an object like the one you propose, like being unable to specify a default namespace, unless you introduce some kind of magic prefix representing the default namespace; ultimately

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Bjoern Hoehrmann
* Lachlan Hunt wrote: Let ns be an empty hash map, where the key is the prefix and the value is the namespace uri. Tokenise the nsresolver string by splitting on whitespace. For each token: If there is an '=' character in the string: Split the string on the first '=' character Let

RE: XHR LC Draft Feedback

2008-05-12 Thread Sunava Dutta
Comments inline. Thanks, -Original Message- From: Anne van Kesteren [mailto:[EMAIL PROTECTED] Sent: Monday, May 12, 2008 8:12 AM To: Sunava Dutta Cc: public-webapi@w3.org; Gideon Cohn; Ahmed Kamel; Zhenbin Xu; Doug Stamper Subject: Re: XHR LC Draft Feedback On Fri, 18 Apr 2008

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Ian Hickson
On Mon, 12 May 2008, Maciej Stachowiak wrote: A function is not a particularly convenient way to specify a namespace mapping, and it creates these error handling issues as well as causing problems with case (in)sensitivity. Even though NSResolver is what XPath uses, wouldn't it be

XHR header blacklist rationale (was: Re: XHR LC Draft Feedback)

2008-05-12 Thread Anne van Kesteren
On Mon, 12 May 2008 22:27:05 +0200, Sunava Dutta [EMAIL PROTECTED] wrote: 1. Mentioning for each header the reasons for restriction. (I think security is paramount but for shipped implementations I would hesitate to reduce surface area of attack unless there is a compelling reason.

Re: [XHR] XMLHttpRequest() Constructor

2008-05-12 Thread Cameron McCormack
Hi Anne. Anne van Kesteren: How would that look on the interface? [Constructor] interface XMLHttpRequest { ... }; ? Yep. Should the Bindings spec require that the constructor return an object that implements that interface? That would make sense I think. OK. Also, when will Web

Re: [selectors-api] Proposal to Drop NSResolver from Selectors API v1

2008-05-12 Thread Jonas Sicking
var ns = http://www.w3.org/1999/xhtml svg=http://www.w3.org/2000/svg; .querySelector(p svg|svg, ns); Let ns be an empty hash map, where the key is the prefix and the value is the namespace uri. Tokenise the nsresolver string by splitting on whitespace. For each token: If there is an '='

Re: [July 1-3] [face to face] Agenda?

2008-05-12 Thread Charles McCathieNevile
On Sun, 11 May 2008 18:48:27 +0200, Jean-Yves Bitterlich [EMAIL PROTECTED] wrote: Hello, I understood that prio 1 item on the july 1st-3rd agenda is going to be XHR2 (XDR... input). What other items are (known to be) on the agenda ? (probably 3 days are anyway just enough to finalize

Re: [July 1-3] [face to face] Agenda?

2008-05-12 Thread Jonas Sicking
Charles McCathieNevile wrote: On Sun, 11 May 2008 18:48:27 +0200, Jean-Yves Bitterlich [EMAIL PROTECTED] wrote: Hello, I understood that prio 1 item on the july 1st-3rd agenda is going to be XHR2 (XDR... input). What other items are (known to be) on the agenda ? (probably 3 days are

Re: [XHR] No way to tell a request originates from an XHR object

2008-05-12 Thread Jonas Sicking
Bjoern Hoehrmann wrote: * Francois Daoust wrote: In the context of content transformation that is a problem because such HTTP messages should be passed untouched by the content transformation proxies: an XHR call involves that some client code will be run on receipt of the response, so any