                 segment  = segment.nextSibling
                 stopNext = (segment == endSegment)
 
-
-
     _checkIfAhrefIsEverywhere : (range, href) ->
-        # Loop  on segments to decide wich action is to be done on all
-        #    segments. For instance if all segments are strong the action is
-        #    to un-strongify. If one segment is not bold, then the action is 
-        #    to strongify.        
         segment    = range.startContainer.parentNode
         endSegment = range.endContainer.parentNode
         stopNext   = (segment == endSegment)

        return [bp1,bp2]


    _isAlreadyMeta : (segment, metaData, others) ->
        if metaData == 'A'
            return segment.nodeName == 'A' && segment.href == others[0]
        else
            return segment.classList.contains(metaData)


    _applyAhrefToSegments : (startSegment, endSegment, bps, addMeta, metaData, href) ->
        segment  =  startSegment
        stopNext = (segment == endSegment)
        loop

        pop.segments = segments
        pop.style.left = edges.left + 'px'
        pop.style.top = edges.top + 20 + 'px'
        href = segments[0].href
        if href == '' or href == 'http:///'
            href = 'http://'
        pop.urlInput.value = href
        txt = ''
        txt += seg.textContent for seg in segments
        pop.textInput.value = txt
