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

Re: [XHR] send() argument

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 22 Feb 2007 09:34:00 +0100
To: "Hallvord R. M. Steen" <hallvord@opera.com>
Cc: public-webapi@w3.org
Message-ID: <9ukqt29kdv20f534q04f3dj9nua12drjdc@hive.bjoern.hoehrmann.de>

* 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 GMT

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