             else
                     span = document.createElement('SPAN')
                     span.textContent = segment.textContent
-                    span.classeName = segment.classeName
+                    span.className = segment.className
                     for bp in bps
                         if bp.cont.parentNode == segment
                             bp.cont = span.firstChild

        pop = @urlPopover
        segments = pop.segments

        # in case of a link creation and the user validated an empty url, just
        # cancel the link creation
        if pop.urlInput.value == '' && pop.isLinkCreation
            @_cancelUrlPopover()
            return true

        # remove background of selection and hide popover
        pop.style.display = 'none'
        seg.style.removeProperty('background-color') for seg in segments

        # in case of a link creation, addhistory has already be done, it must 
        # then be done if non a link creation.
        if !pop.isLinkCreation
            @currentSel.sel.setSingleRange pop.initialSelRg # otherwise addhistory will not work
            @_addHistory()

        # case of a deletion of the urlInput value => 'remove the link'
        if pop.urlInput.value == ''
            # bps = @_applyMetaData(pop.initialSelRg, false, 'A', [])
            l = segments.length

                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', '')
