From the section on XHR.send(data)

data is not a DOMString or DocumentThe stringification mechanisms of the host language must be used on
data and the result must be treated as if data is a DOMString.

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') );

--
Hallvord R. M. Steen
Core QA JavaScript tester, Opera Software
http://www.opera.com/
Opera - simply the best Internet experience

Reply via email to