lib/watir/generator/base/visitor.rb in watir-6.6.3 vs lib/watir/generator/base/visitor.rb in watir-6.7.0
- old
+ new
@@ -113,17 +113,21 @@
def call(name, args)
[:call, nil, name.to_sym, [:arglist] + args]
end
def ruby_method_name_for(attribute)
- str = attribute.name.snake_case
+ str = if %w(httpEquiv contentEditable acceptCharset isContentEditable).include? attribute.name
+ attribute.name.snake_case
+ else
+ attribute.name.downcase
+ end
if attribute.type.name == :Boolean
str = $1 if str =~ /^is_(.+)/
str << '?'
end
- str = 'for' if str == 'html_for'
+ str = 'for' if str == 'htmlfor'
str.to_sym
end
def ruby_type_for(type)