content icon indicating copy to clipboard operation
content copied to clipboard

Update serializable objects list

Open skyclouds2001 opened this issue 1 year ago • 1 comments

Description

same as title

also add a note indicating how to find serializable objects via webidl

Motivation

Additional details

Related issues and pull requests

skyclouds2001 avatar Oct 17 '24 09:10 skyclouds2001

Preview URLs

Flaws (1)

URL: /en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm Title: The structured clone algorithm Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/CropTarget does not exist
External URLs (1)

URL: /en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm Title: The structured clone algorithm

github-actions[bot] avatar Oct 17 '24 09:10 github-actions[bot]

@wbamberg Same issue as the transferrable objects - lists should be complete or clearly partial. Upshot we need automation.

I think we should mark up each of these as items as serializable as per IDL, but we could start by using a macro the generate the list. Does that make sense to you?

This list is in the structured clone algorithm. I kind of think we should have lists in https://developer.mozilla.org/en-US/docs/Glossary/Serializable_object , then in structed clone algorithm doc note that you can clone items that are serializable and transfer items that are transferrable.

Alternatively we could have the transferrable list in structured clone page too. But as it is now is inconsistent.

Does this seem reasonable?

hamishwillee avatar Oct 21 '24 22:10 hamishwillee