W3C home > Mailing lists > Public > public-webapi@w3.org > October 2007

Re: [XHR] Correction in getResponseHeader behaviour

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 18 Oct 2007 14:28:06 +0200
To: "Julien Chaffraix" <julien.chaffraix@gmail.com>, public-webapi@w3.org
Message-ID: <op.t0d7k4br64w2qv@annevk-t60.oslo.opera.com>

On Tue, 16 Oct 2007 23:55:59 +0200, Julien Chaffraix  
<julien.chaffraix@gmail.com> wrote:
> while trying to correct getResponseHeader behaviour on WebKit (
> http://bugs.webkit.org/show_bug.cgi?id=15356), it appears that most of  
> the browsers [don't] raise a SYNTAX_ERR exception when the header  
> argument does not match the field-name production (point 3 in  
> getResponseHeader description).
>
> The behaviour is to return an empty string on IE/Opera and return null on
> Firefox.
>
> WebKit has sided with the first option so we suggest that the draft is
> updated to return an empty string in that case.

Updated the specification and added a testcase. Thanks for your feedback!

   http://dev.w3.org/2006/webapi/XMLHttpRequest/#getresponseheader
   http://tc.labs.opera.com/apis/XMLHttpRequest/getResponseHeader/009.htm


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 18 October 2007 12:28:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT