aboutsummaryrefslogtreecommitdiffstats
path: root/lib/make_html_4_compliant.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/make_html_4_compliant.rb')
-rw-r--r--lib/make_html_4_compliant.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/make_html_4_compliant.rb b/lib/make_html_4_compliant.rb
new file mode 100644
index 000000000..214eb9f1f
--- /dev/null
+++ b/lib/make_html_4_compliant.rb
@@ -0,0 +1,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
+