Re: [whatwg/dom] Atomic move operation for element reparenting & reordering (Issue #1255)

An attribute + DOM API could work together in this case a bit, to ameliorate some of the compat concerns. For example:

```js
const nodeToAtomicallyMove = document.querySelector('......');
// Never trigger atomic moves on *this* specific sub-subtree, that was built by "old" content.
nodeToAtomicallyMove.querySelector('.built-by-legacy-app').preserve = 'none';
newParent.appendAtomic(nodeToAtomicallyMove);
```

In this case, all `<iframe>`s inside `nodeToAtomicallyMove` could be SPAM moved *except* ones that exist inside the subtree `.built-by-legacy-app`. Those ones are specifically opted-out, because maybe they can't handle preserving-moves... Just an idea!

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

Message ID: <whatwg/dom/issues/1255/2021876110@github.com>

Received on Wednesday, 27 March 2024 03:54:57 UTC