W3C home > Mailing lists > Public > public-webapi@w3.org > June 2008

[XHR] (Late) LC Comments

From: Geoffrey Sneddon <foolistbar@googlemail.com>
Date: Sun, 8 Jun 2008 15:40:57 +0100
Message-Id: <9CDEE9A4-F76B-4394-94EA-3C473EF8C2BE@googlemail.com>
To: public-webapi@w3.org

Lazy me has finally got around to sending some comments:

Under the definition of XML response entity body it is probably worth  
reiterating that if the UA is not also a conforming XML UA it must  
return null.

getAllResponseHeaders() should probably define the exact format. The  
example makes me think that it should always output one space (U+0020)  
after the colon, but currently anything is fine.

status and statusText currently MUST throw INVALID_STATE_ERR when  
there isn't any status code or text respectively sent by the server.  
HTTP/0.9 includes neither: Saf, Fx, and IE all return 200 and "OK",  
and Op returns 0 and "". There isn't actually any issue with the  
state, so throwing an INVALID_STATE_ERR makes little sense. Also, a  
fair number of servers manage to omit the statusText, and that should  
just return "OK" (per Saf, Fx, and IE). I'd say that it should only  
throw if the state is UNSENT or OPENED.

In "Exceptions for the XMLHttpRequest Object" it would be nice to have  
a note that the other exceptions are defined in DOM 3 Core.

Geoffrey Sneddon
Received on Sunday, 8 June 2008 14:41:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:27 UTC