@@ -534,22 +534,22 @@ def button_tag(content_or_options = nil, options = nil, &block)
534
534
#
535
535
# ==== Examples
536
536
# image_submit_tag("login.png")
537
- # # => <input alt="Login" src="http://github.com/assets/login.png" type="image" />
537
+ # # => <input src="http://github.com/assets/login.png" type="image" />
538
538
#
539
539
# image_submit_tag("purchase.png", disabled: true)
540
- # # => <input alt="Purchase" disabled="disabled" src="http://github.com/assets/purchase.png" type="image" />
540
+ # # => <input disabled="disabled" src="http://github.com/assets/purchase.png" type="image" />
541
541
#
542
542
# image_submit_tag("search.png", class: 'search_button', alt: 'Find')
543
- # # => <input alt="Find" class="search_button" src="http://github.com/assets/search.png" type="image" />
543
+ # # => <input class="search_button" src="http://github.com/assets/search.png" type="image" />
544
544
#
545
545
# image_submit_tag("agree.png", disabled: true, class: "agree_disagree_button")
546
- # # => <input alt="Agree" class="agree_disagree_button" disabled="disabled" src="http://github.com/assets/agree.png" type="image" />
546
+ # # => <input class="agree_disagree_button" disabled="disabled" src="http://github.com/assets/agree.png" type="image" />
547
547
#
548
548
# image_submit_tag("save.png", data: { confirm: "Are you sure?" })
549
- # # => <input alt="Save" src="http://github.com/assets/save.png" data-confirm="Are you sure?" type="image" />
549
+ # # => <input src="http://github.com/assets/save.png" data-confirm="Are you sure?" type="image" />
550
550
def image_submit_tag ( source , options = { } )
551
551
options = options . stringify_keys
552
- tag :input , { "alt" => image_alt ( source ) , " type" => "image" , "src" => path_to_image ( source ) } . update ( options )
552
+ tag :input , { "type" => "image" , "src" => path_to_image ( source ) } . update ( options )
553
553
end
554
554
555
555
# Creates a field set for grouping HTML form elements.
0 commit comments