lib/hatemile/implementation/accessible_css_implementation.rb
##
# Replace the element by own text content.
#
# @param element [Hatemile::Util::Html::HTMLDOMElement] The element.
Replace the element by own text content.
Replace the element by own text content .
def replace_element_by_own_content(element)
        if element.has_children_elements?
          element.get_children_elements.each do |child|
            element.insert_before(child)
          end
          element.remove_node
        elsif element.has_children?
          element.replace_node(element.get_first_node_child)
        end
      end
def replace_element_by_own_content ( element ) if element . has_children_elements? element . get_children_elements . each do | child | element . insert_before ( child ) end element . remove_node elsif element . has_children? element . replace_node ( element . get_first_node_child ) end end
Replace the element by own text content.
Replace the element by own text content .
element
None