# File lib/celerity/identifier.rb, line 13
    def match?(element)
      return false unless @tag == element.getTagName

      attr_result = @attributes.all? do |key, values|
        values.any? { |val| Util.matches?(element.getAttribute(key.to_s), val) }
      end

      if @text
        attr_result && Util.matches?(element.asText.strip, @text)
      else
        attr_result
      end
    end