Splits an HTMLElement in the location marked by a range.