diff options
author | francis <francis> | 2007-08-23 14:06:27 +0000 |
---|---|---|
committer | francis <francis> | 2007-08-23 14:06:27 +0000 |
commit | a1e4c20771831d0a2bfe0fd6ee098818dd2b7d47 (patch) | |
tree | 24c42302a85378df9454519e100da8c9fa591295 | |
parent | 4b9eb7648911ca18c120264d97eaceb710bd6fac (diff) |
Make it HTML 4.0 strict.
-rw-r--r-- | app/helpers/application_helper.rb | 7 | ||||
-rw-r--r-- | app/views/layouts/default.rhtml | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 22a7940eb..07bc01d6d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,10 @@ # Methods added to this helper will be available to all templates in the application. module ApplicationHelper + + # This was the best solution I could find to this, yeuch. + # http://www.ruby-forum.com/topic/88857 + def stylesheet_link_tag_html4( _n ) + return stylesheet_link_tag( _n ).gsub( ' />', '>' ) + end + end diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index 137c4ac81..8ec31ea19 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -1,10 +1,9 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en-gb"> <head> <!-- <script type="text/javascript" src="/js.js"></script> --> <title>Freedom of Information Filer and Archive <%= @title ? "-" : "" %> <%=@title%></title> - <%= stylesheet_link_tag 'main' %> - <!-- <link rel="alternate" type="application/rss+xml" title="" href=""> --> + <%= stylesheet_link_tag_html4 'main' %> </head> <body> <h1 id="header">Freedom of Information Filer and Archive <span id="beta">Beta</span></h1> |