Re: [XHR] send() argument

* Hallvord R. M. Steen 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') );

And what is supposed to happen if the Node is an attribute node, or a
document fragment, or an entity reference? In particular, which MIME
type should be inferred from the content? And what if the Node is a
HTMLElement? What do you suggest should user agents do for code as you
have it above if they do not support sending arbitrary Nodes?
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Thursday, 22 February 2007 08:34:11 UTC