 
   processTextNode: (node) ->
     if string = normalizeSpaces(node.data)
-      @appendStringWithAttributes(string, getTextAttributes(node.parentNode))
+      @appendStringWithAttributes(string, @getTextAttributes(node.parentNode))
 
   processElement: (element) ->
     if nodeIsAttachmentElement(element)
       attributes = getAttachmentAttributes(element)
       if Object.keys(attributes).length
-        textAttributes = getTextAttributes(element)
+        textAttributes = @getTextAttributes(element)
         @appendAttachmentWithAttributes(attributes, textAttributes)
         # We have everything we need so avoid processing inner nodes
         element.innerHTML = ""


  findParentBlockElement: (element) ->
    {parentElement} = element
    while parentElement
      if @isBlockElement(parentElement) and parentElement in @blockElements
        return parentElement
      else

      switch tagName(element)
        when "br"
          unless @isExtraBR(element) or @isBlockElement(element.nextSibling)
            @appendStringWithAttributes("\n", @getTextAttributes(element))
          @processedElements.push(element)
        when "img"
          attributes = url: element.src, contentType: "image"
          attributes[key] = value for key, value of getImageDimensions(element)
          @appendAttachmentWithAttributes(attributes, @getTextAttributes(element))
          @processedElements.push(element)
        when "tr"
          unless element.parentNode.firstChild is element
