We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d024b commit f750822Copy full SHA for f750822
lib/html5/treebuilders/hpricot.rb
@@ -21,7 +21,7 @@ def initialize(name)
21
22
def appendChild(node)
23
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
+ childNodes.last.hpricot.content = childNodes.last.hpricot.content + node.hpricot.content
25
else
26
childNodes << node
27
hpricot.children << node.hpricot
0 commit comments