public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Add much-needed html-scanner tests.  Fixed CDATA parsing bug. [Rick]

git-svn-id: 
http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@6118 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
technoweenie (author)
Sun Feb 04 12:11:35 -0800 2007
commit  0ee158a3b9536ca7ef1ce0c8992e3a094690bf68
tree    0b9e1c520949801c1e796da533d7fc194b0fd404
parent  92b00efd7001e6a3fecd6f7d7bddc1f6d43ab54e
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *SVN*
0
 
0
+* Add much-needed html-scanner tests. Fixed CDATA parsing bug. [Rick]
0
+
0
 * improve error message for Routing for named routes. [Rob Sanheim]
0
 
0
 * Added enhanced docs to routing assertions. [Rob Sanheim]
...
92
93
94
95
96
97
98
...
152
153
154
155
 
156
157
158
...
410
411
412
413
414
415
416
...
92
93
94
 
95
96
97
...
151
152
153
 
154
155
156
157
...
409
410
411
 
412
413
414
0
@@ -92,7 +92,6 @@
0
     # returns non +nil+. Returns the result of the #find call that succeeded.
0
     def find(conditions)
0
       conditions = validate_conditions(conditions)
0
-
0
       @children.each do |child|
0
         node = child.find(conditions)
0
         return node if node
0
@@ -152,7 +151,7 @@
0
 
0
           if scanner.skip(/!\[CDATA\[/)
0
             scanner.scan_until(/\]\]>/)
0
- return CDATA.new(parent, line, pos, scanner.pre_match)
0
+ return CDATA.new(parent, line, pos, scanner.pre_match.gsub(/<!\[CDATA\[/, ''))
0
           end
0
           
0
           closing = ( scanner.scan(/\//) ? :close : nil )
0
@@ -410,7 +409,6 @@
0
     # :child => /hello world/ }
0
     def match(conditions)
0
       conditions = validate_conditions(conditions)
0
-
0
       # check content of child nodes
0
       if conditions[:content]
0
         if children.empty?

Comments

    No one has commented yet.