jquery/jquery — pull request #1442 by adamwulf (2013-11-19 23:16:58+00:00)
Title: when appending a text node to a <table> element, jquery crashes.

When appending a text node to a

, jquery crashes during the call to manipulationTarget(). This change fixes the issue and averts the crash.

manipulationTarget() is trying to determine if the content being appended to the table is a
tag. When doing this, it checks the nodeName of the appended content. Since the textnode doesn't contain any children, the nodeName() call crashes.

This commit ensures a firstChild property exists before sending it to nodeName().