[w3c/selection-api] the steps of `Selection.setBaseAndExtent()` do not check the node type (Issue #354)

masayuki-nakano created an issue (w3c/selection-api#354)

[collapse(https://w3c.github.io/selection-api/#dom-selection-collapse) method check]() has this check:
> If node is a [DocumentType](https://dom.spec.whatwg.org/#documenttype), throw an [InvalidNodeTypeError](https://webidl.spec.whatwg.org/#invalidnodetypeerror) exception and abort these steps.

However, [setBaseAndExtent() method](https://w3c.github.io/selection-api/#dom-selection-setbaseandextent) does not have it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/354
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/issues/354@github.com>

Received on Friday, 9 January 2026 05:39:19 UTC