aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tag_helper.rb
diff options
context:
space:
mode:
authorTieg Zaharia <tieg.zaharia@gmail.com>2009-06-26 14:38:18 -0400
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-07-02 10:36:38 -0700
commit51d7b3070c68492f5376c19d24d8e5a2d746d7ea (patch)
treea3302e0f244589e854dcdcd3919bf1454058fbab /actionpack/lib/action_view/helpers/tag_helper.rb
parent9eab435631e1b0a659126d068972ee88cff160de (diff)
downloadrails-51d7b3070c68492f5376c19d24d8e5a2d746d7ea.tar.gz
rails-51d7b3070c68492f5376c19d24d8e5a2d746d7ea.tar.bz2
rails-51d7b3070c68492f5376c19d24d8e5a2d746d7ea.zip
Adds a video_tag helper for the HTML5 video tag (similar to how the image_tag works) (tests included); removes a duplicate test line for image_tag; adds boolean attributes for video tag to tag()'s boolean attributes
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
Diffstat (limited to 'actionpack/lib/action_view/helpers/tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb
index 66d7592874..9b6e9d201f 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -8,7 +8,8 @@ module ActionView
module TagHelper
include ERB::Util
- BOOLEAN_ATTRIBUTES = %w(disabled readonly multiple checked).to_set
+ BOOLEAN_ATTRIBUTES = %w(disabled readonly multiple checked autobuffer
+ autoplay controls loop).to_set
BOOLEAN_ATTRIBUTES.merge(BOOLEAN_ATTRIBUTES.map {|attr| attr.to_sym })
# Returns an empty HTML tag of type +name+ which by default is XHTML