aboutsummaryrefslogtreecommitdiffstats
path: root/lib/make_html_4_compliant.rb
blob: 214eb9f1f1c746c1e24d35691e5bd9e77b1c70cc (plain)
1
2
3
4
5
6
7
8
9
# Monkeypatch! Output HTML 4.0 compliant code, using method described in this
# ticket: http://dev.rubyonrails.org/ticket/6009

ActionView::Helpers::TagHelper.module_eval do
  def tag(name, options = nil, open = false, escape = true)
    "<#{name}#{tag_options(options, escape) if options}" + (open ? ">" : ">")
  end
end