Re: [w3c/selection-api] Throw correct exceptions from collapse/selectAllChildren on detached doctypes (#86)

I wrote a [test case](http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5049):

* collapse to detached doctype: Chrome, Firefox, and Edge throw; WebKit doesn't
* extend to detached doctype: Firefox and Edge throw; Chrome and WebKit don't
* extend to out-of-range index: Firefox, Edge, and WebKit throw; Chrome doesn't
* selectAllChildren on detached doctype: Chrome, Firefox, and Edge throw; WebKit doesn't
* setBaseAndExtent on detached doctype: Chrome, Firefox, and Edge throw; WebKit doesn't
* setBaseAndExtent on out-of-range index: Chrome and Firefox throw; Edge and WebKit don't

So in most cases three out of four throw, and in the rest it's 50/50, so I think we should just throw in all cases here.

-- 
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/pull/86#issuecomment-297119017

Received on Tuesday, 25 April 2017 18:15:58 UTC