[whatwg/dom] Editorial: improve ensure pre-insert validity (PR #1484)

This improves on two fronts:

1. Removing ambiguity by having individual conditions more clearly separated.
2. Reducing duplication by making the algorithm suitable for the replace operation as well.

Fixes #870.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Editorial: improve ensure pre-insert validity

-- File Changes --

    M dom.bs (152)

-- Patch Links --

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

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

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

Received on Wednesday, 8 July 2026 05:40:32 UTC