15:31 | <sideshowbarker> | https://stackoverflow.com/questions/70553932/fetch-api-abort-doesnt-works-after-1st-cancel |
18:26 | <sideshowbarker> | I’m trying to clone an SVGRect object using structuredClone() , but am getting a DataCloneError: The object could not be cloned error — because, I guess, theSVGRect object isn’t serializable. |
18:26 | <sideshowbarker> | But what part of it wouldn’t be serializable? |
18:28 | <sideshowbarker> | Specifically, what I have is an SVG
|
18:30 | <sideshowbarker> | …but if I then do this: ```js let foo = structuredClone(marker.viewBox.baseVal); ``` …it fails, and the browser logs that *DataCloneError: The object could not be cloned* error |
20:46 | <Andreu Botella (he/they)> | Web APIs are by default not serializable, even with DOMRect , which is as close to a plain object as it gets |
20:47 | <Andreu Botella (he/they)> | Maybe it'd be worth it to try and identify such interfaces |
20:55 | <sideshowbarker> | I see |