 
         if @startContainer is @endContainer
           @commonAncestorContainer = @startContainer.parentNode
-          @startContainer = @startContainer.splitText(@startOffset)
+          @startContainer = splitText(@startContainer, @startOffset)
 
           if @startOffset <= @endOffset
             @endContainer = @startContainer

# https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
ELEMENT_NODE = 1
TEXT_NODE = 3


# Public: Creates a wrapper around a range object obtained from a DOMSelection.


          @startOffset = 0
        else
          @startContainer = splitText(@startContainer, @startOffset)
          @startOffset = 0

  # Public: Normalize the start and end to TextNode boundaries.
