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

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

From: Harald Alvestrand <harald@alvestrand.no>
Date: Wed, 18 Mar 2015 14:47:03 +0100
Message-ID: <550981D7.6090105@alvestrand.no>
To: Adam Bergkvist <adam.bergkvist@ericsson.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On 03/18/2015 11:57 AM, Adam Bergkvist wrote:
> 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.

Thanks - I'm kicking this back to our WebRTC people to figure out if the 
appropriate solution is to implement the serializers in Chrome.

That's what we have canaries for....

> /Adam
> [1] http://heycam.github.io/webidl/#idl-serializers
Received on Wednesday, 18 March 2015 13:47:40 UTC

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