lib/watir/locators/text_field/validator.rb in watir-6.13.0 vs lib/watir/locators/text_field/validator.rb in watir-6.14.0
- old
+ new
@@ -1,10 +1,11 @@
module Watir
module Locators
class TextField
class Validator < Element::Validator
- def validate(element, selector)
- return unless element.tag_name.downcase == 'input'
+ def validate(element, _selector)
+ return unless element.tag_name.casecmp('input').zero?
+
element
end
end
end
end