d})`);
        let rangeStart = e.rangeStart;
        let rangeEnd = e.rangeEnd;

        // Calculate bounds for each character in the range.
        if (rangeEnd > rangeStart) {
            let charBounds = [];
            for (offset = rangeStart; offset < rangeEnd; offset++) {
                let bound = computeCharacterBound(offset);
                bound = scaleDOMRect(bound, window.devicePixelRatio);
                charBounds.push(bound);
            }
            editContext.updateChara