jquery/jquery — pull request #1500 by tmanderson (2014-01-27 18:21:59+00:00)
Title: The text() method is no longer destructive

The text() method should only affect textNodes within the target element, also any formatting text (whitespace) should be preserved.