     finally
       @removeHiddenContainer()
 
-  nodeFilter = (node) ->
-    if tagName(node) is "style"
-      NodeFilter.FILTER_REJECT
-    else
-      NodeFilter.FILTER_ACCEPT
-
   createHiddenContainer: ->
     if @referenceElement
       @containerElement = @referenceElement.cloneNode(false)


  removeHiddenContainer: ->
    @containerElement.parentNode.removeChild(@containerElement)

  processNode: (node) ->
    switch node.nodeType

      element = element.parentNode
    ancestors

  getAttachmentAttributes = (element) ->
    JSON.parse(element.dataset.trixAttachment)

  getImageDimensions = (element) ->
    width = element.getAttribute("width")
