From 2f8146bc5e7711a6823ce095bb2be3e42012de2b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 22 Sep 2007 18:01:54 +0000 Subject: Use rel="stylesheet" in lowercase as prescribed by XHTML standards (closes #8910) [RSL] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_view/helpers/asset_tag_helper.rb | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 4321cb1ed9..9e38b4a714 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -18,7 +18,7 @@ module ActionView # image_tag("rails.png") # => Rails # stylesheet_include_tag("application") - # => + # => # # This is useful since browsers typically open at most two connections to a single host, # which means your assets often wait in single file for their turn to load. You can @@ -29,7 +29,7 @@ module ActionView # image_tag("rails.png") # => Rails # stylesheet_include_tag("application") - # => + # => # # To do this, you can either setup four actual hosts, or you can use wildcard DNS to CNAME # the wildcard to a single asset host. You can read more about setting up your DNS CNAME records from @@ -232,30 +232,30 @@ module ActionView # # ==== Examples # stylesheet_link_tag "style" # => - # + # # # stylesheet_link_tag "style.css" # => - # + # # # stylesheet_link_tag "http://www.railsapplication.com/style.css" # => - # + # # # stylesheet_link_tag "style", :media => "all" # => - # + # # # stylesheet_link_tag "style", :media => "print" # => - # + # # # stylesheet_link_tag "random.styles", "/css/stylish" # => - # - # + # + # # # You can also include all styles in the stylesheet directory using :all as the source: # # stylesheet_link_tag :all # => - # - # - # + # + # + # # # == Caching multiple stylesheets into one # @@ -266,20 +266,20 @@ module ActionView # # ==== Examples # stylesheet_link_tag :all, :cache => true # when ActionController::Base.perform_caching is false => - # - # - # + # + # + # # # stylesheet_link_tag :all, :cache => true # when ActionController::Base.perform_caching is true => - # + # # # stylesheet_link_tag "shop", "cart", "checkout", :cache => "payment" # when ActionController::Base.perform_caching is false => - # - # - # + # + # + # # # stylesheet_link_tag "shop", "cart", "checkout", :cache => "payment" # when ActionController::Base.perform_caching is true => - # + # def stylesheet_link_tag(*sources) options = sources.extract_options!.stringify_keys cache = options.delete("cache") @@ -299,7 +299,7 @@ module ActionView end tag("link", { - "rel" => "Stylesheet", "type" => Mime::CSS, "media" => "screen", + "rel" => "stylesheet", "type" => Mime::CSS, "media" => "screen", "href" => stylesheet_path(joined_stylesheet_name) }.merge(options)) else @@ -307,7 +307,7 @@ module ActionView expand_stylesheet_sources(sources).collect do |source| tag("link", { - "rel" => "Stylesheet", "type" => Mime::CSS, "media" => "screen", "href" => stylesheet_path(source) + "rel" => "stylesheet", "type" => Mime::CSS, "media" => "screen", "href" => stylesheet_path(source) }.merge(options)) end.join("\n") end -- cgit v1.2.3