             @setFocus()
             return true
 
-        # case if only href is changed but not the text
+        # 5- case if only href is changed but not the text
         else if pop.initialTxt == pop.textInput.value
             seg.href = pop.urlInput.value for seg in segments
             lastSeg = seg
 
-        # case if the text of the link is modified : we concatenate all segments
+        # 6- case if the text of the link is modified : we concatenate 
+        # all segments
         else
             seg = segments[0]
             seg.href = pop.urlInput.value

                cont : segments[0].firstChild
                offset : 0
            bp2 = 
                cont : segments[l-1].firstChild
                offset : segments[l-1].firstChild.length
            bps = [bp1,bp2]
            @_applyAhrefToSegments(segments[0], segments[l-1], bps, false, 'A', '')

                parent.removeChild(seg)
            lastSeg = segments[0]
        
        # 7- manage selection
        @_setCaret(lastSeg.firstChild, lastSeg.firstChild.length)
        @setFocus()


    _initUrlPopover : () ->
        frag = document.createDocumentFragment()
