[w3c/IndexedDB] Add support for URL as one of the basic types like Date (#108)

I am enjoying using the relatively recently introduced `URL` object. However, I noticed it does not play nice with the structured clone algorithm requirement. Because of this, a hobby project of mine has to jump through hoops to avoid storing an object in indexedDB with a property value that is a URL. I have to serialize before store, and deserialize after store, and cannot index the object or its properties itself.

I recognize that URL was introduced some time after or concurrently with indexedDB, but it would be really nice to add support for this. I'll understand if this is purely an issue related to the structured cloning algorithm so apologies if out of scope. But from my perspective as a indexedDB user, I see URL as similar to Date, and would like working with URL objects to be as convenient as working with dates.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/108

Received on Wednesday, 2 November 2016 21:11:04 UTC