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

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.

/Adam

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


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