W3C home > Mailing lists > Public > public-webrtc@w3.org > March 2015

Re: PSA: JSON.stringify has changed behavior wrt DOM objects in Chrome

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Wed, 18 Mar 2015 10:57:25 +0000
To: Harald Alvestrand <harald@alvestrand.no>, "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <A222C88B6882744D8D4B9681B315889023E22DF1@ESESSMB307.ericsson.se>
On 18/03/15 11:38, Harald Alvestrand wrote:

> It would surprise me if WEBRTC is the only area where people use
> Json.stringify on DOM objects, so I'm waiting to see what the West Coast
> folks say when they wake up.
> It's possible that the right solution is to modify Json.stringify() to
> work in harmony with the new definitions, in which case we don't need to
> do anything.

We use specific WebIDL serializers [1] on these objects that specifies 
that all attributes should be included in the serialization so I think 
it's covered in the spec.


[1] http://heycam.github.io/webidl/#idl-serializers

Received on Wednesday, 18 March 2015 10:57:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:04 UTC