diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-07 16:13:34 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-07 16:13:34 +0000 |
commit | 272c2d2e9ca38a307878306bff4315183d1ae7ab (patch) | |
tree | 734bfbb799a8f7791dffe72889fcb386a69ac9d0 /actionpack/lib/action_controller | |
parent | 4185fb1e58d8142162c3a39f9302559688dd431b (diff) | |
download | rails-272c2d2e9ca38a307878306bff4315183d1ae7ab.tar.gz rails-272c2d2e9ca38a307878306bff4315183d1ae7ab.tar.bz2 rails-272c2d2e9ca38a307878306bff4315183d1ae7ab.zip |
Ensure assert_select works with XML namespaced attributes [#1547 state:resolved] [Jon Yurek]
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb index 376bb87409..e2c49c284f 100644 --- a/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb +++ b/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb @@ -556,7 +556,7 @@ module HTML end # Attribute value. - next if statement.sub!(/^\[\s*([[:alpha:]][\w\-]*)\s*((?:[~|^$*])?=)?\s*('[^']*'|"[^*]"|[^\]]*)\s*\]/) do |match| + next if statement.sub!(/^\[\s*([[:alpha:]][\w\-:]*)\s*((?:[~|^$*])?=)?\s*('[^']*'|"[^*]"|[^\]]*)\s*\]/) do |match| name, equality, value = $1, $2, $3 if value == "?" value = values.shift |