- From: Seokho Song, dave@modusign via GitHub <noreply@w3.org>
- Date: Mon, 15 Sep 2025 22:30:46 +0000
- To: public-houdini-archive@w3.org
Yeah, it is straightforward! AFAIK, the Serializable objects are marked as [Serializable] in idl due to structuredClone spec in whatwg: > [Platform objects](https://webidl.spec.whatwg.org/#dfn-platform-object) can be [serializable objects](https://html.spec.whatwg.org/multipage/structured-data.html#serializable-objects) if their [primary interface](https://webidl.spec.whatwg.org/#dfn-primary-interface) is decorated with the [Serializable] IDL [extended attribute](https://webidl.spec.whatwg.org/#dfn-extended-attribute). Such interfaces must also define the following algorithms: and in the [StructuredSerializeInternal ( value, forStorage [ , memory ] )](https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal), part of internal operation for structuredClone > 19. Otherwise, if value is a [platform object](https://webidl.spec.whatwg.org/#dfn-platform-object) that is a [serializable object](https://html.spec.whatwg.org/multipage/structured-data.html#serializable-objects): > ... > 20. Otherwise, if value is a [platform object](https://webidl.spec.whatwg.org/#dfn-platform-object), then throw a ["DataCloneError"](https://webidl.spec.whatwg.org/#datacloneerror) [DOMException](https://webidl.spec.whatwg.org/#dfn-DOMException). So I think clonable by structuredClone equals to Serializable...? -- GitHub Notification of comment by DevSDK Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1101#issuecomment-3294195342 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 15 September 2025 22:30:47 UTC