- From: Tito <notifications@github.com>
- Date: Fri, 22 Nov 2024 22:50:32 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 23 November 2024 06:50:36 UTC
Anything using `moveBefore` will fallback to `insertBefore` no matter what. There's literally 0 use-cases for throwing. @dead-claudia comment from here https://github.com/whatwg/dom/pull/1307#issuecomment-2492406859 An acceptable compromise would be adding a flag to make it throw - `parent.moveBefore(child, refNode)` fallback to `insertBefore` if needed - `parent.moveBefore(child, refNode, true)` throws if needed That, or every framework will have to ship the same 5 lines of code (if that doesn't make this ridiculous slow, on which case they will restore focus/selection in other ways and skip using this api) -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1255#issuecomment-2495371623 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1255/2495371623@github.com>
Received on Saturday, 23 November 2024 06:50:36 UTC