diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-03 16:23:56 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-03 16:23:56 +0000 |
commit | d3a64c04ec31f06c25bf3c33a5bc65f91381c271 (patch) | |
tree | 233a072ac12c8dafe70c2492070964700a1c4fac | |
parent | efb55d1cf50ba895b2811424b8df5e65f1205a66 (diff) | |
download | rails-d3a64c04ec31f06c25bf3c33a5bc65f91381c271.tar.gz rails-d3a64c04ec31f06c25bf3c33a5bc65f91381c271.tar.bz2 rails-d3a64c04ec31f06c25bf3c33a5bc65f91381c271.zip |
Fixed javascript_include_tag to output type instead of language and conform to XHTML #1018 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 36eed04161..2ee52cf9ca 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed javascript_include_tag to output type instead of language and conform to XHTML #1018 [Rick Olson] + * Added NumberHelper for common string representations like phone number, currency, and percentage #1015 [DeLynn] * Added pagination for scaffolding (10 items per page) #964 [mortonda@dgrmm.net] diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index f6159e5246..55036a3ff4 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -26,15 +26,15 @@ module ActionView # Returns a script include tag per source given as argument. Examples: # # javascript_include_tag "xmlhr" # => - # <script language="JavaScript" type="text/javascript" src="/javascripts/xmlhr.js"></script> + # <script type="text/javascript" src="/javascripts/xmlhr.js"></script> # # javascript_include_tag "common.javascript", "/elsewhere/cools" # => - # <script language="JavaScript" type="text/javascript" src="/javascripts/common.javascript"></script> - # <script language="JavaScript" type="text/javascript" src="/elsewhere/cools.js"></script> + # <script type="text/javascript" src="/javascripts/common.javascript"></script> + # <script type="text/javascript" src="/elsewhere/cools.js"></script> def javascript_include_tag(*sources) sources.collect { |source| source = compute_public_path(source, 'javascripts', 'js') - content_tag("script", "", "language" => "JavaScript", "type" => "text/javascript", "src" => source) + content_tag("script", "", "type" => "text/javascript", "src" => source) }.join("\n") end |