Re: [whatwg/dom] Provide a "deep clone" shorthand (Issue #1220)

Looking at https://dontcallmedom.github.io/webdex/c.html#clone%20a%20node%40%40dom%25%25dfn that doesn't really seem worth it. Perhaps once there are more callers?

We should modernize the algorithm though as per https://infra.spec.whatwg.org/#algorithm-params. Probably the document argument should be an optional named argument and s/clone children flag/deep/ can just be an optional boolean. It's kinda annoying that for consistency it would have to default to false. Perhaps we could consider flipping that, but not sure it's worth it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1220#issuecomment-1693547043
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1220/1693547043@github.com>

Received on Friday, 25 August 2023 15:31:41 UTC