html_gen: Append child node in a more correct way.