-outerHTML = (element) ->
-    return element.outerHTML if element.outerHTML
-    tmp = document.createElement("div")
-    tmp.appendChild(element)
-    tmp.innerHTML
-
 class AbstractChosen
 
   constructor: (@form_field, @options={}) ->


    return true

  # class methods and variables ============================================================ 

  @browser_is_supported: ->

    option_el.setAttribute("data-option-array-index", option.array_index)
    option_el.innerHTML = option.search_text

    this.outerHTML(option_el)

  result_add_group: (group) ->
    return '' unless group.search_match || group.group_match
