The collapse() method section has the following:
The method must throw an IndexSizeError exception if offset is longer than node's length and abort these steps.
However, the extend() method section does not have the corresponding step.
I think that the check should be done before or after the 2nd step.