[whatwg] Form data append behavior on null type

Cameron McCormack cam at mcc.id.au
Mon Dec 30 21:17:54 PST 2013


Tingan Ho wrote:
> Wouldn't it be good to specify the behavior of type null in *append* method
> of Form data?
>
> Right now Safari sends string* "null".* Chrome sends empty string "". I
> think Chrome's implementation is more right, because in a html form you
> can't send null value, just empty strings
>
> http://www.w3.org/TR/XMLHttpRequest2/#the-append-method

The specification, through the use of Web IDL, requires that "null" be 
sent.  Unless there is a clear majority of implementations that send "", 
I don't think we should change from the default stringification behaviour.



More information about the whatwg mailing list