- From: Andrea Giammarchi <notifications@github.com>
- Date: Thu, 21 Nov 2024 11:59:16 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 21 November 2024 19:59:20 UTC
FWIWI I fully agree with @sorvell ... the whole point of this proposal was to simplify DOM manipulation, not to complicate it even further with tons of repeated checks or `try/catch` around nodes that might not be fully owned by the underlying logic. The fallback to `insertBefore` when it fails is inevitable, as the intent is "*to move that node in that place*", nothing else, so it'd be counter-productive to have many checks around such intent + a try/catch toplay it safely plus the inevitable `insertBefore` on the catch. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1307#issuecomment-2492146927 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1307/c2492146927@github.com>
Received on Thursday, 21 November 2024 19:59:20 UTC