     end
   end
 
+
   defp attribute_match?(attributes, attribute_name) do
     Enum.find attributes, fn({attr_name, _}) ->
       attr_name == attribute_name

    acc
  end

  defp tag_matcher(tag_name, node, acc) do
    {tag, _, _} = node
    {:ok, acc_nodes} = acc

  end

  defp attribute_match?(attributes, attribute_name, selector_value) do
    Enum.find attributes, fn(attribute) ->
      {attr_name, attr_value} = attribute

      attr_name == attribute_name && value_match?(attr_value, selector_value)
    end
  end


  defp find_by_selector(_selector, {}, _, acc), do: acc
  defp find_by_selector(_selector, [], _, acc), do: acc
