Skip to content

Commit f750822

Browse files
committed
A slight change to hpricot tree building. This fixes the hpricot-specific tests in test_parser and test_treewalkers that were failing.
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40937
1 parent 17d024b commit f750822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/html5/treebuilders/hpricot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize(name)
2121

2222
def appendChild(node)
2323
if node.kind_of?(TextNode) and childNodes.any? and childNodes.last.kind_of?(TextNode)
24-
childNodes.last.hpricot.content = childNodes.last.hpricot.to_s + node.hpricot.to_s
24+
childNodes.last.hpricot.content = childNodes.last.hpricot.content + node.hpricot.content
2525
else
2626
childNodes << node
2727
hpricot.children << node.hpricot

0 commit comments

Comments
 (0)