- From: FergoTheGreat <notifications@github.com>
- Date: Sat, 22 Jun 2024 14:03:47 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 22 June 2024 21:03:51 UTC
Is it just me, or is ParentNode.replaceChildren() problematic because of the choice to pass the children as a variable number of arguments? In practice, this limits the number of children you can append to ~120K on current Chrome before you get a `RangeError: Maximum call stack size exceeded.` Maybe you think 120K is enough children for any parent, but it seems poorly designed for a append function to cause a stack overflow if you try to append an arbitrarily large number of elements. I think it would have been better to take a single array of elements as input. This criticism is the same I have for String.fromCharCode. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/478#issuecomment-2184189444 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/478/2184189444@github.com>
Received on Saturday, 22 June 2024 21:03:51 UTC