Re: [w3c/selection-api] collapse and setBaseAndExtent methods contain redundant checks of offset (#124)

The [WPT tests for collapse and setPosition](https://github.com/web-platform-tests/wpt/blob/master/selection/collapse.js) expect the `IndexSizeError` check to be done before the `document.contains` check. The [WPT test for setBaseAndExtent](https://github.com/web-platform-tests/wpt/blob/master/selection/setBaseAndExtent.html) is does not cover the case where there is both `IndexSizeError` and a `document.contains` violation and so does not detect if the check is done before or after the `document.contains` check.

-- 
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/124#issuecomment-695854793

Received on Monday, 21 September 2020 00:09:30 UTC