[whatwg/dom] Meta: a list of side effects that would be impacted by state-preserving move (Issue #1270)

### What is the issue with the DOM Standard?

In support of #1255, this issue tries to capture the exhaustive list of behaviors that would be impacted by an state-preserving atomic move operation (e.g. `element.moveBefore()`. It is based on references to [insertion steps](https://html.spec.whatwg.org/multipage/infrastructure.html#html-element-insertion-steps) and [removing steps](https://html.spec.whatwg.org/multipage/infrastructure.html#html-element-removing-steps).

## Potentially skipped side effects

- IFrame unload/reload: See [removing steps](https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element:html-element-removing-steps) and [insertion steps](https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element:html-element-insertion-steps)
- Dialog close: see [removing steps](https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element:html-element-removing-steps)
- Popover close: see [hide popover](https://html.spec.whatwg.org/multipage/popover.html#hide-popover-algorithm)
- Text selection in input elements: [set the selection range](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-range)
- Exit fullscreen: see [here](https://fullscreen.spec.whatwg.org/#ref-for-concept-node-remove-ext)
- Pointer event state reset: see [here](https://w3c.github.io/pointerevents/#suppressing-a-pointer-event-stream)
- CSS transitions: see [here](https://drafts.csswg.org/css-transitions/#starting)

## Potentially modified side effects
- Focus: see [focusing steps](https://html.spec.whatwg.org/multipage/interaction.html#focusing-steps). At the very least we need to check whether the new tree is [inert](https://html.spec.whatwg.org/multipage/interaction.html#inert).

## Reflection
- Mutation observer: potentially reflect that there was a move
- Custom elements: see [reactions](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions). Perhaps add a `movedCallback`, that has a default to call `disconnectedCallback` and `connectedCallback`?

## Noops
- Select element "selectedness": https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element:html-element-insertion-steps
- img/source: https://html.spec.whatwg.org/multipage/images.html#reacting-to-dom-mutations:html-element-removing-steps
- 








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

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

Received on Wednesday, 3 April 2024 09:13:29 UTC