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

Re: setRequestHeader / Accept

From: Jonas Sicking <jonas@sicking.cc>
Date: Sat, 31 May 2008 02:31:27 -0700
Message-ID: <48411AEF.9060009@sicking.cc>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Anne van Kesteren <annevk@opera.com>, Laurens Holst <lholst@students.cs.uu.nl>, public-webapi@w3.org

Julian Reschke wrote:
> 
> Anne van Kesteren wrote:
>> ...
>>> We shouldn't let what webidl says dictate what we do one way or the 
>>> other. It's just a spec for the idl language, not a recommendation 
>>> for how interfaces should behave.
>>
>> null/undefined are not really part of the setRequestHeader() method. 
>> We just need to deal with them somehow and doing what similar APIs do 
>> in such cases makes sense.
>> ...
> 
> Such as xhr.send(null)?

Yes, xhr.send(null) will send an empty body rather than one containing 
"null".

/ Jonas
Received on Saturday, 31 May 2008 09:32:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 31 May 2008 09:32:58 GMT