Don't forget to append a newly created HTML child.

Thanks to @depesz for the test case.