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

Re: [XHR] send() argument

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Fri, 23 Feb 2007 11:49:41 +0100
To: "Simon Pieters" <zcorpan@gmail.com>, public-webapi@w3.org
Message-ID: <op.tn6603dza3v5gv@hr-opera.upc.no>

On Thu, 22 Feb 2007 20:01:46 +0100, Simon Pieters <zcorpan@gmail.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 );
>
> ...?


The equivalent would be .outerHTML which is somewhat less widely supported  
than .innerHTML (no Gecko support).


-- 
Hallvord R. M. Steen
Core QA JavaScript tester, Opera Software
http://www.opera.com/
Opera - simply the best Internet experience
Received on Friday, 23 February 2007 10:48:37 GMT

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