[whatwg/dom] Add before removing steps (PR #1185)

The existing "removing steps" allow other specs to run algorithms after a node has been removed from the tree, but there is no way to run steps before a node has been removed from the tree.

This patch adds new "before removing steps" to allow other specs to run algorithms before the node has been removed.

This is needed for this HTML issue:
https://github.com/whatwg/html/issues/9161

<!--
Thank you for contributing to the DOM Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

- [ ] At least two implementers are interested (and none opposed):
   * Chrome
   * …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * …
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1185

-- Commit Summary --

  * Add before removing steps

-- File Changes --

    M dom.bs (15)

-- Patch Links --

https://github.com/whatwg/dom/pull/1185.patch
https://github.com/whatwg/dom/pull/1185.diff

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

Message ID: <whatwg/dom/pull/1185@github.com>

Received on Monday, 17 April 2023 19:31:45 UTC