Commit 952ce04
committed
Change falling back to nil instead of empty list...
Nokogiri for MRI handles [] and nil the same when calling #canonicalize
However, Nokogir for JRuby blows up with []. The default argument according
to the method definition is nil, so I believe it's more appropriate:
http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/Node#canonicalize-instance_method1 parent 582ad4c commit 952ce04
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments