[whatwg/dom] Traversing algorithm for collecting "nodes to remove" in Range.deleteContents() (#682)

Step 4. in [Range.deleteContents()](https://dom.spec.whatwg.org/commit-snapshots/28cdb47e557c814fcca60759f4cce43e9c0e9a47/#dom-range-deletecontents), currently reads:
> 4. Let nodes to remove be a list of all the nodes that are contained in the context object, in tree order, omitting any node whose parent is also contained in the context object.

Although the words "contained", in this step, refer to the algorithm that determines whether a node is contained by the `Range`, this step does not appear to offer/refer to an algorithm that dictates *which* nodes should actually be traversed for this (unless I'm overlooking something).

Is one supposed to start traversing from [`Range.commonAncestorContainer`](https://dom.spec.whatwg.org/commit-snapshots/28cdb47e557c814fcca60759f4cce43e9c0e9a47/#dom-range-commonancestorcontainer), for instance? With my current (likely limited) understanding of `Range`, this appears to be the most logical, but I'm not entirely sure.

Would you be willing to amend this step with further clarification about which nodes should actually be traversed?

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

Received on Friday, 24 August 2018 05:33:34 UTC