Re: [XHR] send() argument

On Thu, 22 Feb 2007 09:25:00 +0100, Hallvord R. M. Steen  
<hallvord@opera.com> wrote:

> A nice feature in Opera's implementation is that you can pass any Node  
> to send, and Opera sends the serialisation. I think that is very useful  
> and really wouldn't like it to be made nonconformant by the spec.
>
> Example:
>
> client.open('POST', 'foo.cgi');
> client.send( document.getElementById('bar') );
>

Why can't you use:

    client.open('POST', 'foo.cgi');
    client.send( document.getElementById('bar').innerHTML );

...?

-- 
Simon Pieters

Received on Thursday, 22 February 2007 19:01:56 UTC