diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-09 01:45:21 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-09 01:45:21 +0000 |
commit | a9de9c48c22f7eab91be676fb648ca89bbfa75b0 (patch) | |
tree | f8033feb18174b4cac6a385cdc76ed4f2a832194 /actionpack/lib/action_controller/vendor | |
parent | 64cd4e417059f363a55023d28b05f9e0d349e3f9 (diff) | |
download | rails-a9de9c48c22f7eab91be676fb648ca89bbfa75b0.tar.gz rails-a9de9c48c22f7eab91be676fb648ca89bbfa75b0.tar.bz2 rails-a9de9c48c22f7eab91be676fb648ca89bbfa75b0.zip |
Make assert_tag :children count appropriately. Closes #2181.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/vendor')
-rw-r--r-- | actionpack/lib/action_controller/vendor/html-scanner/html/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb index 016603a3e7..6bc62fdf33 100644 --- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb @@ -435,7 +435,7 @@ module HTML #:nodoc: # count children if opts = conditions[:children] - matches = children + matches = children.select { |c| c.match(/./) } matches = matches.select { |c| c.match(opts[:only]) } if opts[:only] opts.each do |key, value| next if key == :only |