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

Re: [XHR] send() "stringification mechanisms of the host language"

From: Maciej Stachowiak <mjs@apple.com>
Date: Fri, 30 Mar 2007 14:45:47 -0700
Message-Id: <EE2855DA-B895-4065-96FA-A2E55A4FC922@apple.com>
Cc: "public-webapi@w3.org" <public-webapi@w3.org>
To: Simon Pieters <zcorpan@gmail.com>

On Mar 30, 2007, at 2:31 PM, Simon Pieters wrote:

> In the send(data) algorithm, step 3, says:
>    data is not a DOMString or Document
>       The stringification mechanisms of the host language must be  
> used on
>       data and the result must be treated as if data is a DOMString.
> I'm not sure what that means. For instance, if data is an Element,  
> would it be serialized with .outerHTML or similar? Could it be  
> clarified, or could an example be added, or, if the spec is fine  
> and it's just me being slow, be explained to me? :-)

JavaScript has a toString conversion operation defined on all types.  
For an HTML div element it would say "[object HTMLDivElement]" or  
something similar.

Received on Friday, 30 March 2007 21:46:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:23 UTC