                     a = document.createElement('A')
                     a.href = href
                     a.textContent = segment.textContent
-                    a.classeName = segment.classeName
+                    a.className = segment.className
                     for bp in bps
                         if bp.cont.parentNode == segment
                             bp.cont = a.firstChild

            @setFocus()
            return true

        # 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
        else
            seg = segments[0]
            seg.href = pop.urlInput.value

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