diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-04-22 18:12:31 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-04-22 18:12:31 +0000 |
commit | 7bd6923c7f7f36fa1945a6a964f275cf692a722e (patch) | |
tree | dab7e255e8f83aa83f031daf77e2a7ef921bd0d2 /actionpack/lib/action_controller | |
parent | 92bd54ea1902cd8477295f0ca50598ad3a0f9d97 (diff) | |
download | rails-7bd6923c7f7f36fa1945a6a964f275cf692a722e.tar.gz rails-7bd6923c7f7f36fa1945a6a964f275cf692a722e.tar.bz2 rails-7bd6923c7f7f36fa1945a6a964f275cf692a722e.zip |
allow -'s in tag names for html scanner when scanning AR xml documents
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-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 086f7171b5..3397e0db15 100644 --- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb @@ -156,7 +156,7 @@ module HTML #:nodoc: end closing = ( scanner.scan(/\//) ? :close : nil ) - return Text.new(parent, line, pos, content) unless name = scanner.scan(/[\w:]+/) + return Text.new(parent, line, pos, content) unless name = scanner.scan(/[\w:-]+/) name.downcase! unless closing |