This is a testharness.js-based test. [FAIL] If selection crosses shadow boundaries, getRangeAt(0) should throw an IndexSizeError because the end is not in the document tree. assert_throws_dom: function "function () { selection.getRangeAt(0) }" did not throw Harness: the test ran to completion.