Range::set_base_and_extent()
This allows it to work with content inside shadow roots. (cherry picked from commit 34741d09c6e69bd7cd8450668facd552cd69d21b)