Re: [w3c/selection-api] Throw InvalidNodeTypeError on DocumentType nodes (#118)

The specification already requires throwing `InvalidNodeTypeError`. Not directly, but indirectly. The specification has steps that say things like “set the start of newRange” and those steps will throw `InvalidNodeTypeError` because that’s part of the [set the start or end algorithm](https://dom.spec.whatwg.org/#concept-range-bp-set) from the DOM specification.

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

Received on Saturday, 19 September 2020 16:31:48 UTC